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 0x4030cc
imul eax, dword [ebp + 8], 0x1c
add eax, dword [0x424cb8]
cmp dword [eax], 1
je 0x4030d6
mov edx, dword [0x424d38]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x190], edx
push edx
push 0x1c
push eax
push ecx
call fcn.00407a08
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov eax, esi
lea ecx, [ebp - 0x30]
shl eax, 0xa
add esp, 0x10
mov dword [0x40cc50], ecx
lea edi, [eax + section..ndata]
mov eax, edx
shl eax, 0xa
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 [0x425558]
cmp dword [ebp - 0x190], 0
je 0x4030da
sub esp, 0xc
push 0
call sub.USER32.dll_PostQuitMessage
mov eax, 0x7fffffff
add esp, 0xc
jmp 0x4030e5
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.00403e2b
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 + 0x424c38]
mov ebx, dword [ebp - 0x30]
mov dword [esi*4 + 0x424bf8], eax
mov eax, 1
call fcn.00401434
mov dword [ebx*4 + 0x424c38], eax
jmp case.0x401610.65
mov eax, dword [esi*4 + 0x424bf8]
mov dword [esi*4 + 0x424c38], eax
jmp case.0x401610.65
mov ecx, dword [ebp - 0x28]
shl ecx, 2
mov edx, dword [ecx + 0x424c38]
cmp edx, 1
sbb eax, eax
and edx, dword [ebp - 0x24]
and eax, 4
mov dword [ecx + 0x424c38], edx
mov esi, dword [ebp + eax - 0x30]
jmp case.0x401610.2
push ebx
push ebx
push dword [edx*4 + 0x424c38]
jmp 0x402ae4
mov eax, dword [0x425568]
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 [0x425578]
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.0040619d
mov dword [ebp - 0x194], 0
add esp, 0xc
test eax, eax
je 0x4017ed
push ebx
push ebx
push 0x5c
push eax
call fcn.00406171
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 0x42d800
call fcn.00406340
add esp, 0xc
push esi
call sub.KERNEL32.dll_SetCurrentDirectoryA
jmp 0x401f19
sub esp, 0xc
push 0xfffffffffffffff5
jmp 0x402ed7
xor eax, eax
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.0040613e
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 0x4026b1
cmp dword [ebp - 0x28], 0
je 0x40304f
sub esp, 0xc
push ebx
call fcn.0040613e
add esp, 0xc
test eax, eax
je 0x40304f
push edi
push edi
push esi
push ebx
call fcn.00406897
push ebx
push 0xffffffffffffffe4
jmp 0x4026b1
xor eax, eax
call fcn.004013e8
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1bc]
push 0x400
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.0040613e
add esp, 0xc
test eax, eax
je 0x401907
add eax, 0x2c
push ecx
push ecx
push eax
push dword [ebp - 0x10]
call fcn.00406340
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 0x403059
push edi
push 0x400
push dword [ebp - 0x1bc]
push dword [ebp - 0x1bc]
call sub.KERNEL32.dll_GetShortPathNameA
jmp 0x403040
or eax, 0xffffffff
call fcn.004013e8
lea edx, [ebp - 0x10]
push esi
push esi
push edx
push edi
push 0x400
push 0
push eax
push 0
call sub.KERNEL32.dll_SearchPathA
pop ecx
test eax, eax
pop ebx
jmp 0x40283e
mov eax, 0xffffffef
call fcn.004013e8
push edx
push edx
push eax
push edi
call fcn.004066b2
pop ebx
pop esi
jmp 0x402b45
mov eax, 0x31
call fcn.004013e8
sub esp, 0xc
mov edi, eax
mov ebx, dword [ebp - 0x30]
push eax
call fcn.00405fbc
add esp, 0xc
test eax, eax
je 0x4019bd
push ecx
push ecx
push edi
push 0x40b850
call fcn.00406340
pop eax
pop edx
jmp 0x4019e2
push eax
push eax
push 0x42d800
push 0x40b850
call fcn.00406340
push esi
push eax
call fcn.00406303
sub esp, 0xc
push edi
push eax
call fcn.004062bc
add esp, 0x18
sub esp, 0xc
mov esi, ebx
and esi, 7
push 0x40b850
call fcn.00406206
add esp, 0xc
cmp esi, 2
jle 0x401a37
sub esp, 0xc
push 0x40b850
call fcn.0040613e
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.00406804
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.004067cc
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.00403e2b
cmp esi, 2
pop edi
pop eax
jne case.0x401610.65
jmp 0x40304f
push ebx
push ebx
push section..ndata
push 0x40c050
call fcn.00406340
push 0x40b850
push section..ndata
call fcn.00406340
push dword [ebp - 0x1c]
push 0x40bc50
call fcn.004063f7
push 0x40c050
push section..ndata
call fcn.00406340
mov eax, dword [ebp - 0x30]
sar eax, 3
push eax
push 0x40bc50
call fcn.00406d03
pop edx
cmp eax, 4
pop ecx
je 0x401a3b
cmp eax, 5
jne 0x401aff
inc dword [0x424c40]
jmp 0x4030e1
push ebx
push ebx
push 0x40b850
push 0xfffffffffffffffa
call fcn.00403e2b
jmp 0x402794
push ecx
push ecx
push edi
push 0xffffffffffffffea
call fcn.00403e2b
inc dword [0x424c6c]
pop eax
pop edx
push 0
push 0
push ebx
push dword [ebp - 0x28]
call fcn.004033e4
dec dword [0x424c6c]
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.004063f7
push edi
push 0x40b850
call fcn.004062bc
jmp 0x401b94
push eax
push eax
push 0xffffffffffffffee
push 0x40b850
call fcn.004063f7
push 0x200010
push 0x40b850
call fcn.00406d03
jmp 0x402794
xor eax, eax
jmp 0x401bea
mov eax, 0x31
call fcn.004013e8
push edi
push edi
push dword [ebp - 0x30]
push eax
call fcn.00406d03
pop ebx
test eax, eax
pop esi
je 0x40304f
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.00406a9a
mov dword [ebp - 0x194], 0
pop eax
pop edx
jmp 0x403059
mov eax, 1
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.004062c5
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.004062c5
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.00406340
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.004062c5
add esp, 0xc
add ebx, eax
jns 0x401cc7
xor ebx, ebx
jmp 0x401cd3
cmp ebx, 0x3ff
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 0x400
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 + 0x3ff], 0
jmp 0x403059
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 0x403059
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 0x40277e
test ebx, ebx
je 0x40277e
add ebx, 4
push esi
push esi
push ebx
push 0x40b850
call fcn.00406340
mov eax, dword [0x40b840]
add eax, 4
push eax
push ebx
call fcn.00406340
mov eax, dword [0x40b840]
add eax, 4
push 0x40b850
push eax
jmp 0x402d4c
test edx, edx
je 0x401f21
test ebx, ebx
je 0x40304f
lea eax, [ebx + 4]
push ecx
push ecx
push eax
push edi
call fcn.00406340
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 0x403059
push eax
push eax
push 0x404
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
push dword [ebp - 0x30]
mov ebx, eax
lea eax, [eax + 4]
push eax
call fcn.004063f7
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 0x403059
push ebx
push ebx
push dword [ebp - 0x10]
push edi
call fcn.0040635a
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 [0x424cd0]
call fcn.00401434
push edx
push ebx
push 0xffffffffffffffeb
push eax
call sub.USER32.dll_SetWindowLongA
jmp 0x403036
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.004063f7
push eax
push 0x40b800
call sub.GDI32.dll_CreateFontIndirectA
sub esp, 0xc
push eax
push edi
jmp 0x402fc2
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 0x42d800
push ecx
push edi
push edx
push dword [ebp - 0x190]
call sub.SHELL32.DLL_ShellExecuteA
pop edx
cmp eax, 0x20
pop ecx
jle 0x40304f
jmp case.0x401610.65
xor eax, eax
call fcn.004013e8
mov ebx, eax
push eax
push eax
push ebx
push 0xffffffffffffffeb
call fcn.00403e2b
push edi
push ebx
call fcn.00406d9a
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x40304f
cmp dword [ebp - 0x28], 0
je 0x4022f8
jmp 0x4022a3
sub esp, 0xc
push 0xf
call fcn.004060b4
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.0040635a
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.0040613e
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.0040635a
push dword [ebx + 0x18]
push edi
call fcn.0040635a
jmp 0x401bfa
mov byte [edi], 0
mov ecx, dword [ebp - 0x1bc]
mov byte [ecx], 0
jmp 0x40304f
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 0x40304f
push ecx
push ecx
push ebx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
pop eax
test esi, esi
pop edx
je 0x40304f
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.0040635a
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
push dword [ebp - 0x1bc]
call fcn.0040635a
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 [0x424c78], 0
js 0x402508
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 0x4024fe
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 0x400
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.00403e2b
mov dword [ebp - 0x194], 1
pop edi
pop eax
cmp dword [ebp - 0x24], 0
jne 0x403059
sub esp, 0xc
push esi
call sub.KERNEL32.dll_FreeLibrary
jmp 0x401f19
sub esp, 0xc
push 0xfffffffffffffff6
jmp 0x402698
sub esp, 0xc
push 0xffffffffffffffe7
jmp 0x402698
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.00405fbc
add esp, 0xc
test eax, eax
jne 0x402571
mov al, 0x21
call fcn.004013e8
sub esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x40a91c
push 1
push 0
push 0x40aa2c
call sub.OLE32.dll_CoCreateInstance
add esp, 0xc
test eax, eax
js 0x402693
mov eax, dword [ebp - 0x18]
push ebx
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push 0x40ac1c
push eax
call dword [ecx]
mov ebx, eax
pop ecx
test eax, eax
js 0x402680
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 0x42d800
push eax
call dword [edx + 0x24]
movzx ecx, byte [ebp - 0x1f]
pop esi
test ecx, ecx
pop eax
je 0x4025e7
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 0x40260f
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 0x402671
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 0x402671
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 0x4026ac
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.0040613e
add esp, 0xc
test eax, eax
je 0x40275c
sub esp, 0xc
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], 2
push ebx
call fcn.004062c5
mov byte [eax + ebx + 1], 0
push esi
call fcn.004062c5
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.00403e2b
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.00403e2b
mov dword [ebp - 0x194], 1
jmp 0x401c04
cmp esi, 0xbadf00d
je 0x4027a0
push edi
push edi
push 0xffffffffffffffe8
push 0
call fcn.004063f7
push 0x200010
push eax
call fcn.00406d03
pop ebx
mov eax, 0x7fffffff
pop esi
jmp 0x4030e5
inc dword [0x424c4c]
jmp case.0x401610.65
xor edi, edi
test esi, esi
je 0x4027ba
xor eax, eax
call fcn.004013e8
mov edi, eax
xor esi, esi
cmp dword [ebp - 0x2c], 0
je 0x4027ce
mov eax, 0x11
call fcn.004013e8
mov esi, eax
xor ebx, ebx
cmp dword [ebp - 0x20], 0
je 0x4027e2
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 0x402b45
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 0x3ff
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 0x402d2e
cmp dword [ebp - 0x20], 0
jne 0x402884
mov eax, 2
call fcn.00401474
mov ebx, eax
test eax, eax
je 0x40304f
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 0x4028a9
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 0x40304f
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 [0x424c68]
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 0x40304f
cmp esi, 1
jne 0x40292d
mov al, 0x23
call fcn.004013e8
sub esp, 0xc
push 0x40c050
call fcn.004062c5
inc eax
add esp, 0xc
jmp 0x402963
cmp esi, 4
jne 0x402948
mov eax, 3
call fcn.00401434
mov dword [0x40c050], eax
mov eax, 4
jmp 0x402963
xor eax, eax
cmp esi, 3
jne 0x402963
push 0xc00
push 0x40c050
push 0
push dword [ebp - 0x24]
call fcn.004033e4
push edx
push edx
push eax
push 0x40c050
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 0x402a29
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 0x40304f
lea eax, [ebp - 0x14]
push esi
push esi
push eax
lea eax, [ebp - 0x18]
push edi
mov dword [ebp - 0x14], 0x3ff
push eax
push 0
push edx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
pop edx
test eax, eax
pop ecx
jne 0x4029e9
mov eax, dword [ebp - 0x18]
cmp eax, 4
je 0x4029f8
cmp eax, 1
je 0x402a15
cmp eax, 2
je 0x402a15
mov byte [edi], 0
mov dword [ebp - 0x194], 1
jmp 0x402a25
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.0040635a
pop esi
pop edi
jmp 0x402a25
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 0x40304f
mov dword [ebp - 0x18], 0x3ff
cmp dword [ebp - 0x20], 0
je 0x402a72
push 0x3ff
push edi
push eax
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyA
jmp 0x402a8e
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 0x40304f
sub esp, 0xc
mov byte [edi + 0x3ff], 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.0040600c
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.004067cc
pop ecx
cmp eax, 0xffffffff
je 0x402d2e
push edx
push edx
push eax
push edi
jmp 0x402ca4
cmp dword [ebp - 0x28], 0
je 0x402b06
mov eax, 1
mov ebx, 1
call fcn.00401434
mov byte [0x40bc50], al
jmp 0x402b1e
mov eax, 0x11
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.004062c5
mov ebx, eax
add esp, 0xc
cmp byte [edi], 0
je 0x40304f
sub esp, 0xc
push edi
call fcn.0040600c
lea edx, [ebp - 0x18]
push 0
push edx
push ebx
push 0x40bc50
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, 0x3ff
jle 0x402b6c
mov esi, 0x3ff
mov dword [ebp - 0x1b8], 0
cmp byte [edi], 0
je 0x402c4c
sub esp, 0xc
xor ebx, ebx
push edi
call fcn.0040600c
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 0x402c4c
cmp dword [ebp - 0x18], 1
jne 0x402c4c
cmp dword [ebp - 0x24], 0
je 0x402be2
movzx eax, byte [ebp - 0x10]
push esi
push esi
push eax
push dword [ebp - 0x1bc]
call fcn.0040635a
pop ecx
pop ebx
jmp 0x4030e1
cmp bl, 0xd
je 0x402bec
cmp bl, 0xa
jne 0x402c21
mov al, byte [ebp - 0x10]
cmp bl, al
je 0x402bfb
cmp al, 0xd
je 0x402c09
cmp al, 0xa
je 0x402c09
push 1
push 0
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_SetFilePointer
jmp 0x402c4c
mov ecx, dword [ebp - 0x1b8]
mov edx, dword [ebp - 0x1bc]
mov byte [edx + ecx], al
inc ecx
mov dword [ebp - 0x1b8], ecx
jmp 0x402c4c
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 0x402c4c
cmp ecx, esi
jl 0x402b99
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.0040600c
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.0040635a
jmp 0x401bfa
cmp byte [edi], 0
je case.0x401610.65
sub esp, 0xc
push edi
call fcn.0040600c
push eax
call sub.KERNEL32.dll_FindClose
jmp 0x401f0f
mov ecx, dword [ebp - 0x1bc]
cmp byte [ecx], 0
je 0x402d2e
sub esp, 0xc
push ecx
call fcn.0040600c
sub esp, 0xc
lea edx, [ebp - 0x174]
push edx
push eax
call sub.KERNEL32.dll_FindNextFileA
add esp, 0x18
test eax, eax
je 0x402d2e
push eax
push eax
lea eax, [ebp - 0x148]
push eax
push edi
jmp 0x402f1f
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 0x402d36
mov eax, dword [ebp - 0x1bc]
mov byte [eax], 0
mov byte [edi], 0
jmp 0x40304f
push edx
push edx
push eax
push dword [ebp - 0x1bc]
call fcn.0040635a
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.00406340
jmp 0x401bfa
mov eax, 0xfffffff0
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x1c4], eax
push eax
call fcn.00405fbc
add esp, 0xc
test eax, eax
jne 0x402d80
mov eax, 0xffffffed
call fcn.004013e8
sub esp, 0xc
push dword [ebp - 0x1c4]
call fcn.00406804
push eax
push eax
push 2
push 0x40000000
push dword [ebp - 0x1c4]
call fcn.004067cc
mov dword [ebp - 0x1c0], eax
add esp, 0x14
inc eax
je 0x402eb3
mov edx, dword [0x424d18]
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 0x402e8d
sub esp, 0xc
push 0
call fcn.00403110
sub esp, 0xc
push dword [ebp - 0x188]
push dword [ebp - 0x18c]
call fcn.0040312c
push dword [ebp - 0x28]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
add esp, 0x18
mov edi, eax
test eax, eax
je 0x402e4c
push dword [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call fcn.004033e4
mov eax, edi
jmp 0x402e3b
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.00405feb
lea eax, [ebx + esi]
pop edx
cmp byte [eax], 0
jne 0x402e20
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.004033e4
mov ebx, eax
sub esp, 0xc
push dword [ebp - 0x1c0]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test ebx, ebx
js 0x402eb3
mov eax, 0xfffffff3
mov dword [ebp - 0x194], 0
jmp 0x402ed3
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 [0x424cb4]
jae 0x40304f
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x28]
add ebx, dword [0x424cb0]
cmp eax, 0
jl 0x402f29
mov eax, dword [ebx + eax*4]
jne 0x402c9b
push eax
push eax
lea eax, [ebx + 0x18]
push eax
push dword [ebp - 0x1bc]
call fcn.00406340
jmp 0x401bfa
not eax
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402f41
mov eax, 1
call fcn.00401434
mov dword [ebp - 0x2c], eax
jmp 0x402f58
push eax
push eax
push dword [ebp - 0x20]
lea eax, [ebx + 0x18]
push eax
call fcn.004063f7
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 0x40304f
cmp dword [ebp - 0x24], 0
je 0x402fd9
cmp dword [ebp - 0x28], 0
je 0x402fae
sub esp, 0xc
push eax
call fcn.004012df
sub esp, 0xc
push 0
push 0
call fcn.0040122c
jmp 0x402fc7
sub esp, 0xc
push 0
call fcn.00401328
sub esp, 0xc
push eax
push dword [ebp - 0x1bc]
call fcn.0040635a
add esp, 0x18
mov dword [ebp - 0x194], 0
jmp 0x403059
cmp dword [ebp - 0x28], 0
mov ecx, dword [0x424c98]
je 0x402ff1
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.004063f7
jmp 0x401bfa
and esi, dword [0x421160]
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 0x403059
mov dword [ebp - 0x194], 0
jmp 0x403059
mov dword [ebp - 0x194], 1
mov ecx, dword [ebp - 0x194]
add dword [0x424c40], ecx
jmp 0x4030e1
cmp esi, 0x7fffffff
je 0x4030da
sub esp, 0xc
push esi
call fcn.00401453
add esp, 0xc
test eax, eax
jne 0x403089
inc dword [ebp + 8]
mov edx, 1
jmp 0x403092
dec eax
mov edx, eax
sub edx, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 0
je 0x4030cc
mov eax, edx
push edx
push dword [0x4255a8]
add eax, dword [0x425588]
push 0x7530
mov dword [0x425588], 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 0x4030e5
mov eax, 0x7fffffff
jmp 0x4030e5
xor esi, esi
jmp 0x40306f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8