Function at 0x40158e
Capabilities:
Copy file
Create directory
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
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 ecx, 7
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1bc
mov eax, dword [0x42f9e8]
lea edi, [ebp - 0x34]
mov dword [ebp - 0x1a8], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
shl eax, 0xa
mov dword [ebp - 0x1bc], eax
add eax, section..ndata
mov dword [ebp - 0x1ac], eax
lea eax, [ebp - 0x30]
mov dword [0x40cc50], eax
mov eax, dword [ebp - 0x34]
shl edi, 0xa
lea edx, [edi + section..ndata]
mov dword [ebp - 0x1b0], edx
sub eax, 2
cmp eax, 0x41
ja case.0x4015f1.65
jmp dword [eax*4 + 0x40a004]
mov eax, dword [ebp - 0x30]
jmp 0x403044
push edi
push edi
push 0
push dword [ebp - 0x30]
jmp 0x401ae8
inc dword [0x430208]
mov eax, 0x7fffffff
cmp dword [ebp - 0x1a8], 0
je 0x403044
sub esp, 0xc
push 0
call sub.USER32.dll_PostQuitMessage
mov eax, 0x7fffffff
add esp, 0xc
jmp 0x403044
sub esp, 0xc
push dword [ebp - 0x30]
call fcn.00401440
sub esp, 0xc
dec eax
push 0
push eax
call fcn.0040304c
add esp, 0x18
jmp 0x403044
push esi
push esi
push 0
push dword [ebp - 0x30]
jmp 0x402675
xor eax, eax
call fcn.00401421
sub esp, 0xc
test eax, eax
jg 0x401679
mov eax, 1
push eax
call sub.KERNEL32.dll_Sleep
jmp 0x402aa4
sub esp, 0xc
push dword [ebp - 0x1a8]
call sub.USER32.dll_SetForegroundWindow
jmp 0x402aa4
cmp dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x30]
jne 0x4016ba
mov eax, dword [ebx*4 + 0x42f8e8]
mov dword [ebx*4 + 0x42f8a8], eax
mov eax, 1
call fcn.00401421
jmp 0x4016c1
mov eax, dword [ebx*4 + 0x42f8a8]
mov dword [ebx*4 + 0x42f8e8], eax
jmp case.0x4015f1.65
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx*4 + 0x42f8e8]
cmp edx, 1
sbb eax, eax
and edx, dword [ebp - 0x24]
and eax, 4
mov eax, dword [ebp + eax - 0x30]
mov dword [ecx*4 + 0x42f8e8], edx
jmp 0x403044
mov eax, dword [ebp - 0x2c]
push ebx
push ebx
push dword [eax*4 + 0x42f8e8]
jmp 0x402acf
mov eax, dword [0x430218]
test eax, eax
je 0x401719
push ecx
push ecx
push dword [ebp - 0x2c]
push eax
call sub.USER32.dll_ShowWindow
pop eax
pop edx
mov eax, dword [0x430228]
test eax, eax
je case.0x4015f1.65
push edi
push edi
push dword [ebp - 0x30]
push eax
jmp 0x40219c
mov eax, 0xfffffff0
call fcn.004013d5
push esi
push esi
push dword [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x401969
mov eax, 0xfffffff0
xor esi, esi
call fcn.004013d5
sub esp, 0xc
push eax
mov edi, eax
call fcn.00406196
add esp, 0xc
test eax, eax
je 0x4017c3
push ebx
push ebx
push 0x5c
push eax
call fcn.0040616a
mov dl, byte [eax]
mov ebx, eax
mov byte [ebp - 0x1a1], dl
mov byte [eax], 0
push 0
push edi
call sub.KERNEL32.dll_CreateDirectoryA
pop edx
pop ecx
test eax, eax
jne 0x4017b2
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x40179d
inc esi
jmp 0x4017b2
sub esp, 0xc
push edi
call sub.KERNEL32.dll_GetFileAttributesA
and eax, 0x10
add esp, 0xc
cmp eax, 1
adc esi, 0
mov al, byte [ebp - 0x1a1]
test al, al
mov byte [ebx], al
je 0x4017c3
lea eax, [ebx + 1]
jmp 0x401769
cmp dword [ebp - 0x2c], 0
je 0x4017ee
push eax
push eax
push 0x40bc50
push 0xffffffffffffffe6
call fcn.00403d54
push edi
push 0x438800
call fcn.00406357
push eax
push edi
call sub.KERNEL32.dll_SetCurrentDirectoryA
jmp 0x402955
push ebx
push ebx
push 0x40bc50
push 0xfffffffffffffff5
jmp 0x402ece
xor eax, eax
call fcn.004013d5
sub esp, 0xc
push eax
call fcn.00406137
jmp 0x402019
mov eax, 0xffffffd0
call fcn.004013d5
mov ebx, eax
mov eax, 0xffffffdf
call fcn.004013d5
mov esi, eax
mov eax, 0x13
call fcn.004013d5
push ecx
push ecx
push esi
push ebx
call sub.KERNEL32.dll_MoveFileA
pop edi
pop edx
test eax, eax
je 0x401850
push ebx
push ebx
push 0x40bc50
push 0xffffffffffffffe3
jmp 0x402675
cmp dword [ebp - 0x28], 0
je 0x403037
sub esp, 0xc
push ebx
call fcn.00406137
add esp, 0xc
test eax, eax
je 0x403037
push ecx
push ecx
push esi
push ebx
call fcn.004068c5
push 0x40bc50
push 0xffffffffffffffe4
call fcn.00403d54
jmp 0x4021a1
xor eax, eax
call fcn.004013d5
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1ac]
push 0x400
push ebx
call sub.KERNEL32.dll_GetFullPathNameA
test eax, eax
jne 0x4018b9
mov edx, dword [ebp - 0x1bc]
mov byte [edx + section..ndata], 0
jmp 0x4018f6
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jbe 0x4018fd
cmp byte [eax], 0
je 0x4018fd
sub esp, 0xc
push ebx
call fcn.00406137
add esp, 0xc
test eax, eax
je 0x4018e9
push edx
add eax, 0x2c
push edx
xor esi, esi
push eax
push dword [ebp - 0x10]
call fcn.00406357
pop edi
pop eax
jmp 0x4018ff
mov eax, dword [ebp - 0x1bc]
mov byte [eax + section..ndata], 0
mov esi, 1
jmp 0x4018ff
xor esi, esi
cmp dword [ebp - 0x28], 0
jne 0x40303c
push ebx
push 0x400
push dword [ebp - 0x1ac]
push dword [ebp - 0x1ac]
call sub.KERNEL32.dll_GetShortPathNameA
jmp 0x403030
or eax, 0xffffffff
call fcn.004013d5
lea edx, [ebp - 0x10]
push ecx
push ecx
push edx
push dword [ebp - 0x1b0]
push 0x400
push 0
push eax
push 0
call sub.KERNEL32.dll_SearchPathA
pop esi
pop edx
test eax, eax
jmp 0x4027f8
mov eax, 0xffffffef
call fcn.004013d5
push ebx
push ebx
push eax
push dword [ebp - 0x1b0]
call fcn.004066dc
pop edx
pop ecx
jmp 0x402b3e
mov eax, 0x31
call fcn.004013d5
sub esp, 0xc
mov esi, dword [ebp - 0x30]
and esi, 7
push eax
mov edi, eax
call fcn.00405fb8
add esp, 0xc
test eax, eax
je 0x4019a3
push eax
push eax
push edi
push 0x40b850
call fcn.00406357
pop ebx
pop eax
jmp 0x4019c8
push ecx
push ecx
push 0x438800
push 0x40b850
call fcn.00406357
push edx
push eax
call fcn.0040631a
sub esp, 0xc
push edi
push eax
call fcn.004062d3
add esp, 0x18
sub esp, 0xc
push 0x40b850
call fcn.004061ff
add esp, 0xc
cmp esi, 2
jle 0x401a18
sub esp, 0xc
push 0x40b850
call fcn.00406137
xor edx, edx
add esp, 0xc
test eax, eax
mov ecx, eax
je 0x401a08
push eax
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ecx + 0x14]
push eax
call sub.KERNEL32.dll_CompareFileTime
pop ecx
pop ebx
mov edx, eax
lea eax, [esi - 3]
or eax, 0x80000000
test edx, eax
sete al
movzx esi, al
test esi, esi
jne 0x401a33
sub esp, 0xc
push 0x40b850
call fcn.00406832
mov eax, 2
add esp, 0xc
jmp 0x401a3c
xor eax, eax
cmp esi, 1
setne al
inc eax
push edx
push eax
push 0x40000000
push 0x40b850
call fcn.004067fa
mov ebx, eax
cmp ebx, 0xffffffff
pop eax
jne 0x401af9
test esi, esi
je 0x401a77
push eax
push eax
push edi
push 0xffffffffffffffe2
call fcn.00403d54
cmp esi, 2
pop edi
pop eax
jne case.0x4015f1.65
jmp 0x403037
push ebx
push ebx
push section..ndata
push 0x40c050
call fcn.00406357
push 0x40b850
push section..ndata
call fcn.00406357
push dword [ebp - 0x1c]
push 0x40bc50
call fcn.0040640e
push 0x40c050
push section..ndata
call fcn.00406357
mov eax, dword [ebp - 0x30]
sar eax, 3
push eax
push 0x40bc50
call fcn.00406d37
pop edx
pop ecx
cmp eax, 4
je 0x401a1c
cmp eax, 5
jne 0x401adf
inc dword [0x42f8f0]
jmp 0x403042
push edi
push edi
push 0x40b850
push 0xfffffffffffffffa
call fcn.00403d54
mov eax, 0x7fffffff
pop ebx
pop esi
jmp 0x403044
push ecx
push ecx
push edi
push 0xffffffffffffffea
call fcn.00403d54
inc dword [0x42f91c]
pop eax
pop edx
push 0
push 0
push ebx
push dword [ebp - 0x28]
call fcn.00403149
dec dword [0x42f91c]
cmp dword [ebp - 0x24], 0xffffffff
mov esi, eax
jne 0x401b2c
cmp dword [ebp - 0x20], 0xffffffff
je 0x401b39
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.0x4015f1.65
cmp esi, 0xfffffffe
jne 0x401b6d
push eax
push eax
push 0xffffffffffffffe9
push 0x40b850
call fcn.0040640e
push edi
push 0x40b850
call fcn.004062d3
jmp 0x401b7b
push edi
push edi
push 0xffffffffffffffee
push 0x40b850
call fcn.0040640e
push 0x200010
push 0x40b850
call fcn.00406d37
jmp 0x401aed
xor eax, eax
jmp 0x401bd1
mov eax, 0x31
call fcn.004013d5
push esi
push esi
push dword [ebp - 0x30]
push eax
call fcn.00406d37
pop ecx
pop ebx
test eax, eax
je 0x403037
cmp eax, dword [ebp - 0x28]
je 0x401d90
cmp eax, dword [ebp - 0x20]
jne case.0x4015f1.65
mov eax, dword [ebp - 0x1c]
jmp 0x403044
mov eax, 0xfffffff0
call fcn.004013d5
push edx
push edx
push dword [ebp - 0x2c]
push eax
call fcn.00406ad4
jmp 0x4021a1
mov eax, 1
call fcn.004013d5
sub esp, 0xc
push eax
call fcn.004062dc
jmp 0x402170
mov eax, 2
call fcn.00401421
mov ebx, eax
mov eax, 3
call fcn.00401421
mov esi, eax
mov eax, 1
call fcn.004013d5
test ebx, ebx
setne byte [ebp - 0x1b5]
cmp dword [ebp - 0x28], 0
mov byte [edi + section..ndata], 0
mov dword [ebp - 0x1a0], eax
je 0x401c49
cmp byte [ebp - 0x1b5], 0
je case.0x4015f1.65
sub esp, 0xc
push dword [ebp - 0x1a0]
call fcn.004062dc
add esp, 0xc
test esi, esi
mov edx, eax
jns 0x401c68
add esi, eax
js case.0x4015f1.65
cmp esi, edx
push eax
push eax
mov eax, esi
jle 0x401c72
mov eax, edx
add eax, dword [ebp - 0x1a0]
push eax
push dword [ebp - 0x1b0]
call fcn.00406357
cmp byte [ebp - 0x1b5], 0
pop ecx
pop esi
je case.0x4015f1.65
test ebx, ebx
jns 0x401cb0
sub esp, 0xc
push dword [ebp - 0x1b0]
call fcn.004062dc
add esp, 0xc
add ebx, eax
jns 0x401cb0
xor ebx, ebx
jmp 0x401cbc
cmp ebx, 0x3ff
jg case.0x4015f1.65
mov byte [ebx + edi + section..ndata], 0
jmp case.0x4015f1.65
mov eax, 0x20
call fcn.004013d5
mov ebx, eax
mov eax, 0x31
call fcn.004013d5
cmp dword [ebp - 0x20], 0
jne 0x401cf0
push edx
push edx
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpiA
jmp 0x401cf9
push edi
push edi
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpA
test eax, eax
pop ebx
pop esi
jne 0x401d90
jmp 0x402028
mov eax, 1
call fcn.004013d5
push ecx
mov ebx, eax
push 0x400
push dword [ebp - 0x1b0]
push eax
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
pop edx
test eax, eax
je 0x401d45
cmp dword [ebp - 0x28], 0
je 0x401d53
push eax
push eax
push dword [ebp - 0x1b0]
push ebx
call sub.KERNEL32.dll_lstrcmpA
pop ebx
pop esi
test eax, eax
jne 0x401d53
mov byte [edi + section..ndata], 0
mov esi, 1
jmp 0x401d55
xor esi, esi
mov edx, dword [ebp - 0x1b0]
mov byte [edx + 0x3ff], 0
jmp 0x40303c
xor eax, eax
call fcn.00401421
mov ebx, eax
mov eax, 1
call fcn.00401421
cmp dword [ebp - 0x1c], 0
jne 0x401d8c
cmp ebx, eax
jl 0x401d90
jle 0x402028
jmp 0x401d9e
cmp ebx, eax
jae 0x401d98
mov eax, dword [ebp - 0x24]
jmp 0x403044
jbe 0x402028
mov eax, dword [ebp - 0x20]
jmp 0x403044
mov eax, 1
xor esi, esi
call fcn.00401421
mov ebx, eax
mov eax, 2
call fcn.00401421
cmp dword [ebp - 0x24], 0xc
mov ecx, eax
ja case.default.0x401dc9
mov eax, dword [ebp - 0x24]
jmp dword [eax*4 + 0x40a10c]
add ebx, ecx
jmp 0x401ddb
sub ebx, ecx
jmp 0x401ddb
imul ebx, ecx
xor esi, esi
jmp case.default.0x401dc9
test ecx, ecx
je 0x401e2e
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
jmp 0x401ddb
or ebx, ecx
jmp 0x401ddb
and ebx, ecx
jmp 0x401ddb
xor ebx, ecx
jmp 0x401ddb
test ebx, ebx
sete al
jmp 0x401e04
or ecx, ebx
setne al
movzx ebx, al
jmp 0x401ddb
test ebx, ebx
setne dl
xor ebx, ebx
test ecx, ecx
setne bl
and ebx, edx
jmp 0x401ddb
test ecx, ecx
je 0x401e2e
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
jmp 0x401ddb
shl ebx, cl
jmp 0x401ddb
sar ebx, cl
jmp 0x401ddb
mov esi, 1
xor ebx, ebx
push ecx
push ecx
push ebx
jmp 0x401ff9
mov eax, 1
xor esi, esi
call fcn.004013d5
mov ebx, eax
mov eax, 2
call fcn.00401421
push edx
push eax
push ebx
push dword [ebp - 0x1b0]
call sub.USER32.dll_wsprintfA
add esp, 0x10
jmp 0x40303c
mov eax, dword [ebp - 0x28]
mov ebx, dword [0x40b840]
test eax, eax
jne 0x401e7c
jmp 0x401ec4
mov ebx, dword [ebx]
test eax, eax
je 0x401e8a
dec eax
test ebx, ebx
jne 0x401e7a
jmp 0x402734
test ebx, ebx
je 0x402734
push eax
add ebx, 4
push eax
push ebx
push 0x40b850
call fcn.00406357
mov eax, dword [0x40b840]
add eax, 4
push eax
push ebx
call fcn.00406357
mov eax, dword [0x40b840]
add eax, 4
push 0x40b850
push eax
jmp 0x402d4c
cmp dword [ebp - 0x2c], 0
je 0x401ef6
test ebx, ebx
je 0x403037
push eax
push eax
lea eax, [ebx + 4]
push eax
push dword [ebp - 0x1b0]
call fcn.00406357
mov eax, dword [ebx]
mov dword [0x40b840], eax
push eax
push ebx
call sub.KERNEL32.dll_GlobalFree
jmp 0x402aa4
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.0040640e
mov eax, dword [0x40b840]
mov dword [ebx], eax
mov dword [0x40b840], ebx
jmp 0x4021a1
mov eax, 3
call fcn.00401421
mov edi, eax
mov eax, 4
call fcn.00401421
test byte [ebp - 0x1c], 1
mov esi, eax
je 0x401f4e
mov eax, 0x33
call fcn.004013d5
mov edi, eax
test byte [ebp - 0x1c], 2
je 0x401f60
mov eax, 0x44
call fcn.004013d5
mov esi, eax
cmp dword [ebp - 0x34], 0x21
jne 0x401faf
mov eax, 1
call fcn.00401421
mov ebx, eax
mov eax, 2
call fcn.00401421
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, eax
sar edx, 2
je 0x401fa4
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push 0
push esi
push edi
push ecx
push ebx
call sub.USER32.dll_SendMessageTimeoutA
pop esi
test eax, eax
sete al
movzx esi, al
jmp 0x401fea
push esi
push edi
push ecx
push ebx
call sub.USER32.dll_SendMessageA
jmp 0x401fe5
mov eax, 1
call fcn.004013d5
mov ebx, eax
mov eax, 0x12
call fcn.004013d5
mov edx, eax
xor eax, eax
cmp byte [edx], 0
setne al
neg eax
and edx, eax
mov eax, ebx
cmp byte [ebx], 0
jne 0x401fdc
xor eax, eax
push edx
push eax
push esi
push edi
call sub.USER32.dll_FindWindowExA
mov dword [ebp - 0x10], eax
xor esi, esi
cmp dword [ebp - 0x30], 0
js 0x40303c
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x1b0]
call fcn.00406371
jmp 0x4021a3
xor eax, eax
call fcn.00401421
sub esp, 0xc
push eax
call sub.USER32.dll_IsWindow
add esp, 0xc
test eax, eax
je 0x402028
mov eax, dword [ebp - 0x2c]
jmp 0x403044
mov eax, dword [ebp - 0x28]
jmp 0x403044
mov eax, 2
call fcn.00401421
mov ebx, eax
mov eax, 1
call fcn.00401421
push ecx
push ecx
push ebx
push eax
call sub.USER32.dll_GetDlgItem
push eax
jmp 0x4022ee
mov ebx, dword [ebp - 0x2c]
xor eax, eax
add ebx, dword [0x42f980]
call fcn.00401421
push edx
push ebx
push 0xffffffffffffffeb
push eax
call sub.USER32.dll_SetWindowLongA
jmp 0x40302e
push eax
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x1a8]
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]
pop ecx
pop eax
xor eax, eax
mov esi, ebx
imul ebx, dword [ebp - 0x16c]
imul esi, dword [ebp - 0x168]
call fcn.004013d5
push edx
push edx
push 0x10
push esi
push ebx
push 0
push eax
push 0
call sub.USER32.dll_LoadImageA
pop edx
pop ecx
push eax
push 0
push 0x172
push edi
call sub.USER32.dll_SendMessageA
test eax, eax
je case.0x4015f1.65
sub esp, 0xc
push eax
call sub.GDI32.dll_DeleteObject
jmp 0x402aa4
sub esp, 0xc
push dword [ebp - 0x1a8]
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.00401421
push edi
push 0x48
push ebx
push eax
call sub.KERNEL32.dll_MulDiv
pop esi
neg eax
mov dword [0x40b800], eax
mov eax, 3
call fcn.00401421
push ebx
push ebx
push dword [ebp - 0x2c]
mov byte [0x40b817], 1
mov dword [0x40b810], eax
mov eax, dword [ebp - 0x20]
push 0x40b81c
mov dl, al
and edx, 1
mov byte [0x40b814], dl
mov dl, al
and eax, 4
and edx, 2
mov byte [0x40b815], dl
mov byte [0x40b816], al
call fcn.0040640e
push ecx
push 0x40b800
call sub.GDI32.dll_CreateFontIndirectA
sub esp, 0xc
push eax
push dword [ebp - 0x1b0]
jmp 0x402fc6
xor eax, eax
call fcn.00401421
mov ebx, eax
mov eax, 1
call fcn.00401421
cmp dword [ebp - 0x24], 0
jne 0x4021aa
push edx
push edx
push eax
push ebx
call sub.USER32.dll_ShowWindow
xor esi, esi
pop edi
pop eax
jmp 0x40303c
push esi
push esi
push eax
push ebx
call sub.USER32.dll_EnableWindow
jmp 0x4021a1
xor eax, eax
call fcn.004013d5
mov esi, eax
mov eax, 0x31
call fcn.004013d5
mov edi, eax
mov eax, 0x22
call fcn.004013d5
mov ebx, eax
mov eax, 0x15
call fcn.004013d5
push ecx
push ecx
push 0x40bc50
push 0xffffffffffffffec
call fcn.00403d54
mov ecx, dword [ebp - 0x24]
cmp byte [ebx], 0
pop eax
pop edx
mov edx, ebx
jne 0x4021fc
xor edx, edx
cmp byte [esi], 0
mov eax, esi
jne 0x402205
xor eax, eax
push ebx
push ebx
push ecx
push 0x438800
push edx
push edi
push eax
push dword [ebp - 0x1a8]
call sub.SHELL32.DLL_ShellExecuteA
pop edx
pop ecx
cmp eax, 0x20
jle 0x403037
jmp case.0x4015f1.65
xor eax, eax
call fcn.004013d5
mov ebx, eax
push eax
push eax
push ebx
push 0xffffffffffffffeb
call fcn.00403d54
push edi
push ebx
call fcn.00406dce
add esp, 0xc
test eax, eax
mov ebx, eax
je 0x403037
cmp dword [ebp - 0x28], 0
jne 0x402267
jmp 0x4022af
sub esp, 0xc
push 0xf
call fcn.004060ad
add esp, 0xc
push esi
push esi
push 0x64
push ebx
call sub.KERNEL32.dll_WaitForSingleObject
pop edx
pop ecx
cmp eax, 0x102
je 0x40225a
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 0x4022a4
push ecx
xor esi, esi
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0x1ac]
call fcn.00406371
pop eax
pop edx
jmp 0x4022b1
cmp dword [ebp - 0x10], 0
mov esi, 1
jne 0x4022b1
xor esi, esi
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_CloseHandle
jmp 0x402955
mov eax, 2
call fcn.004013d5
sub esp, 0xc
push eax
call fcn.00406137
add esp, 0xc
test eax, eax
mov ebx, eax
je 0x4022fe
push eax
push eax
push dword [ebx + 0x14]
push dword [ebp - 0x1ac]
call fcn.00406371
push dword [ebx + 0x18]
push dword [ebp - 0x1b0]
call fcn.00406371
jmp 0x4021a1
mov eax, dword [ebp - 0x1bc]
mov byte [edi + section..ndata], 0
mov byte [eax + section..ndata], 0
jmp 0x403037
mov eax, 0xffffffee
call fcn.004013d5
mov esi, eax
push eax
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edx, dword [ebp - 0x1bc]
mov byte [edi + section..ndata], 0
pop edi
mov byte [edx + section..ndata], 0
mov ebx, eax
test ebx, ebx
pop eax
je 0x403037
push ecx
push ecx
push ebx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov edi, eax
test edi, edi
pop eax
pop edx
je 0x403037
push edi
push ebx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4023b4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push section..rdata
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4023b4
push eax
xor esi, esi
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push dword [ebp - 0x1b0]
call fcn.00406371
mov eax, dword [ebp - 0x10]
push dword [eax + 0xc]
push dword [ebp - 0x1ac]
call fcn.00406371
pop ebx
pop eax
jmp 0x4023b9
mov esi, 1
sub esp, 0xc
push edi
call sub.KERNEL32.dll_GlobalFree
jmp 0x402955
cmp dword [0x42f928], 0
js 0x4024be
mov eax, 0xfffffff0
call fcn.004013d5
mov ebx, eax
mov eax, 1
call fcn.004013d5
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x402404
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetModuleHandleA
add esp, 0xc
test eax, eax
mov edi, eax
jne 0x40241a
push ecx
push 8
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
pop edx
test eax, eax
je 0x4024b0
mov edi, eax
push eax
push eax
push esi
push edi
call sub.KERNEL32.dll_GetProcAddress
pop ecx
mov ebx, eax
test ebx, ebx
pop eax
je 0x402473
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40244d
push edx
push edx
push 0x40bc50
push eax
call fcn.00403d54
pop esi
pop eax
call ebx
test eax, eax
setne al
movzx esi, al
jmp 0x402484
sub esp, 0xc
xor esi, esi
push section..data
push 0x40b840
push section..ndata
push 0x400
push dword [ebp - 0x1a8]
call ebx
add esp, 0x20
jmp 0x402484
push ecx
push ecx
push esi
mov esi, 1
push 0xfffffffffffffff7
call fcn.00403d54
pop eax
pop edx
cmp dword [ebp - 0x24], 0
jne 0x40303c
sub esp, 0xc
push edi
call fcn.00403c91
add esp, 0xc
test eax, eax
je 0x40303c
sub esp, 0xc
push edi
call sub.KERNEL32.dll_FreeLibrary
jmp 0x402955
push edi
push edi
push 0x40bc50
push 0xfffffffffffffff6
jmp 0x40265d
push esi
push esi
push 0x40bc50
push 0xffffffffffffffe7
jmp 0x40265d
mov eax, 0xfffffff0
call fcn.004013d5
mov dword [ebp - 0x19c], eax
mov eax, 0xffffffdf
call fcn.004013d5
mov esi, eax
mov eax, 2
call fcn.004013d5
mov dword [ebp - 0x198], eax
mov eax, 0xffffffcd
call fcn.004013d5
mov edi, eax
mov eax, 0x45
call fcn.004013d5
sub esp, 0xc
push esi
mov dword [ebp - 0x194], eax
call fcn.00405fb8
add esp, 0xc
test eax, eax
jne 0x40252b
mov al, 0x21
call fcn.004013d5
sub esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x40a760
push 1
push 0
push 0x40a650
call sub.OLE32.dll_CoCreateInstance
add esp, 0xc
test eax, eax
js 0x402654
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push ebx
mov ecx, dword [eax]
push edx
push 0x40ab40
push eax
call dword [ecx]
pop ecx
test eax, eax
mov ebx, eax
js 0x402641
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 0x438800
push eax
call dword [edx + 0x24]
mov eax, dword [ebp - 0x20]
pop esi
movzx ecx, ah
test ecx, ecx
pop eax
je 0x4025a3
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]
movzx edx, word [ebp - 0x1e]
push ecx
push ecx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
cmp byte [edi], 0
pop eax
pop edx
je 0x4025d0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
push esi
mov ecx, dword [eax]
and edx, 0xff
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 - 0x198]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push dword [ebp - 0x194]
push eax
call dword [edx + 0x1c]
test ebx, ebx
pop edi
pop eax
js 0x402632
push esi
push esi
push 0x400
push section..bss
push 0xffffffffffffffff
push dword [ebp - 0x19c]
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
pop ecx
pop ebx
mov ebx, 0x80004005
test eax, eax
je 0x402632
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 0x40266c
push eax
push eax
push 0x40bc50
push 0xfffffffffffffff0
call fcn.00403d54
mov esi, 1
jmp 0x4021a3
push edi
push edi
push 0x40bc50
push 0xfffffffffffffff4
call fcn.00403d54
jmp 0x4021a1
xor eax, eax
call fcn.004013d5
mov ebx, eax
mov eax, 0x11
call fcn.004013d5
mov esi, eax
mov eax, 0x23
call fcn.004013d5
sub esp, 0xc
push ebx
mov edi, eax
call fcn.00406137
add esp, 0xc
test eax, eax
je 0x402720
mov eax, dword [ebp - 0x1a8]
sub esp, 0xc
push ebx
mov dword [ebp - 0x170], 2
mov dword [ebp - 0x174], eax
call fcn.004062dc
mov byte [ebx + eax + 1], 0
push esi
call fcn.004062dc
mov byte [esi + eax + 1], 0
mov eax, dword [ebp - 0x28]
sub esp, 0xc
push edi
push 0
mov word [ebp - 0x164], ax
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x15a], edi
call fcn.00403d54
lea eax, [ebp - 0x174]
add esp, 0xc
push eax
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0xc
test eax, eax
je case.0x4015f1.65
push esi
push esi
push 0
push 0xfffffffffffffff9
jmp 0x40265d
cmp dword [ebp - 0x30], 0xbadf00d
je 0x40274f
push ebx
push ebx
push 0xffffffffffffffe8
push 0
call fcn.0040640e
push 0x200010
push eax
call fcn.00406d37
jmp 0x401aed
inc dword [0x42f8fc]
jmp case.0x4015f1.65
xor edi, edi
cmp dword [ebp - 0x30], 0
je 0x40276b
xor eax, eax
call fcn.004013d5
mov edi, eax
xor esi, esi
cmp dword [ebp - 0x2c], 0
je 0x40277f
mov eax, 0x11
call fcn.004013d5
mov esi, eax
xor ebx, ebx
cmp dword [ebp - 0x20], 0
je 0x402793
mov eax, 0x22
call fcn.004013d5
mov ebx, eax
mov eax, 0xffffffcd
call fcn.004013d5
push eax
push ebx
push esi
push edi
call sub.KERNEL32.dll_WritePrivateProfileStringA
jmp 0x402b3e
mov eax, 1
mov dword [ebp - 0x14], 0x7e4e21
call fcn.004013d5
mov esi, eax
mov eax, 0x12
call fcn.004013d5
mov ebx, eax
mov eax, 0xffffffdd
call fcn.004013d5
push ecx
push ecx
push eax
push 0x3ff
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
pop eax
mov eax, dword [edi + section..ndata]
pop edx
cmp eax, dword [ebp - 0x14]
jne case.0x4015f1.65
jmp 0x402d25
cmp dword [ebp - 0x20], 0
jne 0x40283e
mov eax, 2
call fcn.00401461
test eax, eax
mov ebx, eax
je 0x403037
mov eax, 0x33
call fcn.004013d5
push esi
push esi
push eax
push ebx
call sub.ADVAPI32.DLL_RegDeleteValueA
push ecx
mov esi, eax
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
jmp 0x402868
mov eax, 0x22
call fcn.004013d5
mov ecx, dword [ebp - 0x20]
mov edx, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40285e
mov eax, dword [0x42f8ec]
sub eax, 0x7fffffff
and ecx, 2
call fcn.004014be
mov esi, eax
test esi, esi
je case.0x4015f1.65
jmp 0x403037
mov ebx, dword [ebp - 0x30]
test ebx, ebx
jne 0x402887
mov eax, dword [0x42f8ec]
lea ebx, [eax - 0x7fffffff]
mov edx, dword [ebp - 0x1c]
mov eax, 2
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x190], edx
call fcn.004013d5
mov edi, eax
mov eax, 0x11
call fcn.004013d5
sub esp, 0xc
push 0
lea edx, [ebp - 0x14]
push edx
mov edx, dword [0x42f918]
push 0
or edx, 2
push edx
push 0
push 0
push 0
push eax
push ebx
call sub.ADVAPI32.DLL_RegCreateKeyExA
add esp, 0xc
test eax, eax
jne 0x403037
cmp esi, 1
jne 0x4028f5
mov al, 0x23
call fcn.004013d5
sub esp, 0xc
push 0x40c050
call fcn.004062dc
inc eax
add esp, 0xc
jmp 0x40292b
cmp esi, 4
jne 0x402910
mov eax, 3
call fcn.00401421
mov dword [0x40c050], eax
mov eax, 4
jmp 0x40292b
xor eax, eax
cmp esi, 3
jne 0x40292b
push 0xc00
push 0x40c050
push 0
push dword [ebp - 0x24]
call fcn.00403149
push edx
push edx
push eax
push 0x40c050
push dword [ebp - 0x190]
push 0
push edi
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push edi
test eax, eax
push dword [ebp - 0x14]
setne al
movzx esi, al
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
jmp 0x40303c
mov eax, 0x20019
call fcn.00401461
mov ebx, eax
mov eax, 0x33
call fcn.004013d5
test ebx, ebx
mov byte [edi + section..ndata], 0
mov edx, eax
je 0x403037
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x3ff
push eax
push 0
push edx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
pop edx
pop ecx
test eax, eax
jne 0x4029bc
mov eax, dword [ebp - 0x18]
cmp eax, 4
je 0x4029ca
cmp eax, 1
je 0x4029eb
cmp eax, 2
je 0x4029eb
mov byte [edi + section..ndata], 0
mov esi, 1
jmp 0x4029f9
cmp dword [ebp - 0x20], 0
sete al
movzx esi, al
push eax
push eax
push dword [edi + section..ndata]
push dword [ebp - 0x1b0]
call fcn.00406371
pop edi
pop eax
jmp 0x4029f9
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
mov byte [edi + eax + section..ndata], 0
sub esp, 0xc
push ebx
jmp 0x402950
mov eax, 0x20019
call fcn.00401461
mov ebx, eax
mov eax, 3
call fcn.00401421
test ebx, ebx
mov byte [edi + section..ndata], 0
mov edx, eax
je 0x403037
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0x3ff
je 0x402a4a
push 0x3ff
push dword [ebp - 0x1b0]
push eax
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyA
jmp 0x402a6b
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1b0]
push edx
push ebx
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
jne 0x403037
mov eax, dword [ebp - 0x1b0]
sub esp, 0xc
mov byte [eax + 0x3ff], 0
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x402aa4
cmp byte [edi + section..ndata], 0
je case.0x4015f1.65
sub esp, 0xc
push dword [ebp - 0x1b0]
call fcn.0040600b
push eax
call sub.KERNEL32.dll_CloseHandle
xor esi, esi
jmp 0x402955
mov eax, 0xffffffed
call fcn.004013d5
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push eax
call fcn.004067fa
pop ecx
cmp eax, 0xffffffff
je 0x402d25
push edx
push edx
push eax
push dword [ebp - 0x1b0]
jmp 0x402f25
cmp dword [ebp - 0x28], 0
je 0x402af6
mov eax, 1
mov ebx, 1
call fcn.00401421
mov byte [0x40bc50], al
jmp 0x402b0e
mov eax, 0x11
call fcn.004013d5
sub esp, 0xc
push eax
call fcn.004062dc
mov ebx, eax
add esp, 0xc
cmp byte [edi + section..ndata], 0
je 0x403037
sub esp, 0xc
push dword [ebp - 0x1b0]
call fcn.0040600b
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 0x401a6c
mov eax, 2
call fcn.00401421
test eax, eax
jle case.0x4015f1.65
cmp eax, 0x3ff
mov dword [ebp - 0x180], eax
jle 0x402b6e
mov dword [ebp - 0x180], 0x3ff
xor ebx, ebx
cmp byte [edi + section..ndata], 0
je 0x402c2f
sub esp, 0xc
xor ebx, ebx
push dword [ebp - 0x1b0]
xor esi, esi
call fcn.0040600b
mov edi, eax
add esp, 0xc
sub esp, 0xc
push 0
lea edx, [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x10]
push eax
push edi
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x402c2f
cmp dword [ebp - 0x18], 1
jne 0x402c2f
cmp dword [ebp - 0x24], 0
je 0x402bd5
push eax
push eax
movzx eax, byte [ebp - 0x10]
push eax
push dword [ebp - 0x1ac]
call fcn.00406371
xor eax, eax
jmp 0x401af2
mov edx, esi
cmp dl, 0xd
je 0x402be1
cmp dl, 0xa
jne 0x402c10
mov al, byte [ebp - 0x10]
mov edx, esi
cmp dl, al
je 0x402bf2
cmp al, 0xd
je 0x402c00
cmp al, 0xa
je 0x402c00
push 1
push 0
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_SetFilePointer
jmp 0x402c2f
mov edx, dword [ebp - 0x1bc]
mov byte [ebx + edx + section..ndata], al
inc ebx
jmp 0x402c2f
mov al, byte [ebp - 0x10]
mov edx, dword [ebp - 0x1ac]
mov esi, eax
mov byte [edx + ebx], al
inc ebx
test al, al
je 0x402c2f
cmp ebx, dword [ebp - 0x180]
jl 0x402b94
mov eax, dword [ebp - 0x1bc]
test ebx, ebx
mov byte [ebx + eax + section..ndata], 0
jmp 0x401a6c
cmp byte [edi + section..ndata], 0
je case.0x4015f1.65
mov eax, 2
mov esi, dword [ebp - 0x24]
call fcn.00401421
sub esp, 0xc
push dword [ebp - 0x1b0]
mov ebx, eax
call fcn.0040600b
add esp, 0xc
push esi
push 0
push ebx
push eax
call sub.KERNEL32.dll_SetFilePointer
cmp dword [ebp - 0x2c], 0
jns 0x402f1c
jmp case.0x4015f1.65
cmp byte [edi + section..ndata], 0
je case.0x4015f1.65
sub esp, 0xc
push dword [ebp - 0x1b0]
call fcn.0040600b
push eax
call sub.KERNEL32.dll_FindClose
jmp 0x402aa4
mov edx, dword [ebp - 0x1bc]
cmp byte [edx + section..ndata], 0
je 0x402d25
sub esp, 0xc
push dword [ebp - 0x1ac]
call fcn.0040600b
lea edx, [ebp - 0x174]
sub esp, 0xc
push edx
push eax
call sub.KERNEL32.dll_FindNextFileA
add esp, 0x18
test eax, eax
je 0x402d25
push edi
push edi
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x1b0]
jmp 0x402f12
mov eax, 2
call fcn.004013d5
lea edx, [ebp - 0x174]
push esi
push esi
push edx
push eax
call sub.KERNEL32.dll_FindFirstFileA
pop ecx
pop ebx
cmp eax, 0xffffffff
jne 0x402d31
mov eax, dword [ebp - 0x1bc]
mov byte [eax + section..ndata], 0
mov byte [edi + section..ndata], 0
jmp 0x403037
push edx
push edx
push eax
push dword [ebp - 0x1ac]
call fcn.00406371
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x1b0]
call fcn.00406357
jmp 0x4021a1
mov eax, 0xfffffff0
call fcn.004013d5
sub esp, 0xc
push eax
mov dword [ebp - 0x188], eax
call fcn.00405fb8
add esp, 0xc
test eax, eax
jne 0x402d80
mov eax, 0xffffffed
call fcn.004013d5
sub esp, 0xc
push dword [ebp - 0x188]
call fcn.00406832
push eax
push eax
push 2
push 0x40000000
push dword [ebp - 0x188]
call fcn.004067fa
mov dword [ebp - 0x18c], eax
add esp, 0x14
inc eax
je 0x402eab
mov edx, dword [0x42f9c8]
push edi
push edi
push edx
push 0x40
mov dword [ebp - 0x1b4], edx
call sub.KERNEL32.dll_GlobalAlloc
pop ebx
mov ebx, 0xfffffd66
pop esi
test eax, eax
mov dword [ebp - 0x184], eax
je 0x402e8d
sub esp, 0xc
push 0
call fcn.004030f4
sub esp, 0xc
push dword [ebp - 0x1b4]
push dword [ebp - 0x184]
call fcn.00403110
push dword [ebp - 0x28]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
add esp, 0x18
test eax, eax
mov edi, eax
je 0x402e4c
push dword [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call fcn.00403149
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 - 0x184]
push eax
call fcn.00405fe7
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
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1b4]
push dword [ebp - 0x184]
push dword [ebp - 0x18c]
call sub.KERNEL32.dll_WriteFile
push dword [ebp - 0x184]
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
push 0
push 0
push dword [ebp - 0x18c]
push 0xffffffffffffffff
call fcn.00403149
mov ebx, eax
sub esp, 0xc
push dword [ebp - 0x18c]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test ebx, ebx
js 0x402eab
xor esi, esi
mov eax, 0xfffffff3
jmp 0x402ec6
sub esp, 0xc
mov esi, 1
push dword [ebp - 0x188]
call sub.KERNEL32.dll_DeleteFileA
mov eax, 0xffffffef
add esp, 0xc
push edi
push edi
push 0x40bc50
push eax
call fcn.00403d54
jmp 0x4021a3
xor eax, eax
call fcn.00401421
cmp eax, dword [0x42f964]
mov esi, eax
jae 0x403037
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x28]
add ebx, dword [0x42f960]
cmp eax, 0
jl 0x402f2f
mov eax, dword [ebx + eax*4]
jne 0x402f1c
push esi
push esi
lea eax, [ebx + 0x18]
push eax
push dword [ebp - 0x1ac]
call fcn.00406357
jmp 0x4021a1
push ebx
push ebx
push eax
push dword [ebp - 0x1ac]
call fcn.00406371
jmp 0x4021a1
not eax
test eax, eax
mov dword [ebp - 0x28], eax
je 0x402f47
mov eax, 1
call fcn.00401421
mov dword [ebp - 0x2c], eax
jmp 0x402f5e
push ecx
push ecx
push dword [ebp - 0x20]
lea eax, [ebx + 0x18]
push eax
call fcn.0040640e
or dword [ebx + 8], 0x100
pop eax
pop edx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x24], 0
je case.0x4015f1.65
sub esp, 0xc
push esi
call fcn.004011c8
jmp 0x402aa4
xor eax, eax
call fcn.00401421
cmp eax, 0x1f
ja 0x403037
cmp dword [ebp - 0x24], 0
je 0x402fd2
cmp dword [ebp - 0x28], 0
je 0x402fb2
sub esp, 0xc
push eax
call fcn.004012e0
sub esp, 0xc
push 0
push 0
call fcn.0040122d
jmp 0x402fcb
sub esp, 0xc
push 0
call fcn.00401328
sub esp, 0xc
push eax
push dword [ebp - 0x1ac]
call fcn.00406371
xor esi, esi
add esp, 0x18
jmp 0x40303c
cmp dword [ebp - 0x28], 0
mov ecx, dword [0x42f948]
lea edx, [eax + 0x24]
je 0x402fea
mov eax, dword [ebp - 0x2c]
mov dword [ecx + edx*4 + 4], eax
jmp case.0x4015f1.65
push eax
push eax
push dword [ecx + edx*4 + 4]
push dword [ebp - 0x1ac]
call fcn.0040640e
jmp 0x4021a1
mov eax, dword [0x42ac60]
and eax, dword [ebp - 0x30]
push 0
push eax
push 0xb
push dword [ebp - 0x1a8]
call sub.USER32.dll_SendMessageA
cmp dword [ebp - 0x30], 0
je case.0x4015f1.65
push eax
push 0
push 0
push dword [ebp - 0x1a8]
call sub.USER32.dll_InvalidateRect
xor esi, esi
pop eax
jmp 0x40303c
xor esi, esi
jmp 0x40303c
mov esi, 1
add dword [0x42f8f0], esi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret