Function at 0x41ab20
Capabilities:
Get disk size
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6112
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x51eee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [0x520340]
mov dword [ebp - 0x21c], eax
lea eax, [esi + 1]
imul eax, esi
cdq
mov ecx, 0x11
idiv ecx
mov ebx, dword [ebp + 8]
lea edi, [ecx - 0xd]
cmp edx, 9
jne 0x41abac
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x63]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
push eax
call fcn.004a7190
add esp, 8
push 0
lea ecx, [ebp - 0x218]
call fcn.00442860
push str.success
lea ecx, [ebp - 0x1f0]
mov dword [ebp - 4], 0
call fcn.00442820
lea eax, [ebp - 0x1f0]
push eax
push 0x4d968c
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
call fcn.00442d00
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0
call fcn.00442a70
push 0x4dab30
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x200]
push eax
call fcn.0044ee90
add esp, 0x1c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x1f4]
push eax
push 0x20019
push 0
push dword [ebp - 0x200]
mov byte [ebp - 4], 3
push VariantInit
mov dword [ebp - 0x1f4], 0
call esi
test eax, eax
je 0x41ad6e
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x1e0]
push str.specialFoldersFromReg_sid_error_RegOpenKeyEx_
push eax
mov byte [ebp - 4], 4
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x1dc]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 6
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41acb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 7
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 8
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 7
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
jb 0x41ad1f
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x1e0]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ad42
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x200]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ad65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41b940
push dword [ebp - 0x1f4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x1fc]
push eax
mov dword [ebp - 0x1f4], 0
call fcn.0040b720
add esp, 0xc
lea eax, [ebp - 0x1f4]
push eax
push 0x20019
push 0
push dword [ebp - 0x1fc]
mov byte [ebp - 4], 9
push VariantInit
call esi
test eax, eax
je 0x41aeb1
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0043e100
add esp, 8
push eax
lea eax, [ebp - 0x1e0]
push str.specialFoldersFromReg_RegOpenKeyEx_
push eax
mov byte [ebp - 4], 0xa
call fcn.0040b800
add esp, 0xc
mov edx, dword [ebp - 0x1dc]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 0xc
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41ae15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0xd
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xe
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0xd
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
jb 0x41ae83
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x1e0]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41aea6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1fc]
jmp 0x41ad25
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov dword [ebp - 0x1f8], 0x410
mov dword [ebp - 0x204], 0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1d8], esi
mov byte [ebp - 4], 0xf
call fcn.004179a0
test al, al
jne 0x41af2a
mov esi, dword [0x520340]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x63]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5340
add esp, 4
push eax
call fcn.004a7190
mov esi, dword [ebp - 0x1d8]
add esp, 4
mov edx, dword [ebp - 0x1f8]
shr edx, 1
jns 0x41af3e
push 0x80070057
call fcn.00404480
mov eax, dword [esi - 8]
mov ebx, 1
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x41af63
push edx
lea ecx, [ebp - 0x1d8]
call fcn.004088a0
mov esi, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1f8]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push 0
push str.AppData
push dword [ebp - 0x1f4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b031
mov eax, dword [ebp - 0x1d8]
push dword [eax - 8]
push eax
call fcn.004a773a
mov edx, eax
add esp, 8
test edx, edx
js 0x41af34
mov ecx, dword [ebp - 0x1d8]
cmp edx, dword [ecx - 8]
jg 0x41af34
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x10
call fcn.00442780
push str.AppDataFolder
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x11
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x10
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
mov byte [ebp - 4], 0xf
jb 0x41b031
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov eax, dword [ebp - 0x1d8]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41b078
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41b277
cmp dword [eax - 8], 0
jge 0x41b060
push 0x80070057
call fcn.00404480
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x1d8]
or edi, 0xffffffff
mov dword [ebp - 0x1f8], 0x410
mov ecx, dword [eax - 8]
mov edx, ebx
sub edx, dword [eax - 4]
sub ecx, 0x208
or ecx, edx
jge 0x41b0ad
push 0x208
lea ecx, [ebp - 0x1d8]
call fcn.004088a0
mov eax, dword [ebp - 0x1d8]
lea ecx, [ebp - 0x1f8]
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push str.Local_AppData
push dword [ebp - 0x1f4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b248
mov eax, dword [ebp - 0x1d8]
push dword [eax - 8]
push eax
call fcn.004a773a
mov edx, eax
add esp, 8
test edx, edx
js 0x41af34
mov ecx, dword [ebp - 0x1d8]
cmp edx, dword [ecx - 8]
jg 0x41af34
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x12
call fcn.00442780
push str.LocalAppDataFolder
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x13
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x12
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
mov byte [ebp - 4], 0xf
jb 0x41b183
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
push str._temp
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.0040b720
add esp, 0xc
push eax
lea eax, [ebp - 0x1b4]
push eax
mov byte [ebp - 4], 0x14
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x15
call fcn.00442780
push str.temp
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x16
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x15
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
jb 0x41b20a
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x1dc]
add edx, 0xfffffff0
mov dword [ebp - 0x1a0], 0xf
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 0x1b4], 0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b248
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1d8]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41b2df
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41b2bc
cmp dword [eax - 8], 0
jge 0x41b2a2
push 0x80070057
call fcn.00404480
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b28d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d8], eax
jmp 0x41b07b
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x1d8]
jmp 0x41b2df
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b2cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1f8], 0x410
mov ecx, dword [eax - 8]
mov edx, ebx
sub edx, dword [eax - 4]
sub ecx, 0x208
or ecx, edx
jge 0x41b311
push 0x208
lea ecx, [ebp - 0x1d8]
call fcn.004088a0
mov eax, dword [ebp - 0x1d8]
lea ecx, [ebp - 0x1f8]
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
push dword [ebp - 0x1f4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b3e7
mov eax, dword [ebp - 0x1d8]
push dword [eax - 8]
push eax
call fcn.004a773a
mov edx, eax
add esp, 8
test edx, edx
js 0x41af34
mov ecx, dword [ebp - 0x1d8]
cmp edx, dword [ecx - 8]
jg 0x41af34
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x17
call fcn.00442780
push str.LocalLowAppDataFolder
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x18
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x17
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
mov byte [ebp - 4], 0xf
jb 0x41b3e7
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov eax, dword [ebp - 0x1d8]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41b44f
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41b42c
cmp dword [eax - 8], 0
jge 0x41b412
push 0x80070057
call fcn.00404480
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x1d8]
jmp 0x41b44f
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b43f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1f8], 0x410
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, 0x208
or ecx, ebx
jge 0x41b47f
push 0x208
lea ecx, [ebp - 0x1d8]
call fcn.004088a0
mov eax, dword [ebp - 0x1d8]
lea ecx, [ebp - 0x1f8]
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push str.Personal
push dword [ebp - 0x1f4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b555
mov eax, dword [ebp - 0x1d8]
push dword [eax - 8]
push eax
call fcn.004a773a
mov edx, eax
add esp, 8
test edx, edx
js 0x41af34
mov ecx, dword [ebp - 0x1d8]
cmp edx, dword [ecx - 8]
jg 0x41af34
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x19
call fcn.00442780
push str.MyDocumentsFolder
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x1a
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x19
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
mov byte [ebp - 4], 0xf
jb 0x41b555
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov eax, dword [ebp - 0x1d8]
cmp dword [eax - 0xc], 0
mov esi, dword [eax - 0x10]
lea edx, [eax - 0x10]
je 0x41b5b7
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x41b594
cmp dword [eax - 8], 0
jge 0x41b580
push 0x80070057
call fcn.00404480
mov dword [eax - 0xc], 0
mov eax, dword [ebp - 0x1d8]
xor ecx, ecx
mov word [eax], cx
jmp 0x41b5b7
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b5a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d8], eax
call fcn.00417b60
test al, al
jne 0x41b5d0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea eax, [ebp - 0x1dc]
push eax
call fcn.00434190
add esp, 4
push eax
lea eax, [ebp - 0x1b4]
push eax
mov byte [ebp - 4], 0x1b
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x1c
call fcn.00442780
push str.ProgFiles32Folder
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x1d
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x1c
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
jb 0x41b64b
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x1dc]
add edx, 0xfffffff0
mov dword [ebp - 0x1a0], 0xf
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 0x1b4], 0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b689
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1dc]
push eax
call fcn.00434330
add esp, 4
push eax
lea eax, [ebp - 0x1b4]
push eax
mov byte [ebp - 4], 0x1e
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x1f
call fcn.00442780
push str.ProgFiles64Folder
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x20
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x1f
call fcn.00442a70
cmp dword [ebp - 0x1a0], 0x10
jb 0x41b704
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x1dc]
add edx, 0xfffffff0
mov dword [ebp - 0x1a0], 0xf
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 0x1b4], 0
mov byte [ebp - 4], 0xf
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b742
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.0043dad0
lea ecx, [ebp - 0x1f0]
push eax
call fcn.00442960
push str.is64bitos
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0x21
call fcn.00442d00
lea ecx, [ebp - 0x1f0]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0xf
call fcn.00442a70
mov ebx, dword [0x520340]
mov ecx, 0xe
lea eax, [ebx + 1]
imul eax, ebx
cdq
idiv ecx
cmp edx, 3
jne 0x41b83d
xor eax, eax
mov dword [ebp - 0x208], eax
lea ecx, [ebp - 0x19c]
nop
xor edx, edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x1e0], ecx
mov edi, edi
lea ecx, [eax + 1]
lea edi, [edx + 1]
mov eax, ebx
cdq
idiv ecx
mov eax, ebx
mov ecx, ebx
sub ecx, dword [ebp - 0x208]
mov ebx, dword [ebp - 0x1e0]
mov esi, edx
cdq
imul esi, ecx
idiv edi
add esi, eax
sub esi, dword [ebp - 0x1dc]
push esi
push 0x4d9680
call fcn.004a80de
mov eax, dword [ebp - 0x208]
mov edx, edi
add ebx, 4
add esp, 8
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x1e0], ebx
cmp edx, 0xe
jge 0x41b81d
mov ebx, dword [0x520340]
jmp 0x41b7c0
inc eax
mov dword [ebp - 0x208], eax
cmp eax, 7
jge 0x41b83a
mov ebx, dword [0x520340]
mov ecx, dword [ebp - 0x1e0]
jmp 0x41b7b0
or edi, 0xffffffff
mov edx, dword [ebp - 0x1d8]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b860
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1fc]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b883
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x200]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b939
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41b939
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1d4]
call fcn.004449b0
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
mov byte [ebp - 4], 0x26
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1fc], esi
mov byte [ebp - 4], 0x27
call fcn.00417bc0
test al, al
jne 0x41b988
call fcn.004a6f99
mov ecx, dword [0x520340]
cmp ecx, eax
jne 0x41b988
dec ecx
mov dword [0x520340], ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x28
jb 0x41b9af
mov edx, dword [edx]
sub esp, 0x18
mov ebx, esp
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [edx], 0
jne 0x41b9ce
xor ecx, ecx
jmp 0x41b9ed
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1dc], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41b9e0
sub ecx, dword [ebp - 0x1dc]
push ecx
push edx
mov ecx, ebx
call fcn.00401460
lea eax, [ebp - 0x1e0]
push eax
call fcn.0044ee90
add esp, 0x1c
mov ecx, dword [eax]
lea ebx, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0x29
cmp edx, ebx
je 0x41ba6c
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x41ba57
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x41ba57
push edx
call fcn.00404840
add esp, 4
mov dword [ebp - 0x1dc], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41ba4c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1dc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1fc], esi
jmp 0x41ba6c
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1fc]
call fcn.00409950
mov esi, dword [ebp - 0x1fc]
mov edx, dword [ebp - 0x1e0]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x28
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ba8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1a0], 0x10
mov byte [ebp - 4], 0x27
jb 0x41baaa
push dword [ebp - 0x1b4]
call fcn.004a5bbe
add esp, 4
mov ebx, dword [ebp - 0x21c]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x41bacb
call fcn.0040c2e0
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0x26
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41bae9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1bc], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x1d4], 0x4d9684
jb 0x41bb0e
push dword [ebp - 0x1d0]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 0x1bc], 0xf
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 0x1d0], 0
call fcn.00444ab0
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a63c4
mov esp, ebp
pop ebp
ret