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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1cc
mov eax, dword [0x40a474]
add eax, 0x5800
mov dword [ebp - 0x184], eax
jmp 0x403177
imul eax, dword [ebp + 8], 0x1c
add eax, dword [0x4244b8]
cmp dword [eax], 1
je 0x403181
mov edx, dword [0x424538]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x198], edx
push edx
push 0x1c
push eax
push ecx
call fcn.00408044
mov esi, dword [ebp - 0x30]
mov edi, dword [0x40a474]
mov eax, esi
mov edx, dword [ebp - 0x2c]
shl eax, 0xa
add esp, 0x10
add edi, eax
mov eax, edx
shl eax, 0xa
add eax, dword [0x40a474]
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x30]
mov dword [0x40c450], eax
mov eax, dword [ebp - 0x34]
sub eax, 2
cmp eax, 0x41
ja case.0x40161d.65
jmp dword [eax*4 + 0x40a004]
push eax
push eax
push 0
push esi
jmp 0x401b46
inc dword [0x424d58]
cmp dword [ebp - 0x198], 0
je 0x403185
sub esp, 0xc
push 0
call sub.USER32.dll_PostQuitMessage
mov eax, 0x7fffffff
add esp, 0xc
jmp 0x403190
sub esp, 0xc
push esi
call fcn.00401453
sub esp, 0xc
dec eax
push 0
push eax
call fcn.00401592
mov esi, eax
add esp, 0x18
jmp case.0x40161d.2
push edi
push edi
push 0
push esi
call fcn.004040bb
jmp 0x401c38
xor eax, eax
call fcn.00401434
sub esp, 0xc
test eax, eax
jg 0x401699
mov eax, 1
push eax
call sub.KERNEL32.dll_Sleep
jmp 0x401f4d
sub esp, 0xc
push dword [ebp - 0x198]
call sub.USER32.dll_SetForegroundWindow
jmp 0x401f4d
cmp dword [ebp - 0x28], 0
jne 0x4016e4
mov eax, dword [esi*4 + 0x424438]
mov ebx, dword [ebp - 0x30]
mov dword [esi*4 + 0x4243f8], eax
mov eax, 1
call fcn.00401434
mov dword [ebx*4 + 0x424438], eax
jmp case.0x40161d.65
mov eax, dword [esi*4 + 0x4243f8]
mov dword [esi*4 + 0x424438], eax
jmp case.0x40161d.65
mov ecx, dword [ebp - 0x28]
shl ecx, 2
mov edx, dword [ecx + 0x424438]
cmp edx, 1
sbb eax, eax
and edx, dword [ebp - 0x24]
and eax, 4
mov dword [ecx + 0x424438], edx
mov esi, dword [ebp + eax - 0x30]
jmp case.0x40161d.2
push ebx
push ebx
push dword [edx*4 + 0x424438]
jmp 0x402ba5
mov eax, dword [0x424d68]
test eax, eax
je 0x40173f
push ecx
push ecx
push edx
push eax
call sub.USER32.dll_ShowWindow
pop eax
pop edx
mov eax, dword [0x424d78]
test eax, eax
je case.0x40161d.65
push edi
push edi
push dword [ebp - 0x30]
push eax
jmp 0x40222a
mov eax, 0xfffffff0
call fcn.004013e8
push esi
push esi
push dword [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x4019c6
mov eax, 0xfffffff0
call fcn.004013e8
sub esp, 0xc
mov esi, eax
push eax
call fcn.004065b2
mov dword [ebp - 0x19c], 0
add esp, 0xc
test eax, eax
je 0x40181b
push ebx
push ebx
push 0x5c
push eax
call fcn.00406586
mov ebx, eax
mov dl, byte [eax]
mov byte [ebp - 0x19d], dl
mov byte [eax], 0
pop eax
test dl, dl
pop ecx
jne 0x4017d2
cmp dword [ebp - 0x28], 0
je 0x4017d2
call fcn.00406530
test eax, eax
je 0x4017d2
sub esp, 0xc
push esi
call fcn.00407395
jmp 0x4017db
sub esp, 0xc
push esi
call fcn.00407370
add esp, 0xc
test eax, eax
je 0x40180a
cmp eax, 0xb7
je 0x4017f1
inc dword [ebp - 0x19c]
jmp 0x40180a
sub esp, 0xc
push esi
call sub.KERNEL32.dll_GetFileAttributesA
and eax, 0x10
add esp, 0xc
cmp eax, 1
adc dword [ebp - 0x19c], 0
mov cl, byte [ebp - 0x19d]
mov byte [ebx], cl
test cl, cl
je 0x40181b
lea eax, [ebx + 1]
jmp 0x40179b
cmp dword [ebp - 0x2c], 0
je 0x401859
sub esp, 0xc
push 0xffffffffffffffe6
call fcn.004013cf
sub esp, 0xc
push esi
push dword [ebp - 0x184]
call fcn.0040675e
add esp, 0xc
push esi
call sub.KERNEL32.dll_SetCurrentDirectoryA
add esp, 0xc
test eax, eax
jne 0x403104
inc dword [ebp - 0x19c]
jmp 0x403104
sub esp, 0xc
push 0xfffffffffffffff5
jmp 0x402f82
xor eax, eax
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.00406553
jmp 0x40209f
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 0x4018b3
sub esp, 0xc
push 0xffffffffffffffe3
jmp 0x402766
cmp dword [ebp - 0x28], 0
je 0x4030fa
sub esp, 0xc
push ebx
call fcn.00406553
add esp, 0xc
test eax, eax
je 0x4030fa
push edi
push edi
push esi
push ebx
call fcn.00406f6c
push ebx
push 0xffffffffffffffe4
jmp 0x402766
xor eax, eax
call fcn.004013e8
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x180]
push 0x400
push ebx
call sub.KERNEL32.dll_GetFullPathNameA
test eax, eax
jne 0x40190f
mov eax, dword [ebp - 0x180]
mov byte [eax], 0
jmp 0x401950
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x40195c
cmp byte [eax], 0
je 0x40195c
sub esp, 0xc
push ebx
call fcn.00406553
add esp, 0xc
test eax, eax
je 0x401947
add eax, 0x2c
push ecx
push ecx
push eax
push dword [ebp - 0x10]
call fcn.0040675e
mov dword [ebp - 0x19c], 0
pop eax
pop edx
jmp 0x401966
mov edx, dword [ebp - 0x180]
mov byte [edx], 0
mov dword [ebp - 0x19c], 1
jmp 0x401966
mov dword [ebp - 0x19c], 0
cmp dword [ebp - 0x28], 0
jne 0x403104
push edi
push 0x400
push dword [ebp - 0x180]
push dword [ebp - 0x180]
call sub.KERNEL32.dll_GetShortPathNameA
jmp 0x4030eb
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 0x4028fa
mov eax, 0xffffffef
call fcn.004013e8
push edx
push edx
push eax
push edi
call fcn.00406bb7
pop ebx
pop esi
jmp 0x402c02
mov eax, 0x31
call fcn.004013e8
sub esp, 0xc
mov edi, eax
mov ebx, dword [ebp - 0x30]
push eax
call fcn.0040631c
add esp, 0xc
test eax, eax
je 0x4019fd
push ecx
push ecx
push edi
push 0x40b050
call fcn.0040675e
pop eax
pop edx
jmp 0x401a23
push eax
push eax
push dword [ebp - 0x184]
push 0x40b050
call fcn.0040675e
push esi
push eax
call fcn.00406721
sub esp, 0xc
push edi
push eax
call fcn.004066da
add esp, 0x18
sub esp, 0xc
mov esi, ebx
and esi, 7
push 0x40b050
call fcn.00406624
add esp, 0xc
cmp esi, 2
jle 0x401a78
sub esp, 0xc
push 0x40b050
call fcn.00406553
xor ecx, ecx
add esp, 0xc
mov edx, eax
test eax, eax
je 0x401a68
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 0x401a8e
sub esp, 0xc
push 0x40b050
call fcn.00406d0a
add esp, 0xc
jmp 0x401a98
mov eax, 1
cmp esi, 1
je 0x401a9d
mov eax, 2
push edx
push eax
push 0x40000000
push 0x40b050
call fcn.00406cd2
mov ebx, eax
pop eax
cmp ebx, 0xffffffff
jne 0x401b50
test esi, esi
je 0x401ad2
push eax
push eax
push edi
push 0xffffffffffffffe2
call fcn.004040bb
cmp esi, 2
pop edi
pop eax
jmp 0x402c04
push ebx
push ebx
push dword [0x40a474]
push 0x40b850
call fcn.0040675e
push 0x40b050
push dword [0x40a474]
call fcn.0040675e
push dword [ebp - 0x1c]
push 0x40b450
call fcn.004067f8
push 0x40b850
push dword [0x40a474]
call fcn.0040675e
mov eax, dword [ebp - 0x30]
sar eax, 3
push eax
push 0x40b450
call fcn.00407288
pop edx
cmp eax, 4
pop ecx
je 0x401a7c
cmp eax, 5
jne 0x401b3d
inc dword [0x424440]
jmp 0x40318c
push ebx
push ebx
push 0x40b050
push 0xfffffffffffffffa
call fcn.004040bb
jmp 0x402849
push ecx
push ecx
push edi
push 0xffffffffffffffea
call fcn.004040bb
inc dword [0x42446c]
pop eax
pop edx
push 0
push 0
push ebx
push dword [ebp - 0x28]
call fcn.00403470
dec dword [0x42446c]
mov esi, eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x401b83
cmp dword [ebp - 0x20], 0xffffffff
je 0x401b90
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.0x40161d.65
cmp esi, 0xfffffffe
jne 0x401bc4
push eax
push eax
push 0xffffffffffffffe9
push 0x40b050
call fcn.004067f8
push edi
push 0x40b050
call fcn.004066da
jmp 0x401bd2
push eax
push eax
push 0xffffffffffffffee
push 0x40b050
call fcn.004067f8
push 0x200010
push 0x40b050
call fcn.00407288
jmp 0x402849
xor eax, eax
jmp 0x401c28
mov eax, 0x31
call fcn.004013e8
push edi
push edi
push dword [ebp - 0x30]
push eax
call fcn.00407288
pop ebx
test eax, eax
pop esi
je 0x4030fa
cmp eax, dword [ebp - 0x28]
je 0x401dda
cmp eax, dword [ebp - 0x20]
jne case.0x40161d.65
mov esi, dword [ebp - 0x1c]
jmp case.0x40161d.2
mov eax, 0xfffffff0
call fcn.004013e8
push ecx
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.0040700a
mov dword [ebp - 0x19c], 0
pop eax
pop edx
jmp 0x403104
mov eax, 1
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.004066e3
jmp 0x402203
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 - 0x1a4], eax
mov byte [edi], 0
setne byte [ebp - 0x185]
cmp dword [ebp - 0x28], 0
je 0x401ca8
cmp byte [ebp - 0x185], 0
je case.0x40161d.65
sub esp, 0xc
push dword [ebp - 0x1a4]
call fcn.004066e3
add esp, 0xc
mov edx, eax
test esi, esi
jns 0x401cc7
add esi, eax
js case.0x40161d.65
cmp esi, edx
push eax
push eax
mov eax, esi
jle 0x401cd1
mov eax, edx
add eax, dword [ebp - 0x1a4]
push eax
push edi
call fcn.0040675e
cmp byte [ebp - 0x185], 0
pop ecx
pop esi
je case.0x40161d.65
test ebx, ebx
jns 0x401d05
sub esp, 0xc
push edi
call fcn.004066e3
add esp, 0xc
add ebx, eax
jns 0x401d05
xor ebx, ebx
jmp 0x401d11
cmp ebx, 0x3ff
jg case.0x40161d.65
mov byte [edi + ebx], 0
jmp case.0x40161d.65
mov eax, 0x20
call fcn.004013e8
mov ebx, eax
mov eax, 0x31
call fcn.004013e8
cmp dword [ebp - 0x20], 0
jne 0x401d41
push edx
push edx
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpiA
jmp 0x401d4a
push edi
push edi
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpA
pop ebx
test eax, eax
pop esi
je 0x4020ae
jmp 0x401dda
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 0x401d8c
cmp dword [ebp - 0x28], 0
je 0x401d9b
push eax
push eax
push edi
push ebx
call sub.KERNEL32.dll_lstrcmpA
pop ebx
test eax, eax
pop esi
jne 0x401d9b
mov byte [edi], 0
mov dword [ebp - 0x19c], 1
jmp 0x401da5
mov dword [ebp - 0x19c], 0
mov byte [edi + 0x3ff], 0
jmp 0x403104
xor eax, eax
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
cmp dword [ebp - 0x1c], 0
jne 0x401dd6
cmp ebx, eax
jl 0x401dda
jle 0x4020ae
jmp 0x401de8
cmp ebx, eax
jae 0x401de2
mov esi, dword [ebp - 0x24]
jmp case.0x40161d.2
jbe 0x4020ae
mov esi, dword [ebp - 0x20]
jmp case.0x40161d.2
mov eax, 1
call fcn.00401434
mov ebx, eax
mov eax, 2
call fcn.00401434
mov dword [ebp - 0x19c], 0
mov ecx, eax
cmp dword [ebp - 0x24], 0xc
ja case.default.0x401e1b
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x40a10c]
add ebx, ecx
jmp 0x401e78
sub ebx, ecx
jmp 0x401e78
imul ebx, ecx
jmp 0x401e78
test ecx, ecx
je 0x401e88
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
jmp 0x401e78
or ebx, ecx
jmp 0x401e78
and ebx, ecx
jmp 0x401e78
xor ebx, ecx
jmp 0x401e78
test ebx, ebx
sete al
jmp 0x401e54
or ecx, ebx
setne al
movzx ebx, al
jmp 0x401e78
test ebx, ebx
setne dl
xor ebx, ebx
test ecx, ecx
setne bl
and ebx, edx
jmp 0x401e78
test ecx, ecx
je 0x401e88
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
jmp 0x401e78
shl ebx, cl
mov dword [ebp - 0x19c], 0
jmp case.default.0x401e1b
sar ebx, cl
jmp 0x401e78
mov dword [ebp - 0x19c], 1
xor ebx, ebx
push ecx
push ecx
push ebx
jmp 0x402084
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 - 0x19c], 0
jmp 0x403104
mov eax, dword [ebp - 0x28]
mov ebx, dword [0x40b040]
test eax, eax
jne 0x401ede
jmp 0x401f27
mov ebx, dword [ebx]
dec eax
cmp eax, 0xffffffff
je 0x401eed
test ebx, ebx
jne 0x401edc
jmp 0x402833
test ebx, ebx
je 0x402833
add ebx, 4
push esi
push esi
push ebx
push 0x40b050
call fcn.0040675e
mov eax, dword [0x40b040]
add eax, 4
push eax
push ebx
call fcn.0040675e
mov eax, dword [0x40b040]
add eax, 4
push 0x40b050
push eax
jmp 0x402dfe
test edx, edx
je 0x401f5f
test ebx, ebx
je 0x4030fa
lea eax, [ebx + 4]
push ecx
push ecx
push eax
push edi
call fcn.0040675e
mov eax, dword [ebx]
mov dword [0x40b040], eax
push edx
push ebx
call sub.KERNEL32.dll_GlobalFree
mov dword [ebp - 0x19c], 0
add esp, 0xc
jmp 0x403104
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.004067f8
mov eax, dword [0x40b040]
mov dword [ebx], eax
mov dword [0x40b040], ebx
jmp 0x401c38
mov eax, 3
call fcn.00401434
mov dword [ebp - 0x1a8], eax
mov eax, 4
call fcn.00401434
test byte [ebp - 0x1c], 1
mov esi, eax
je 0x401fbf
mov eax, 0x33
call fcn.004013e8
mov dword [ebp - 0x1a8], eax
test byte [ebp - 0x1c], 2
je 0x401fd1
mov eax, 0x44
call fcn.004013e8
mov esi, eax
cmp dword [ebp - 0x34], 0x21
jne 0x402032
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 0x402022
sub esp, 4
lea eax, [ebp - 0x10]
push eax
push edx
push 0
push esi
push dword [ebp - 0x1a8]
push ecx
push ebx
call sub.USER32.dll_SendMessageTimeoutA
test eax, eax
pop esi
sete al
movzx eax, al
mov dword [ebp - 0x19c], eax
jmp 0x402075
push esi
push dword [ebp - 0x1a8]
push ecx
push ebx
call sub.USER32.dll_SendMessageA
jmp 0x402068
mov eax, 1
call fcn.004013e8
mov ebx, eax
mov eax, 0x12
call fcn.004013e8
xor edx, edx
cmp byte [eax], 0
je 0x402051
mov edx, eax
xor eax, eax
cmp byte [ebx], 0
je 0x40205a
mov eax, ebx
push edx
push eax
push esi
push dword [ebp - 0x1a8]
call sub.USER32.dll_FindWindowExA
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x19c], 0
cmp dword [ebp - 0x30], 0
js 0x403104
push ebx
push ebx
push dword [ebp - 0x10]
push edi
call fcn.0040645c
jmp 0x401c42
xor eax, eax
call fcn.00401434
sub esp, 0xc
push eax
call sub.USER32.dll_IsWindow
add esp, 0xc
test eax, eax
je 0x4020ae
mov esi, dword [ebp - 0x2c]
jmp case.0x40161d.2
mov esi, dword [ebp - 0x28]
jmp case.0x40161d.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 0x40238e
mov ebx, edx
xor eax, eax
add ebx, dword [0x4244d0]
call fcn.00401434
push edx
push ebx
push 0xffffffffffffffeb
push eax
call sub.USER32.dll_SetWindowLongA
jmp 0x4030e1
push eax
push eax
push edx
push dword [ebp - 0x198]
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.0x40161d.65
sub esp, 0xc
push eax
call sub.GDI32.dll_DeleteObject
jmp 0x401f4d
sub esp, 0xc
push dword [ebp - 0x198]
call sub.USER32.dll_GetDC
sub esp, 0xc
mov esi, eax
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
push ecx
push esi
push dword [ebp - 0x198]
mov dword [section..bss], eax
call sub.USER32.dll_ReleaseDC
pop eax
mov eax, 3
pop edx
call fcn.00401434
mov dword [0x40b010], eax
mov eax, dword [ebp - 0x20]
mov dl, al
mov byte [0x40b017], 1
and edx, 1
mov byte [0x40b014], dl
mov dl, al
and eax, 4
and edx, 2
mov byte [0x40b016], al
push eax
push eax
mov byte [0x40b015], dl
push dword [ebp - 0x2c]
push 0x40b01c
call fcn.004067f8
push eax
push section..bss
call sub.GDI32.dll_CreateFontIndirectA
sub esp, 0xc
push eax
push edi
jmp 0x40306d
xor eax, eax
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
cmp dword [ebp - 0x24], 0
jne 0x402234
push edi
push edi
push eax
push ebx
call sub.USER32.dll_ShowWindow
jmp 0x401c38
push esi
push esi
push eax
push ebx
call sub.USER32.dll_EnableWindow
jmp 0x401c38
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 0x402286
mov ecx, ebx
xor edx, edx
cmp byte [esi], 0
je 0x40228f
mov edx, esi
push ebx
push ebx
push eax
push dword [ebp - 0x184]
push ecx
push edi
push edx
push dword [ebp - 0x198]
call sub.SHELL32.DLL_ShellExecuteA
pop edx
cmp eax, 0x20
pop ecx
jle 0x4030fa
jmp case.0x40161d.65
xor eax, eax
call fcn.004013e8
mov ebx, eax
push eax
push eax
push ebx
push 0xffffffffffffffeb
call fcn.004040bb
push eax
push ebx
call fcn.0040731f
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x4030fa
cmp dword [ebp - 0x28], 0
je 0x402347
jmp 0x4022f2
sub esp, 0xc
push 0xf
call fcn.00406421
add esp, 0xc
push eax
push eax
push 0x64
push ebx
call sub.KERNEL32.dll_WaitForSingleObject
pop esi
cmp eax, 0x102
pop edi
je 0x4022e5
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
push ebx
call sub.KERNEL32.dll_GetExitCodeProcess
cmp dword [ebp - 0x2c], 0
pop eax
pop edx
js 0x402337
push eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x180]
call fcn.0040645c
mov dword [ebp - 0x19c], 0
pop edi
pop eax
jmp 0x402351
mov dword [ebp - 0x19c], 1
cmp dword [ebp - 0x10], 0
jne 0x402351
mov dword [ebp - 0x19c], 0
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_CloseHandle
jmp 0x401f57
mov eax, 2
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.00406553
add esp, 0xc
mov ebx, eax
test eax, eax
je 0x402399
push esi
push esi
push dword [eax + 0x14]
push dword [ebp - 0x180]
call fcn.0040645c
push dword [ebx + 0x18]
push edi
call fcn.0040645c
jmp 0x401c38
mov byte [edi], 0
mov ecx, dword [ebp - 0x180]
mov byte [ecx], 0
jmp 0x4030fa
mov eax, 0xffffffee
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x1ac], eax
push 8
call fcn.004064e1
lea edx, [ebp - 0x10]
sub esp, 0xc
push edx
push dword [ebp - 0x1ac]
call eax
mov byte [edi], 0
mov esi, eax
mov eax, dword [ebp - 0x180]
add esp, 0x18
test esi, esi
mov byte [eax], 0
je 0x4030fa
push ebx
push ebx
push esi
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
pop edx
mov dword [ebp - 0x1b0], eax
pop ecx
test eax, eax
je 0x4030fa
sub esp, 0xc
push 9
call fcn.004064e1
mov ebx, eax
push 0xa
call fcn.004064e1
add esp, 0xc
mov dword [ebp - 0x18c], eax
push dword [ebp - 0x1b0]
push esi
push 0
push dword [ebp - 0x1ac]
call ebx
test eax, eax
je 0x402481
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
push section..rdata
push dword [ebp - 0x1b0]
call dword [ebp - 0x18c]
test eax, eax
je 0x402481
push eax
push eax
mov eax, dword [ebp - 0x14]
push dword [eax + 8]
push edi
call fcn.0040645c
mov eax, dword [ebp - 0x14]
push dword [eax + 0xc]
push dword [ebp - 0x180]
call fcn.0040645c
mov dword [ebp - 0x19c], 0
pop edi
pop eax
jmp 0x40248b
mov dword [ebp - 0x19c], 1
sub esp, 0xc
push dword [ebp - 0x1b0]
call sub.KERNEL32.dll_GlobalFree
jmp 0x401f57
cmp dword [0x424478], 0
js 0x4025a2
mov eax, 0xfffffff0
call fcn.004013e8
mov ebx, eax
mov eax, 1
call fcn.004013e8
cmp dword [ebp - 0x20], 0
mov edi, eax
je 0x4024db
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetModuleHandleA
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x4024f1
push esi
push 8
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
pop ebx
test eax, eax
je 0x402598
push ecx
push ecx
push edi
push esi
call fcn.00406418
mov ebx, eax
pop eax
test ebx, ebx
pop edx
je 0x402556
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x402527
sub esp, 0xc
push eax
call fcn.004013cf
add esp, 0xc
call ebx
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x19c], eax
jmp 0x40256c
sub esp, 0xc
push section..data
push 0x40b040
push dword [0x40a474]
push 0x400
push dword [ebp - 0x198]
call ebx
add esp, 0x20
mov dword [ebp - 0x19c], 0
jmp 0x40256c
push eax
push eax
push edi
push 0xfffffffffffffff7
call fcn.004040bb
mov dword [ebp - 0x19c], 1
pop edi
pop eax
cmp dword [ebp - 0x24], 0
jne 0x403104
sub esp, 0xc
push esi
call fcn.00403fb9
add esp, 0xc
test eax, eax
je 0x403104
sub esp, 0xc
push esi
call sub.KERNEL32.dll_FreeLibrary
jmp 0x401f57
sub esp, 0xc
push 0xfffffffffffffff6
jmp 0x40274d
sub esp, 0xc
push 0xffffffffffffffe7
jmp 0x40274d
mov eax, 0xfffffff0
call fcn.004013e8
mov dword [ebp - 0x1b4], eax
mov eax, 0xffffffdf
call fcn.004013e8
mov edi, eax
mov eax, 2
call fcn.004013e8
mov dword [ebp - 0x1b8], eax
mov eax, 0xffffffcd
call fcn.004013e8
mov dword [ebp - 0x1bc], eax
mov eax, 0x45
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x1c0], eax
mov esi, dword [ebp - 0x20]
push edi
call fcn.0040631c
add esp, 0xc
test eax, eax
jne 0x402612
mov al, 0x21
call fcn.004013e8
sub esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x40a794
push 1
push 0
push 0x40a684
call sub.OLE32.dll_CoCreateInstance
add esp, 0xc
test eax, eax
js 0x402748
mov eax, dword [ebp - 0x18]
push ebx
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
push edx
push 0x40ab74
push eax
call dword [ecx]
mov ebx, eax
pop ecx
test eax, eax
js 0x402735
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x50]
test si, si
mov ebx, eax
pop ecx
pop eax
js 0x40267c
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push dword [ebp - 0x184]
push eax
call dword [edx + 0x24]
pop ecx
pop eax
mov eax, esi
sar eax, 0xc
mov ecx, eax
and ecx, 7
je 0x402696
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
pop ecx
pop eax
mov eax, dword [ebp - 0x18]
push edx
push edx
mov edx, esi
shr edx, 0x10
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
mov edx, dword [ebp - 0x1bc]
pop ecx
cmp byte [edx], 0
pop eax
je 0x4026cc
mov eax, dword [ebp - 0x18]
and esi, 0xfff
push edx
mov edx, dword [eax]
push esi
push dword [ebp - 0x1bc]
push eax
call dword [edx + 0x44]
pop esi
mov eax, dword [ebp - 0x18]
push ecx
push ecx
mov edx, dword [eax]
push dword [ebp - 0x1b8]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push dword [ebp - 0x1c0]
push eax
call dword [edx + 0x1c]
test ebx, ebx
pop eax
pop edx
js 0x402726
push esi
push esi
push 0x400
push edi
push 0xffffffffffffffff
push dword [ebp - 0x1b4]
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
pop ecx
test eax, eax
pop ebx
mov ebx, 0x80004005
je 0x402726
mov eax, dword [ebp - 0x14]
push edx
mov edx, dword [eax]
push 1
push edi
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 0x402761
sub esp, 0xc
push 0xfffffffffffffff0
call fcn.004013cf
mov dword [ebp - 0x19c], 1
jmp 0x401f57
sub esp, 0xc
push 0xfffffffffffffff4
call fcn.004013cf
jmp 0x401f4d
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.00406553
add esp, 0xc
test eax, eax
je 0x402811
sub esp, 0xc
mov ecx, dword [ebp - 0x198]
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], 2
push ebx
call fcn.004066e3
mov byte [eax + ebx + 1], 0
push esi
call fcn.004066e3
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.004040bb
lea eax, [ebp - 0x174]
add esp, 0xc
push eax
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0xc
test eax, eax
je case.0x40161d.65
push eax
push eax
push 0
push 0xfffffffffffffff9
call fcn.004040bb
mov dword [ebp - 0x19c], 1
jmp 0x401c42
cmp esi, 0xbadf00d
je 0x402855
push edi
push edi
push 0xffffffffffffffe8
push 0
call fcn.004067f8
push 0x200010
push eax
call fcn.00407288
pop ebx
mov eax, 0x7fffffff
pop esi
jmp 0x403190
inc dword [0x42444c]
jmp case.0x40161d.65
xor edi, edi
test esi, esi
je 0x40286f
xor eax, eax
call fcn.004013e8
mov edi, eax
xor esi, esi
cmp dword [ebp - 0x2c], 0
je 0x402883
mov eax, 0x11
call fcn.004013e8
mov esi, eax
xor ebx, ebx
cmp dword [ebp - 0x20], 0
je 0x402897
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 0x402c02
mov ax, word [0x40a002]
mov word [ebp - 0x174], ax
mov eax, 1
call fcn.004013e8
mov esi, eax
mov eax, 0x12
call fcn.004013e8
mov ebx, eax
mov eax, 0xffffffdd
call fcn.004013e8
push ecx
push ecx
push eax
lea eax, [ebp - 0x174]
push 0x3ff
push edi
push eax
push ebx
push esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [edi], 0xa
pop eax
pop edx
jne case.0x40161d.65
jmp 0x402de0
cmp dword [ebp - 0x20], 0
jne 0x402940
mov eax, 2
call fcn.00401475
mov ebx, eax
test eax, eax
je 0x4030fa
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 0x402965
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.004014bf
mov esi, eax
test esi, esi
jne 0x4030fa
jmp case.0x40161d.65
mov eax, esi
call fcn.004013bc
mov esi, dword [ebp - 0x20]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c4], eax
mov eax, 2
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 [0x424468]
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 0x4030fa
cmp esi, 1
jne 0x4029e9
mov al, 0x23
call fcn.004013e8
sub esp, 0xc
push 0x40b850
call fcn.004066e3
inc eax
add esp, 0xc
jmp 0x402a1f
cmp esi, 4
jne 0x402a04
mov eax, 3
call fcn.00401434
mov dword [0x40b850], eax
mov eax, 4
jmp 0x402a1f
xor eax, eax
cmp esi, 3
jne 0x402a1f
push 0xc00
push 0x40b850
push 0
push dword [ebp - 0x24]
call fcn.00403470
push edx
push edx
push eax
push 0x40b850
push dword [ebp - 0x1c4]
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 - 0x19c], eax
jmp 0x402ae5
mov eax, 0x20019
call fcn.00401475
mov ebx, eax
mov eax, 0x33
call fcn.004013e8
mov byte [edi], 0
mov edx, eax
test ebx, ebx
je 0x4030fa
lea eax, [ebp - 0x14]
push esi
push esi
push eax
lea eax, [ebp - 0x18]
push edi
mov dword [ebp - 0x14], 0x400
push eax
push 0
push edx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
pop edx
test eax, eax
pop ecx
jne 0x402aa5
mov eax, dword [ebp - 0x18]
cmp eax, 4
je 0x402ab4
cmp eax, 1
je 0x402ad1
cmp eax, 2
je 0x402ad1
mov byte [edi], 0
mov dword [ebp - 0x19c], 1
jmp 0x402ae1
xor eax, eax
cmp dword [ebp - 0x20], 0
sete al
mov dword [ebp - 0x19c], eax
push eax
push eax
push dword [edi]
push edi
call fcn.0040645c
pop esi
pop edi
jmp 0x402ae1
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x19c], edx
mov byte [edi + 0x3ff], 0
sub esp, 0xc
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x401f57
mov eax, 0x20019
call fcn.00401475
mov ebx, eax
mov eax, 3
call fcn.00401434
mov byte [edi], 0
mov edx, eax
test ebx, ebx
je 0x4030fa
mov dword [ebp - 0x18], 0x3ff
cmp dword [ebp - 0x20], 0
je 0x402b2e
push 0x3ff
push edi
push eax
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyA
jmp 0x402b4a
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 0x4030fa
sub esp, 0xc
mov byte [edi + 0x3ff], 0
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x401f4d
sub esp, 0xc
push edi
call fcn.00406370
add esp, 0xc
test eax, eax
je case.0x40161d.65
sub esp, 0xc
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x401f4d
mov eax, 0xffffffed
call fcn.004013e8
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.00406cd2
pop ecx
cmp eax, 0xffffffff
je 0x402de0
push edx
push edx
push eax
push edi
jmp 0x402d50
cmp dword [ebp - 0x28], 0
je 0x402bc7
mov eax, 1
mov ebx, 1
call fcn.00401434
mov byte [0x40b450], al
jmp 0x402bdf
mov eax, 0x11
call fcn.004013e8
sub esp, 0xc
push eax
call fcn.004066e3
mov ebx, eax
add esp, 0xc
cmp byte [edi], 0
je 0x4030fa
sub esp, 0xc
push edi
call fcn.00406370
push esi
push esi
push ebx
push 0x40b450
push eax
call fcn.00406ac0
add esp, 0x14
test eax, eax
jne case.0x40161d.65
jmp 0x4030fa
mov eax, 2
call fcn.00401434
test eax, eax
jle case.0x40161d.65
mov esi, eax
cmp eax, 0x3ff
jle 0x402c2f
mov esi, 0x3ff
mov dword [ebp - 0x1c8], 0
cmp byte [edi], 0
je 0x402cf8
sub esp, 0xc
xor ebx, ebx
push edi
call fcn.00406370
mov dword [ebp - 0x1c8], 0
mov edi, eax
add esp, 0xc
push ecx
lea ecx, [ebp - 0x10]
push 1
push ecx
push edi
call fcn.00406af6
pop edx
test eax, eax
je 0x402cf8
cmp dword [ebp - 0x24], 0
je 0x402c91
push eax
push eax
movzx eax, byte [ebp - 0x10]
push eax
push dword [ebp - 0x180]
call fcn.0040645c
pop edi
pop eax
jmp 0x40318c
cmp bl, 0xd
je 0x402c9b
cmp bl, 0xa
jne 0x402cd0
mov al, byte [ebp - 0x10]
cmp bl, al
je 0x402caa
cmp al, 0xd
je 0x402cb8
cmp al, 0xa
je 0x402cb8
push 1
push 0
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_SetFilePointer
jmp 0x402cf8
mov ecx, dword [ebp - 0x1c8]
mov edx, dword [ebp - 0x180]
mov byte [edx + ecx], al
inc ecx
mov dword [ebp - 0x1c8], ecx
jmp 0x402cf8
mov edx, dword [ebp - 0x1c8]
mov ecx, dword [ebp - 0x180]
mov al, byte [ebp - 0x10]
mov byte [edx + ecx], al
inc edx
mov bl, byte [ebp - 0x10]
mov dword [ebp - 0x1c8], edx
test bl, bl
je 0x402cf8
cmp edx, esi
jl 0x402c5c
mov edx, dword [ebp - 0x1c8]
mov eax, dword [ebp - 0x180]
test edx, edx
mov byte [eax + edx], 0
jmp 0x402c04
cmp byte [edi], 0
je case.0x40161d.65
mov eax, 2
mov esi, dword [ebp - 0x24]
call fcn.00401434
sub esp, 0xc
mov ebx, eax
push edi
call fcn.00406370
add esp, 0xc
push esi
push 0
push ebx
push eax
call sub.KERNEL32.dll_SetFilePointer
cmp dword [ebp - 0x2c], 0
js case.0x40161d.65
push esi
push esi
push eax
push dword [ebp - 0x180]
call fcn.0040645c
jmp 0x401c38
sub esp, 0xc
push edi
call fcn.00406370
add esp, 0xc
test eax, eax
je case.0x40161d.65
sub esp, 0xc
push eax
call sub.KERNEL32.dll_FindClose
jmp 0x401f4d
sub esp, 0xc
push dword [ebp - 0x180]
call fcn.00406370
add esp, 0xc
mov edx, eax
test eax, eax
je 0x402de0
lea eax, [ebp - 0x174]
push ebx
push ebx
push eax
push edx
call sub.KERNEL32.dll_FindNextFileA
pop edx
test eax, eax
pop ecx
je 0x402de0
push eax
push eax
lea eax, [ebp - 0x148]
push eax
push edi
jmp 0x402fca
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 0x402de8
mov ecx, dword [ebp - 0x180]
mov byte [ecx], 0
mov byte [edi], 0
jmp 0x4030fa
push edx
push edx
push eax
push dword [ebp - 0x180]
call fcn.0040645c
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.0040675e
jmp 0x401c38
mov eax, 0xfffffff0
call fcn.004013e8
sub esp, 0xc
mov dword [ebp - 0x1d0], eax
push eax
call fcn.0040631c
add esp, 0xc
test eax, eax
jne 0x402e32
mov eax, 0xffffffed
call fcn.004013e8
sub esp, 0xc
push dword [ebp - 0x1d0]
call fcn.00406d0a
push eax
push eax
push 2
push 0x40000000
push dword [ebp - 0x1d0]
call fcn.00406cd2
mov dword [ebp - 0x1cc], eax
add esp, 0x14
inc eax
je 0x402f5e
mov eax, dword [0x424518]
push edi
mov dword [ebp - 0x190], eax
push edi
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
pop ebx
mov dword [ebp - 0x194], eax
pop esi
mov ebx, 0xfffffd66
test eax, eax
je 0x402f38
sub esp, 0xc
push 0
call fcn.004031b8
sub esp, 0xc
push dword [ebp - 0x190]
push dword [ebp - 0x194]
call fcn.004031d4
push dword [ebp - 0x28]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
add esp, 0x18
mov edi, eax
test eax, eax
je 0x402efd
push dword [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call fcn.00403470
mov eax, edi
jmp 0x402eec
mov esi, dword [eax]
lea ebx, [eax + 8]
push ecx
push esi
push ebx
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x194]
push eax
call fcn.0040634e
lea eax, [ebx + esi]
pop edx
cmp byte [eax], 0
jne 0x402ed1
sub esp, 0xc
push edi
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
push eax
push dword [ebp - 0x190]
push dword [ebp - 0x194]
push dword [ebp - 0x1cc]
call fcn.00406ac0
push eax
push eax
push dword [ebp - 0x194]
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
push 0
push 0
push dword [ebp - 0x1cc]
push 0xffffffffffffffff
call fcn.00403470
mov ebx, eax
sub esp, 0xc
push dword [ebp - 0x1cc]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test ebx, ebx
js 0x402f5e
mov eax, 0xfffffff3
mov dword [ebp - 0x19c], 0
jmp 0x402f7e
sub esp, 0xc
push dword [ebp - 0x1d0]
call sub.KERNEL32.dll_DeleteFileA
mov dword [ebp - 0x19c], 1
mov eax, 0xffffffef
add esp, 0xc
sub esp, 0xc
push eax
call fcn.004013cf
jmp 0x401f57
xor eax, eax
call fcn.00401434
mov esi, eax
cmp eax, dword [0x4244b4]
jae 0x4030fa
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x28]
add ebx, dword [0x4244b0]
cmp eax, 0
jl 0x402fd4
mov eax, dword [ebx + eax*4]
jne 0x402d47
push eax
push eax
lea eax, [ebx + 0x18]
push eax
push dword [ebp - 0x180]
call fcn.0040675e
jmp 0x401c38
not eax
mov dword [ebp - 0x28], eax
test eax, eax
je 0x402fec
mov eax, 1
call fcn.00401434
mov dword [ebp - 0x2c], eax
jmp 0x403003
push eax
push eax
push dword [ebp - 0x20]
lea eax, [ebx + 0x18]
push eax
call fcn.004067f8
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.0x40161d.65
sub esp, 0xc
push esi
call fcn.004011c8
jmp 0x401f4d
xor eax, eax
call fcn.00401434
mov edx, eax
cmp eax, 0x1f
ja 0x4030fa
cmp dword [ebp - 0x24], 0
je 0x403084
cmp dword [ebp - 0x28], 0
je 0x403059
sub esp, 0xc
push eax
call fcn.004012df
sub esp, 0xc
push 0
push 0
call fcn.0040122c
jmp 0x403072
sub esp, 0xc
push 0
call fcn.00401328
sub esp, 0xc
push eax
push dword [ebp - 0x180]
call fcn.0040645c
add esp, 0x18
mov dword [ebp - 0x19c], 0
jmp 0x403104
cmp dword [ebp - 0x28], 0
mov ecx, dword [0x424498]
je 0x40309c
mov eax, dword [ebp - 0x2c]
mov dword [ecx + edx*4 + 0x94], eax
jmp case.0x40161d.65
push esi
push esi
push dword [ecx + eax*4 + 0x94]
push dword [ebp - 0x180]
call fcn.004067f8
jmp 0x401c38
and esi, dword [0x420970]
push 0
push esi
push 0xb
push dword [ebp - 0x198]
call sub.USER32.dll_SendMessageA
cmp dword [ebp - 0x30], 0
je case.0x40161d.65
push ebx
push 0
push 0
push dword [ebp - 0x198]
call sub.USER32.dll_InvalidateRect
mov dword [ebp - 0x19c], 0
pop ecx
jmp 0x403104
mov dword [ebp - 0x19c], 0
jmp 0x403104
mov dword [ebp - 0x19c], 1
mov edx, dword [ebp - 0x19c]
add dword [0x424440], edx
jmp 0x40318c
cmp esi, 0x7fffffff
je 0x403185
sub esp, 0xc
push esi
call fcn.00401453
add esp, 0xc
test eax, eax
jne 0x403134
inc dword [ebp + 8]
mov edx, 1
jmp 0x40313d
dec eax
mov edx, eax
sub edx, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 0
je 0x403177
mov eax, edx
push edx
push dword [0x424da8]
add eax, dword [0x424d88]
push 0x7530
mov dword [0x424d88], 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 0x4015b3
xor eax, eax
jmp 0x403190
mov eax, 0x7fffffff
jmp 0x403190
xor esi, esi
jmp 0x40311a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8