Function at 0x401591
Capabilities:
Copy file
Create directory
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Enumerate files recursively
Get file attributes
Get file version info
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
jmp 0x4030e0
imul eax, dword [ebp + 8], 0x1c
add eax, dword [0x440cc8]
cmp dword [eax], 1
je 0x4030ea
mov edx, dword [0x440d48]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x190], edx
push edx
push 0x1c
push eax
push ecx
call fcn.00407b6c
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov eax, esi
lea ecx, [ebp - 0x30]
shl eax, 0xd
add esp, 0x10
mov dword [0x415850], ecx
lea edi, [eax + section..ndata]
mov eax, edx
shl eax, 0xd
mov dword [ebp - 0x180], eax
add eax, section..ndata
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x34]
sub eax, 2
cmp eax, 0x41
ja case.0x401610.65
jmp dword [eax*4 + 0x40a004]
push eax
push eax
push 0
push esi
jmp 0x401b08
inc dword [0x444d68]
cmp dword [ebp - 0x190], 0
je 0x4030ee
sub esp, 0xc
push 0
call sub.USER32.dll_PostQuitMessage
mov eax, 0x7fffffff
add esp, 0xc
jmp 0x4030f9
sub esp, 0xc
push esi
call fcn.00401453
sub esp, 0xc
dec eax
push 0
push eax
call fcn.00401591
mov esi, eax
add esp, 0x18
jmp case.0x401610.2
push edi
push edi
push 0
push esi
call fcn.00403f43
jmp 0x401bfa
xor eax, eax
call fcn.00401434
sub esp, 0xc
test eax, eax
jg 0x40168c
mov eax, 1
push eax
call sub.KERNEL32.dll_Sleep
jmp 0x401f0f
sub esp, 0xc
push dword [ebp - 0x190]
call sub.USER32.dll_SetForegroundWindow
jmp 0x401f0f
cmp dword [ebp - 0x28], 0
jne 0x4016d7
mov eax, dword [esi*4 + 0x440c48]
mov ebx, dword [ebp - 0x30]
mov dword [esi*4 + 0x440c08], eax
mov eax, 1
call fcn.00401434
mov dword [ebx*4 + 0x440c48], eax
jmp case.0x401610.65
mov eax, dword [esi*4 + 0x440c08]
mov dword [esi*4 + 0x440c48], eax
jmp case.0x401610.65
mov ecx, dword [ebp - 0x28]
shl ecx, 2
mov edx, dword [ecx + 0x440c48]
cmp edx, 1
sbb eax, eax
and edx, dword [ebp - 0x24]
and eax, 4
mov dword [ecx + 0x440c48], edx
mov esi, dword [ebp + eax - 0x30]
jmp case.0x401610.2
push ebx
push ebx
push dword [edx*4 + 0x440c48]
jmp 0x402af8
mov eax, dword [0x444d78]
test eax, eax
je 0x401732
push ecx
push ecx
push edx
push eax
call sub.USER32.dll_ShowWindow
pop eax
pop edx
mov eax, dword [0x444d88]
test eax, eax
je case.0x401610.65
push edi
push edi
push dword [ebp - 0x30]
push eax
jmp 0x4021dc
mov eax, 0xfffffff0
call fcn.004013e8
push esi
push esi
push dword [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x401986
mov eax, 0xfffffff0
call fcn.004013e8
sub esp, 0xc
mov esi, eax
push eax
call fcn.00406301
mov dword [ebp - 0x194], 0
add esp, 0xc
test eax, eax
je 0x4017ed
push ebx
push ebx
push 0x5c
push eax
call fcn.004062d5
mov ebx, eax
mov al, byte [eax]
mov byte [ebp - 0x195], al
mov byte [ebx], 0
push 0
push esi
call sub.KERNEL32.dll_CreateDirectoryA
pop edx
test eax, eax
pop ecx
jne 0x4017dc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x4017c3
inc dword [ebp - 0x194]
jmp 0x4017dc
sub esp, 0xc
push esi
call sub.KERNEL32.dll_GetFileAttributesA
and eax, 0x10
add esp, 0xc
cmp eax, 1
adc dword [ebp - 0x194], 0
mov dl, byte [ebp - 0x195]
mov byte [ebx], dl
test dl, dl
je 0x4017ed
lea eax, [ebx + 1]
jmp 0x40178a
cmp dword [ebp - 0x2c], 0
je 0x401819
sub esp, 0xc
push 0xffffffffffffffe6
call fcn.004013cf
sub esp, 0xc
push esi
push 0x477000
call fcn.004064a4
add esp, 0xc
push esi
call sub.KERNEL32.dll_SetCurrentDirectoryA
jmp 0x401f19
sub esp, 0xc
push 0xfffffffffffffff5
jmp 0x402eeb
xor eax, eax
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.004062a2
jmp 0x402061
mov eax, 0xffffffd0
call fcn.004013e8
mov ebx, eax
mov eax, 0xffffffdf
call fcn.004013e8
mov esi, eax
mov eax, 0x13
call fcn.004013e8
push edi
push edi
push esi
push ebx
call sub.KERNEL32.dll_MoveFileA
pop edx
test eax, eax
pop ecx
je 0x401873
sub esp, 0xc
push 0xffffffffffffffe3
jmp 0x4026c5
cmp dword [ebp - 0x28], 0
je 0x403063
sub esp, 0xc
push ebx
call fcn.004062a2
add esp, 0xc
test eax, eax
je 0x403063
push edi
push edi
push esi
push ebx
call fcn.004069fb
push ebx
push 0xffffffffffffffe4
jmp 0x4026c5
xor eax, eax
call fcn.004013e8
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1bc]
push 0x2000
push ebx
call sub.KERNEL32.dll_GetFullPathNameA
test eax, eax
jne 0x4018cf
mov ecx, dword [ebp - 0x1bc]
mov byte [ecx], 0
jmp 0x401910
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x40191c
cmp byte [eax], 0
je 0x40191c
sub esp, 0xc
push ebx
call fcn.004062a2
add esp, 0xc
test eax, eax
je 0x401907
add eax, 0x2c
push ecx
push ecx
push eax
push dword [ebp - 0x10]
call fcn.004064a4
mov dword [ebp - 0x194], 0
pop eax
pop edx
jmp 0x401926
mov eax, dword [ebp - 0x1bc]
mov byte [eax], 0
mov dword [ebp - 0x194], 1
jmp 0x401926
mov dword [ebp - 0x194], 0
cmp dword [ebp - 0x28], 0
jne 0x40306d
push edi
push 0x2000
push dword [ebp - 0x1bc]
push dword [ebp - 0x1bc]
call sub.KERNEL32.dll_GetShortPathNameA
jmp 0x403054
or eax, 0xffffffff
call fcn.004013e8
lea edx, [ebp - 0x10]
push esi
push esi
push edx
push edi
push 0x2000
push 0
push eax
push 0
call sub.KERNEL32.dll_SearchPathA
pop ecx
test eax, eax
pop ebx
jmp 0x402852
mov eax, 0xffffffef
call fcn.004013e8
push edx
push edx
push eax
push edi
call fcn.00406816
pop ebx
pop esi
jmp 0x402b59
mov eax, 0x31
call fcn.004013e8
sub esp, 0xc
mov edi, eax
mov ebx, dword [ebp - 0x30]
push eax
call fcn.00406120
add esp, 0xc
test eax, eax
je 0x4019bd
push ecx
push ecx
push edi
push 0x40b850
call fcn.004064a4
pop eax
pop edx
jmp 0x4019e2
push eax
push eax
push 0x477000
push 0x40b850
call fcn.004064a4
push esi
push eax
call fcn.00406467
sub esp, 0xc
push edi
push eax
call fcn.00406420
add esp, 0x18
sub esp, 0xc
mov esi, ebx
and esi, 7
push 0x40b850
call fcn.0040636a
add esp, 0xc
cmp esi, 2
jle 0x401a37
sub esp, 0xc
push 0x40b850
call fcn.004062a2
xor ecx, ecx
add esp, 0xc
mov edx, eax
test eax, eax
je 0x401a27
lea eax, [ebp - 0x24]
push ecx
push ecx
push eax
lea eax, [edx + 0x14]
push eax
call sub.KERNEL32.dll_CompareFileTime
mov ecx, eax
pop ebx
pop eax
lea eax, [esi - 3]
or eax, 0x80000000
test ecx, eax
sete al
movzx esi, al
test esi, esi
jne 0x401a4d
sub esp, 0xc
push 0x40b850
call fcn.00406968
add esp, 0xc
jmp 0x401a57
mov eax, 1
cmp esi, 1
je 0x401a5c
mov eax, 2
push edx
push eax
push 0x40000000
push 0x40b850
call fcn.00406930
mov ebx, eax
pop eax
cmp ebx, 0xffffffff
jne 0x401b12
test esi, esi
je 0x401a97
push eax
push eax
push edi
push 0xffffffffffffffe2
call fcn.00403f43
cmp esi, 2
pop edi
pop eax
jne case.0x401610.65
jmp 0x403063
push ebx
push ebx
push section..ndata
push 0x40f850
call fcn.004064a4
push 0x40b850
push section..ndata
call fcn.004064a4
push dword [ebp - 0x1c]
push 0x40d850
call fcn.0040655b
push 0x40f850
push section..ndata
call fcn.004064a4
mov eax, dword [ebp - 0x30]
sar eax, 3
push eax
push 0x40d850
call fcn.00406e67
pop edx
cmp eax, 4
pop ecx
je 0x401a3b
cmp eax, 5
jne 0x401aff
inc dword [0x440c50]
jmp 0x4030f5
push ebx
push ebx
push 0x40b850
push 0xfffffffffffffffa
call fcn.00403f43
jmp 0x4027a8
push ecx
push ecx
push edi
push 0xffffffffffffffea
call fcn.00403f43
inc dword [0x440c7c]
pop eax
pop edx
push 0
push 0
push ebx
push dword [ebp - 0x28]
call fcn.00403409
dec dword [0x440c7c]
mov esi, eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x401b45
cmp dword [ebp - 0x20], 0xffffffff
je 0x401b52
lea eax, [ebp - 0x24]
push eax
push 0
push eax
push ebx
call sub.KERNEL32.dll_SetFileTime
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test esi, esi
jns case.0x401610.65
cmp esi, 0xfffffffe
jne 0x401b86
push eax
push eax
push 0xffffffffffffffe9
push 0x40b850
call fcn.0040655b
push edi
push 0x40b850
call fcn.00406420
jmp 0x401b94
push eax
push eax
push 0xffffffffffffffee
push 0x40b850
call fcn.0040655b
push 0x200010
push 0x40b850
call fcn.00406e67
jmp 0x4027a8
xor eax, eax
jmp 0x401bea
mov eax, 0x31
call fcn.004013e8
push edi
push edi
push dword [ebp - 0x30]
push eax
call fcn.00406e67
pop ebx
test eax, eax
pop esi
je 0x403063
cmp eax, dword [ebp - 0x28]
je 0x401d9c
cmp eax, dword [ebp - 0x20]
jne case.0x401610.65
mov esi, dword [ebp - 0x1c]
jmp case.0x401610.2
mov eax, 0xfffffff0
call fcn.004013e8
push ecx
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00406bfe
mov dword [ebp - 0x194], 0
pop eax
pop edx
jmp 0x40306d
mov eax, 1
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.00406429
jmp 0x4021b5
mov eax, 2
call fcn.00401434
mov ebx, eax
mov eax, 3
call fcn.00401434
mov esi, eax
mov eax, 1
call fcn.004013e8
test ebx, ebx
mov dword [ebp - 0x19c], eax
mov byte [edi], 0
setne byte [ebp - 0x181]
cmp dword [ebp - 0x28], 0
je 0x401c6a
cmp byte [ebp - 0x181], 0
je case.0x401610.65
sub esp, 0xc
push dword [ebp - 0x19c]
call fcn.00406429
add esp, 0xc
mov edx, eax
test esi, esi
jns 0x401c89
add esi, eax
js case.0x401610.65
cmp esi, edx
push eax
push eax
mov eax, esi
jle 0x401c93
mov eax, edx
add eax, dword [ebp - 0x19c]
push eax
push edi
call fcn.004064a4
cmp byte [ebp - 0x181], 0
pop ecx
pop esi
je case.0x401610.65
test ebx, ebx
jns 0x401cc7
sub esp, 0xc
push edi
call fcn.00406429
add esp, 0xc
add ebx, eax
jns 0x401cc7
xor ebx, ebx
jmp 0x401cd3
cmp ebx, 0x1fff
jg case.0x401610.65
mov byte [edi + ebx], 0
jmp case.0x401610.65
mov eax, 0x20
call fcn.004013e8
mov ebx, eax
mov eax, 0x31
call fcn.004013e8
cmp dword [ebp - 0x20], 0
jne 0x401d03
push edx
push edx
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpiA
jmp 0x401d0c
push edi
push edi
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpA
pop ebx
test eax, eax
pop esi
je 0x402070
jmp 0x401d9c
mov eax, 1
call fcn.004013e8
mov ebx, eax
push ecx
push 0x2000
push edi
push eax
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
pop edx
test eax, eax
je 0x401d4e
cmp dword [ebp - 0x28], 0
je 0x401d5d
push eax
push eax
push edi
push ebx
call sub.KERNEL32.dll_lstrcmpA
pop ebx
test eax, eax
pop esi
jne 0x401d5d
mov byte [edi], 0
mov dword [ebp - 0x194], 1
jmp 0x401d67
mov dword [ebp - 0x194], 0
mov byte [edi + 0x1fff], 0
jmp 0x40306d
xor eax, eax
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
cmp dword [ebp - 0x1c], 0
jne 0x401d98
cmp ebx, eax
jl 0x401d9c
jle 0x402070
jmp 0x401daa
cmp ebx, eax
jae 0x401da4
mov esi, dword [ebp - 0x24]
jmp case.0x401610.2
jbe 0x402070
mov esi, dword [ebp - 0x20]
jmp case.0x401610.2
mov eax, 1
call fcn.00401434
mov ebx, eax
mov eax, 2
call fcn.00401434
mov dword [ebp - 0x194], 0
mov ecx, eax
cmp dword [ebp - 0x24], 0xc
ja case.default.0x401ddd
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x40a10c]
add ebx, ecx
jmp 0x401e3a
sub ebx, ecx
jmp 0x401e3a
imul ebx, ecx
jmp 0x401e3a
test ecx, ecx
je 0x401e4a
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
jmp 0x401e3a
or ebx, ecx
jmp 0x401e3a
and ebx, ecx
jmp 0x401e3a
xor ebx, ecx
jmp 0x401e3a
test ebx, ebx
sete al
jmp 0x401e16
or ecx, ebx
setne al
movzx ebx, al
jmp 0x401e3a
test ebx, ebx
setne dl
xor ebx, ebx
test ecx, ecx
setne bl
and ebx, edx
jmp 0x401e3a
test ecx, ecx
je 0x401e4a
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
jmp 0x401e3a
shl ebx, cl
mov dword [ebp - 0x194], 0
jmp case.default.0x401ddd
sar ebx, cl
jmp 0x401e3a
mov dword [ebp - 0x194], 1
xor ebx, ebx
push ecx
push ecx
push ebx
jmp 0x402046
mov eax, 1
call fcn.004013e8
mov ebx, eax
mov eax, 2
call fcn.00401434
push edx
push eax
push ebx
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x10
mov dword [ebp - 0x194], 0
jmp 0x40306d
mov eax, dword [ebp - 0x28]
mov ebx, dword [0x40b840]
test eax, eax
jne 0x401ea0
jmp 0x401ee9
mov ebx, dword [ebx]
dec eax
cmp eax, 0xffffffff
je 0x401eaf
test ebx, ebx
jne 0x401e9e
jmp 0x402792
test ebx, ebx
je 0x402792
add ebx, 4
push esi
push esi
push ebx
push 0x40b850
call fcn.004064a4
mov eax, dword [0x40b840]
add eax, 4
push eax
push ebx
call fcn.004064a4
mov eax, dword [0x40b840]
add eax, 4
push 0x40b850
push eax
jmp 0x402d60
test edx, edx
je 0x401f21
test ebx, ebx
je 0x403063
lea eax, [ebx + 4]
push ecx
push ecx
push eax
push edi
call fcn.004064a4
mov eax, dword [ebx]
mov dword [0x40b840], eax
push edx
push ebx
call sub.KERNEL32.dll_GlobalFree
mov dword [ebp - 0x194], 0
add esp, 0xc
jmp 0x40306d
push eax
push eax
push 0x2004
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
push dword [ebp - 0x30]
mov ebx, eax
lea eax, [eax + 4]
push eax
call fcn.0040655b
mov eax, dword [0x40b840]
mov dword [ebx], eax
mov dword [0x40b840], ebx
jmp 0x401bfa
mov eax, 3
call fcn.00401434
mov dword [ebp - 0x1a0], eax
mov eax, 4
call fcn.00401434
test byte [ebp - 0x1c], 1
mov esi, eax
je 0x401f81
mov eax, 0x33
call fcn.004013e8
mov dword [ebp - 0x1a0], eax
test byte [ebp - 0x1c], 2
je 0x401f93
mov eax, 0x44
call fcn.004013e8
mov esi, eax
cmp dword [ebp - 0x34], 0x21
jne 0x401ff4
mov eax, 1
call fcn.00401434
mov ebx, eax
mov eax, 2
call fcn.00401434
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
sar edx, 2
je 0x401fe4
sub esp, 4
lea eax, [ebp - 0x10]
push eax
push edx
push 0
push esi
push dword [ebp - 0x1a0]
push ecx
push ebx
call sub.USER32.dll_SendMessageTimeoutA
test eax, eax
pop esi
sete al
movzx eax, al
mov dword [ebp - 0x194], eax
jmp 0x402037
push esi
push dword [ebp - 0x1a0]
push ecx
push ebx
call sub.USER32.dll_SendMessageA
jmp 0x40202a
mov eax, 1
call fcn.004013e8
mov ebx, eax
mov eax, 0x12
call fcn.004013e8
xor edx, edx
cmp byte [eax], 0
je 0x402013
mov edx, eax
xor eax, eax
cmp byte [ebx], 0
je 0x40201c
mov eax, ebx
push edx
push eax
push esi
push dword [ebp - 0x1a0]
call sub.USER32.dll_FindWindowExA
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x194], 0
cmp dword [ebp - 0x30], 0
js 0x40306d
push ebx
push ebx
push dword [ebp - 0x10]
push edi
call fcn.004064be
jmp 0x401c04
xor eax, eax
call fcn.00401434
sub esp, 0xc
push eax
call sub.USER32.dll_IsWindow
add esp, 0xc
test eax, eax
je 0x402070
mov esi, dword [ebp - 0x2c]
jmp case.0x401610.2
mov esi, dword [ebp - 0x28]
jmp case.0x401610.2
mov eax, 2
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
push ecx
push ecx
push ebx
push eax
call sub.USER32.dll_GetDlgItem
push eax
jmp 0x40233f
mov ebx, edx
xor eax, eax
add ebx, dword [0x440ce0]
call fcn.00401434
push edx
push ebx
push 0xffffffffffffffeb
push eax
call sub.USER32.dll_SetWindowLongA
jmp 0x40304a
push eax
push eax
push edx
push dword [ebp - 0x190]
call sub.USER32.dll_GetDlgItem
mov edi, eax
lea eax, [ebp - 0x174]
push eax
push edi
call sub.USER32.dll_GetClientRect
mov ebx, dword [ebp - 0x28]
mov esi, ebx
pop ecx
imul ebx, dword [ebp - 0x16c]
pop eax
xor eax, eax
imul esi, dword [ebp - 0x168]
call fcn.004013e8
push edx
push edx
push 0x10
push esi
push ebx
push 0
push eax
push 0
call sub.USER32.dll_LoadImageA
pop ecx
pop ebx
push eax
push 0
push 0x172
push edi
call sub.USER32.dll_SendMessageA
test eax, eax
je case.0x401610.65
sub esp, 0xc
push eax
call sub.GDI32.dll_DeleteObject
jmp 0x401f0f
sub esp, 0xc
push dword [ebp - 0x190]
call sub.USER32.dll_GetDC
sub esp, 0xc
push 0x5a
push eax
call sub.GDI32.dll_GetDeviceCaps
add esp, 0x18
mov ebx, eax
mov eax, 2
call fcn.00401434
push edx
push 0x48
push ebx
push eax
call sub.KERNEL32.dll_MulDiv
neg eax
mov dword [0x40b800], eax
pop eax
mov eax, 3
call fcn.00401434
mov byte [0x40b817], 1
mov dword [0x40b810], eax
mov eax, dword [ebp - 0x20]
mov dl, al
and edx, 1
mov byte [0x40b814], dl
mov dl, al
and eax, 4
and edx, 2
mov byte [0x40b816], al
push eax
push eax
mov byte [0x40b815], dl
push dword [ebp - 0x2c]
push 0x40b81c
call fcn.0040655b
push eax
push 0x40b800
call sub.GDI32.dll_CreateFontIndirectA
sub esp, 0xc
push eax
push edi
jmp 0x402fd6
xor eax, eax
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
cmp dword [ebp - 0x24], 0
jne 0x4021e6
push edi
push edi
push eax
push ebx
call sub.USER32.dll_ShowWindow
jmp 0x401bfa
push esi
push esi
push eax
push ebx
call sub.USER32.dll_EnableWindow
jmp 0x401bfa
xor eax, eax
call fcn.004013e8
mov esi, eax
mov eax, 0x31
call fcn.004013e8
mov edi, eax
mov eax, 0x22
call fcn.004013e8
mov ebx, eax
mov eax, 0x15
call fcn.004013e8
sub esp, 0xc
push 0xffffffffffffffec
call fcn.004013cf
xor ecx, ecx
add esp, 0xc
mov eax, dword [ebp - 0x24]
cmp byte [ebx], 0
je 0x402238
mov ecx, ebx
xor edx, edx
cmp byte [esi], 0
je 0x402241
mov edx, esi
push ebx
push ebx
push eax
push 0x477000
push ecx
push edi
push edx
push dword [ebp - 0x190]
call sub.SHELL32.DLL_ShellExecuteA
pop edx
cmp eax, 0x20
pop ecx
jle 0x403063
jmp case.0x401610.65
xor eax, eax
call fcn.004013e8
mov ebx, eax
push eax
push eax
push ebx
push 0xffffffffffffffeb
call fcn.00403f43
push edi
push ebx
call fcn.00406efe
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x403063
cmp dword [ebp - 0x28], 0
je 0x4022f8
jmp 0x4022a3
sub esp, 0xc
push 0xf
call fcn.00406218
add esp, 0xc
push esi
push esi
push 0x64
push ebx
call sub.KERNEL32.dll_WaitForSingleObject
pop edx
cmp eax, 0x102
pop ecx
je 0x402296
push eax
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.KERNEL32.dll_GetExitCodeProcess
cmp dword [ebp - 0x2c], 0
pop esi
pop edi
js 0x4022e8
push ecx
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x1bc]
call fcn.004064be
mov dword [ebp - 0x194], 0
pop eax
pop edx
jmp 0x402302
mov dword [ebp - 0x194], 1
cmp dword [ebp - 0x10], 0
jne 0x402302
mov dword [ebp - 0x194], 0
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_CloseHandle
jmp 0x401f19
mov eax, 2
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.004062a2
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x40234a
push eax
push eax
push dword [ebx + 0x14]
push dword [ebp - 0x1bc]
call fcn.004064be
push dword [ebx + 0x18]
push edi
call fcn.004064be
jmp 0x401bfa
mov byte [edi], 0
mov ecx, dword [ebp - 0x1bc]
mov byte [ecx], 0
jmp 0x403063
mov eax, 0xffffffee
call fcn.004013e8
mov dword [ebp - 0x1a4], eax
push eax
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1a4]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov byte [edi], 0
mov ebx, eax
mov eax, dword [ebp - 0x1bc]
test ebx, ebx
mov byte [eax], 0
pop esi
pop eax
je 0x403063
push ecx
push ecx
push ebx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
pop eax
test esi, esi
pop edx
je 0x403063
push esi
push ebx
push 0
push dword [ebp - 0x1a4]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402401
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push eax
push section..rdata
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402401
push eax
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push edi
call fcn.004064be
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
push dword [ebp - 0x1bc]
call fcn.004064be
mov dword [ebp - 0x194], 0
pop edi
pop eax
jmp 0x40240b
mov dword [ebp - 0x194], 1
sub esp, 0xc
push esi
call sub.KERNEL32.dll_GlobalFree
jmp 0x401f19
cmp dword [0x440c88], 0
js 0x40251c
mov eax, 0xfffffff0
call fcn.004013e8
mov ebx, eax
mov eax, 1
call fcn.004013e8
cmp dword [ebp - 0x20], 0
mov edi, eax
je 0x402456
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetModuleHandleA
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x40246c
push esi
push 8
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
pop ebx
test eax, eax
je 0x402512
push ecx
push ecx
push edi
push esi
call sub.KERNEL32.dll_GetProcAddress
mov ebx, eax
pop eax
test ebx, ebx
pop edx
je 0x4024d0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4024a2
sub esp, 0xc
push eax
call fcn.004013cf
add esp, 0xc
call ebx
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x194], eax
jmp 0x4024e6
sub esp, 0xc
push section..data
push 0x40b840
push section..ndata
push 0x2000
push dword [ebp - 0x190]
call ebx
add esp, 0x20
mov dword [ebp - 0x194], 0
jmp 0x4024e6
push eax
push eax
push edi
push 0xfffffffffffffff7
call fcn.00403f43
mov dword [ebp - 0x194], 1
pop edi
pop eax
cmp dword [ebp - 0x24], 0
jne 0x40306d
sub esp, 0xc
push esi
call fcn.00403e41
add esp, 0xc
test eax, eax
je 0x40306d
sub esp, 0xc
push esi
call sub.KERNEL32.dll_FreeLibrary
jmp 0x401f19
sub esp, 0xc
push 0xfffffffffffffff6
jmp 0x4026ac
sub esp, 0xc
push 0xffffffffffffffe7
jmp 0x4026ac
mov eax, 0xfffffff0
call fcn.004013e8
mov dword [ebp - 0x1a8], eax
mov eax, 0xffffffdf
call fcn.004013e8
mov esi, eax
mov eax, 2
call fcn.004013e8
mov dword [ebp - 0x1ac], eax
mov eax, 0xffffffcd
call fcn.004013e8
mov edi, eax
mov eax, 0x45
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x1b0], eax
push esi
call fcn.00406120
add esp, 0xc
test eax, eax
jne 0x402585
mov al, 0x21
call fcn.004013e8
sub esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x40a6bc
push 1
push 0
push 0x40a5ac
call sub.OLE32.dll_CoCreateInstance
add esp, 0xc
test eax, eax
js 0x4026a7
mov eax, dword [ebp - 0x18]
push ebx
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push 0x40aa9c
push eax
call dword [ecx]
mov ebx, eax
pop ecx
test eax, eax
js 0x402694
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x50]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push 0x477000
push eax
call dword [edx + 0x24]
movzx ecx, byte [ebp - 0x1f]
pop esi
test ecx, ecx
pop eax
je 0x4025fb
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
pop esi
pop eax
mov eax, dword [ebp - 0x18]
push ecx
push ecx
mov ecx, dword [eax]
movzx edx, word [ebp - 0x1e]
push edx
push eax
call dword [ecx + 0x34]
cmp byte [edi], 0
pop eax
pop edx
je 0x402623
mov eax, dword [ebp - 0x18]
push esi
movzx edx, byte [ebp - 0x20]
mov ecx, dword [eax]
push edx
push edi
push eax
call dword [ecx + 0x44]
pop ecx
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push dword [ebp - 0x1ac]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push dword [ebp - 0x1b0]
push eax
call dword [edx + 0x1c]
test ebx, ebx
pop edi
pop eax
js 0x402685
push esi
push esi
push 0x400
push section..bss
push 0xffffffffffffffff
push dword [ebp - 0x1a8]
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
pop ecx
test eax, eax
pop ebx
mov ebx, 0x80004005
je 0x402685
mov eax, dword [ebp - 0x14]
push edx
mov edx, dword [eax]
push 1
push section..bss
push eax
call dword [edx + 0x18]
mov ebx, eax
pop eax
mov eax, dword [ebp - 0x14]
sub esp, 0xc
mov edx, dword [eax]
push eax
call dword [edx + 8]
add esp, 0xc
mov eax, dword [ebp - 0x18]
sub esp, 0xc
mov edx, dword [eax]
push eax
call dword [edx + 8]
add esp, 0xc
test ebx, ebx
jns 0x4026c0
sub esp, 0xc
push 0xfffffffffffffff0
call fcn.004013cf
mov dword [ebp - 0x194], 1
jmp 0x401f19
sub esp, 0xc
push 0xfffffffffffffff4
call fcn.004013cf
jmp 0x401f0f
xor eax, eax
call fcn.004013e8
mov ebx, eax
mov eax, 0x11
call fcn.004013e8
mov esi, eax
mov eax, 0x23
call fcn.004013e8
sub esp, 0xc
mov edi, eax
push ebx
call fcn.004062a2
add esp, 0xc
test eax, eax
je 0x402770
sub esp, 0xc
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], 2
push ebx
call fcn.00406429
mov byte [eax + ebx + 1], 0
push esi
call fcn.00406429
sub esp, 0xc
mov byte [eax + esi + 1], 0
mov dword [ebp - 0x16c], ebx
mov eax, dword [ebp - 0x28]
push edi
mov word [ebp - 0x164], ax
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x15a], edi
push 0
call fcn.00403f43
lea eax, [ebp - 0x174]
add esp, 0xc
push eax
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0xc
test eax, eax
je case.0x401610.65
push eax
push eax
push 0
push 0xfffffffffffffff9
call fcn.00403f43
mov dword [ebp - 0x194], 1
jmp 0x401c04
cmp esi, 0xbadf00d
je 0x4027b4
push edi
push edi
push 0xffffffffffffffe8
push 0
call fcn.0040655b
push 0x200010
push eax
call fcn.00406e67
pop ebx
mov eax, 0x7fffffff
pop esi
jmp 0x4030f9
inc dword [0x440c5c]
jmp case.0x401610.65
xor edi, edi
test esi, esi
je 0x4027ce
xor eax, eax
call fcn.004013e8
mov edi, eax
xor esi, esi
cmp dword [ebp - 0x2c], 0
je 0x4027e2
mov eax, 0x11
call fcn.004013e8
mov esi, eax
xor ebx, ebx
cmp dword [ebp - 0x20], 0
je 0x4027f6
mov eax, 0x22
call fcn.004013e8
mov ebx, eax
mov eax, 0xffffffcd
call fcn.004013e8
push eax
push ebx
push esi
push edi
call sub.KERNEL32.dll_WritePrivateProfileStringA
jmp 0x402b59
mov eax, 1
mov dword [ebp - 0x14], 0x7e4e21
call fcn.004013e8
mov esi, eax
mov eax, 0x12
call fcn.004013e8
mov ebx, eax
mov eax, 0xffffffdd
call fcn.004013e8
lea edx, [ebp - 0x14]
push ecx
push ecx
push eax
push 0x1fff
push edi
push edx
push ebx
push esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
pop eax
mov eax, dword [edi]
cmp eax, dword [ebp - 0x14]
pop edx
jne case.0x401610.65
jmp 0x402d42
cmp dword [ebp - 0x20], 0
jne 0x402898
mov eax, 2
call fcn.00401474
mov ebx, eax
test eax, eax
je 0x403063
mov eax, 0x33
call fcn.004013e8
push esi
push esi
push eax
push ebx
call sub.ADVAPI32.DLL_RegDeleteValueA
mov esi, eax
push ecx
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
jmp 0x4028bd
mov eax, 0x22
call fcn.004013e8
mov ebx, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [ebp - 0x2c]
call fcn.004013bc
and ebx, 2
mov edx, esi
mov ecx, ebx
call fcn.004014be
mov esi, eax
test esi, esi
jne 0x403063
jmp case.0x401610.65
mov eax, esi
call fcn.004013bc
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
mov eax, 2
mov dword [ebp - 0x1b4], ecx
mov esi, dword [ebp - 0x20]
call fcn.004013e8
mov edi, eax
mov eax, 0x11
call fcn.004013e8
sub esp, 0xc
lea edx, [ebp - 0x14]
push 0
push edx
mov edx, dword [0x440c78]
or edx, 2
push 0
push edx
push 0
push 0
push 0
push eax
push ebx
call sub.ADVAPI32.DLL_RegCreateKeyExA
add esp, 0xc
test eax, eax
jne 0x403063
cmp esi, 1
jne 0x402941
mov al, 0x23
call fcn.004013e8
sub esp, 0xc
push 0x40f850
call fcn.00406429
inc eax
add esp, 0xc
jmp 0x402977
cmp esi, 4
jne 0x40295c
mov eax, 3
call fcn.00401434
mov dword [0x40f850], eax
mov eax, 4
jmp 0x402977
xor eax, eax
cmp esi, 3
jne 0x402977
push 0x6000
push 0x40f850
push 0
push dword [ebp - 0x24]
call fcn.00403409
push edx
push edx
push eax
push 0x40f850
push dword [ebp - 0x1b4]
push 0
push edi
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
push edi
push dword [ebp - 0x14]
setne al
movzx eax, al
mov dword [ebp - 0x194], eax
jmp 0x402a3d
mov eax, 0x20019
call fcn.00401474
mov ebx, eax
mov eax, 0x33
call fcn.004013e8
mov byte [edi], 0
mov edx, eax
test ebx, ebx
je 0x403063
lea eax, [ebp - 0x14]
push esi
push esi
push eax
lea eax, [ebp - 0x18]
push edi
mov dword [ebp - 0x14], 0x1fff
push eax
push 0
push edx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
pop edx
test eax, eax
pop ecx
jne 0x4029fd
mov eax, dword [ebp - 0x18]
cmp eax, 4
je 0x402a0c
cmp eax, 1
je 0x402a29
cmp eax, 2
je 0x402a29
mov byte [edi], 0
mov dword [ebp - 0x194], 1
jmp 0x402a39
xor eax, eax
cmp dword [ebp - 0x20], 0
sete al
mov dword [ebp - 0x194], eax
push eax
push eax
push dword [edi]
push edi
call fcn.004064be
pop esi
pop edi
jmp 0x402a39
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x14]
mov byte [edi + eax], 0
sub esp, 0xc
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x401f19
mov eax, 0x20019
call fcn.00401474
mov ebx, eax
mov eax, 3
call fcn.00401434
mov byte [edi], 0
mov edx, eax
test ebx, ebx
je 0x403063
mov dword [ebp - 0x18], 0x1fff
cmp dword [ebp - 0x20], 0
je 0x402a86
push 0x1fff
push edi
push eax
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyA
jmp 0x402aa2
lea eax, [ebp - 0x18]
push 0
push 0
push 0
push 0
push eax
push edi
push edx
push ebx
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
jne 0x403063
sub esp, 0xc
mov byte [edi + 0x1fff], 0
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x401f0f
cmp byte [edi], 0
je case.0x401610.65
sub esp, 0xc
push edi
call fcn.00406170
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x401f0f
mov eax, 0xffffffed
call fcn.004013e8
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.00406930
pop ecx
cmp eax, 0xffffffff
je 0x402d42
push edx
push edx
push eax
push edi
jmp 0x402cb8
cmp dword [ebp - 0x28], 0
je 0x402b1a
mov eax, 1
mov ebx, 1
call fcn.00401434
mov byte [0x40d850], al
jmp 0x402b32
mov eax, 0x11
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.00406429
mov ebx, eax
add esp, 0xc
cmp byte [edi], 0
je 0x403063
sub esp, 0xc
push edi
call fcn.00406170
lea edx, [ebp - 0x18]
push 0
push edx
push ebx
push 0x40d850
push eax
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
jmp 0x401a8c
mov eax, 2
call fcn.00401434
test eax, eax
jle case.0x401610.65
mov esi, eax
cmp eax, 0x1fff
jle 0x402b80
mov esi, 0x1fff
mov dword [ebp - 0x1b8], 0
cmp byte [edi], 0
je 0x402c60
sub esp, 0xc
xor ebx, ebx
push edi
call fcn.00406170
mov dword [ebp - 0x1b8], 0
mov edi, eax
add esp, 0xc
sub esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push 0
push edx
push 1
push ecx
push edi
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x402c60
cmp dword [ebp - 0x18], 1
jne 0x402c60
cmp dword [ebp - 0x24], 0
je 0x402bf6
movzx eax, byte [ebp - 0x10]
push esi
push esi
push eax
push dword [ebp - 0x1bc]
call fcn.004064be
pop ecx
pop ebx
jmp 0x4030f5
cmp bl, 0xd
je 0x402c00
cmp bl, 0xa
jne 0x402c35
mov al, byte [ebp - 0x10]
cmp bl, al
je 0x402c0f
cmp al, 0xd
je 0x402c1d
cmp al, 0xa
je 0x402c1d
push 1
push 0
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_SetFilePointer
jmp 0x402c60
mov ecx, dword [ebp - 0x1b8]
mov edx, dword [ebp - 0x1bc]
mov byte [edx + ecx], al
inc ecx
mov dword [ebp - 0x1b8], ecx
jmp 0x402c60
mov ecx, dword [ebp - 0x1b8]
mov edx, dword [ebp - 0x180]
mov al, byte [ebp - 0x10]
mov byte [edx + ecx + section..ndata], al
inc ecx
mov dword [ebp - 0x1b8], ecx
mov bl, al
test al, al
je 0x402c60
cmp ecx, esi
jl 0x402bad
mov edx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 0x1bc]
test edx, edx
mov byte [eax + edx], 0
jmp 0x401a8c
cmp byte [edi], 0
je case.0x401610.65
mov eax, 2
mov esi, dword [ebp - 0x24]
call fcn.00401434
sub esp, 0xc
mov ebx, eax
push edi
call fcn.00406170
add esp, 0xc
push esi
push 0
push ebx
push eax
call sub.KERNEL32.dll_SetFilePointer
cmp dword [ebp - 0x2c], 0
js case.0x401610.65
push edx
push edx
push eax
push dword [ebp - 0x1bc]
call fcn.004064be
jmp 0x401bfa
cmp byte [edi], 0
je case.0x401610.65
sub esp, 0xc
push edi
call fcn.00406170
push eax
call sub.KERNEL32.dll_FindClose
jmp 0x401f0f
mov ecx, dword [ebp - 0x1bc]
cmp byte [ecx], 0
je 0x402d42
sub esp, 0xc
push ecx
call fcn.00406170
sub esp, 0xc
lea edx, [ebp - 0x174]
push edx
push eax
call sub.KERNEL32.dll_FindNextFileA
add esp, 0x18
test eax, eax
je 0x402d42
push eax
push eax
lea eax, [ebp - 0x148]
push eax
push edi
jmp 0x402f33
mov eax, 2
call fcn.004013e8
lea edx, [ebp - 0x174]
push esi
push esi
push edx
push eax
call sub.KERNEL32.dll_FindFirstFileA
pop ecx
cmp eax, 0xffffffff
pop ebx
jne 0x402d4a
mov eax, dword [ebp - 0x1bc]
mov byte [eax], 0
mov byte [edi], 0
jmp 0x403063
push edx
push edx
push eax
push dword [ebp - 0x1bc]
call fcn.004064be
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.004064a4
jmp 0x401bfa
mov eax, 0xfffffff0
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x1c4], eax
push eax
call fcn.00406120
add esp, 0xc
test eax, eax
jne 0x402d94
mov eax, 0xffffffed
call fcn.004013e8
sub esp, 0xc
push dword [ebp - 0x1c4]
call fcn.00406968
push eax
push eax
push 2
push 0x40000000
push dword [ebp - 0x1c4]
call fcn.00406930
mov dword [ebp - 0x1c0], eax
add esp, 0x14
inc eax
je 0x402ec7
mov edx, dword [0x440d28]
push edi
mov dword [ebp - 0x188], edx
push edi
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
pop ebx
mov dword [ebp - 0x18c], eax
pop esi
mov ebx, 0xfffffd66
test eax, eax
je 0x402ea1
sub esp, 0xc
push 0
call fcn.00403124
sub esp, 0xc
push dword [ebp - 0x188]
push dword [ebp - 0x18c]
call fcn.00403140
push dword [ebp - 0x28]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
add esp, 0x18
mov edi, eax
test eax, eax
je 0x402e60
push dword [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call fcn.00403409
mov eax, edi
jmp 0x402e4f
mov esi, dword [eax]
lea ebx, [eax + 8]
push ecx
push esi
push ebx
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x18c]
push eax
call fcn.0040614f
lea eax, [ebx + esi]
pop edx
cmp byte [eax], 0
jne 0x402e34
sub esp, 0xc
push edi
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
sub esp, 0xc
lea eax, [ebp - 0x18]
push 0
push eax
push dword [ebp - 0x188]
push dword [ebp - 0x18c]
push dword [ebp - 0x1c0]
call sub.KERNEL32.dll_WriteFile
push dword [ebp - 0x18c]
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
push 0
push 0
push dword [ebp - 0x1c0]
push 0xffffffffffffffff
call fcn.00403409
mov ebx, eax
sub esp, 0xc
push dword [ebp - 0x1c0]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test ebx, ebx
js 0x402ec7
mov eax, 0xfffffff3
mov dword [ebp - 0x194], 0
jmp 0x402ee7
sub esp, 0xc
push dword [ebp - 0x1c4]
call sub.KERNEL32.dll_DeleteFileA
mov dword [ebp - 0x194], 1
mov eax, 0xffffffef
add esp, 0xc
sub esp, 0xc
push eax
call fcn.004013cf
jmp 0x401f19
xor eax, eax
call fcn.00401434
mov esi, eax
cmp eax, dword [0x440cc4]
jae 0x403063
imul ebx, eax, 0x2018
mov eax, dword [ebp - 0x28]
add ebx, dword [0x440cc0]
cmp eax, 0
jl 0x402f3d
mov eax, dword [ebx + eax*4]
jne 0x402caf
push eax
push eax
lea eax, [ebx + 0x18]
push eax
push dword [ebp - 0x1bc]
call fcn.004064a4
jmp 0x401bfa
not eax
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402f55
mov eax, 1
call fcn.00401434
mov dword [ebp - 0x2c], eax
jmp 0x402f6c
push eax
push eax
push dword [ebp - 0x20]
lea eax, [ebx + 0x18]
push eax
call fcn.0040655b
or dword [ebx + 8], 0x100
pop edi
pop eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x24], 0
je case.0x401610.65
sub esp, 0xc
push esi
call fcn.004011c8
jmp 0x401f0f
xor eax, eax
call fcn.00401434
mov edx, eax
cmp eax, 0x1f
ja 0x403063
cmp dword [ebp - 0x24], 0
je 0x402fed
cmp dword [ebp - 0x28], 0
je 0x402fc2
sub esp, 0xc
push eax
call fcn.004012df
sub esp, 0xc
push 0
push 0
call fcn.0040122c
jmp 0x402fdb
sub esp, 0xc
push 0
call fcn.00401328
sub esp, 0xc
push eax
push dword [ebp - 0x1bc]
call fcn.004064be
add esp, 0x18
mov dword [ebp - 0x194], 0
jmp 0x40306d
cmp dword [ebp - 0x28], 0
mov ecx, dword [0x440ca8]
je 0x403005
mov eax, dword [ebp - 0x2c]
mov dword [ecx + edx*4 + 0x94], eax
jmp case.0x401610.65
push esi
push esi
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0x1bc]
call fcn.0040655b
jmp 0x401bfa
and esi, dword [0x42b970]
push 0
push esi
push 0xb
push dword [ebp - 0x190]
call sub.USER32.dll_SendMessageA
cmp dword [ebp - 0x30], 0
je case.0x401610.65
push ebx
push 0
push 0
push dword [ebp - 0x190]
call sub.USER32.dll_InvalidateRect
mov dword [ebp - 0x194], 0
pop ecx
jmp 0x40306d
mov dword [ebp - 0x194], 0
jmp 0x40306d
mov dword [ebp - 0x194], 1
mov ecx, dword [ebp - 0x194]
add dword [0x440c50], ecx
jmp 0x4030f5
cmp esi, 0x7fffffff
je 0x4030ee
sub esp, 0xc
push esi
call fcn.00401453
add esp, 0xc
test eax, eax
jne 0x40309d
inc dword [ebp + 8]
mov edx, 1
jmp 0x4030a6
dec eax
mov edx, eax
sub edx, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 0
je 0x4030e0
mov eax, edx
push edx
push dword [0x444db8]
add eax, dword [0x444d98]
push 0x7530
mov dword [0x444d98], eax
push eax
call sub.KERNEL32.dll_MulDiv
mov dword [esp], 0
push eax
push 0x402
push dword [ebp + 0xc]
call sub.USER32.dll_SendMessageA
cmp dword [ebp + 8], 0
jns 0x4015a2
xor eax, eax
jmp 0x4030f9
mov eax, 0x7fffffff
jmp 0x4030f9
xor esi, esi
jmp 0x403083
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8