Function at 0x40158c
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, 0x228
cmp dword [ebp + 8], 0
js 0x402f65
imul eax, dword [ebp + 8], 0x1c
mov edx, dword [0x42f960]
cmp dword [eax + edx], 1
je 0x402f65
add edx, eax
mov eax, dword [0x42f9e0]
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x2c]
push 0x1c
mov dword [ebp - 0x1ec], 0
push edx
push eax
call fcn.00407970
mov edx, dword [ebp - 0x28]
mov eax, edx
mov ecx, dword [ebp - 0x24]
shl eax, 0xa
add esp, 0xc
lea edi, [eax + section..ndata]
mov eax, ecx
shl eax, 0xa
lea esi, [eax + section..ndata]
lea eax, [ebp - 0x28]
mov dword [0x40cc50], eax
mov eax, dword [ebp - 0x2c]
sub eax, 2
cmp eax, 0x41
ja case.0x40160f.65
jmp dword [eax*4 + 0x40a004]
mov eax, edx
jmp 0x402eff
push 0
push dword [ebp - 0x28]
jmp 0x401aa1
inc dword [0x430200]
cmp dword [ebp - 0x1e8], 0
je 0x40262f
push 0
call sub.USER32.dll_PostQuitMessage
jmp 0x40262f
push dword [ebp - 0x28]
call fcn.004013e0
dec eax
push 0
push eax
call fcn.0040158c
jmp 0x402eff
push 0
push dword [ebp - 0x28]
call fcn.004050ab
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
cmp eax, 1
jge 0x40167c
mov eax, 1
push eax
call sub.KERNEL32.dll_Sleep
jmp case.0x40160f.65
push dword [ebp - 0x1e8]
call sub.USER32.dll_SetForegroundWindow
jmp case.0x40160f.65
cmp dword [ebp - 0x20], 0
jne 0x4016c4
mov eax, dword [edx*4 + 0x42f8e0]
mov dword [edx*4 + 0x42f8a0], eax
mov eax, 1
call fcn.00401416
mov edx, dword [ebp - 0x28]
mov dword [edx*4 + 0x42f8e0], eax
jmp case.0x40160f.65
mov eax, dword [edx*4 + 0x42f8a0]
mov dword [edx*4 + 0x42f8e0], eax
jmp case.0x40160f.65
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx*4 + 0x42f8e0]
cmp edx, 1
sbb eax, eax
and edx, dword [ebp - 0x1c]
and eax, 4
mov dword [ecx*4 + 0x42f8e0], edx
mov eax, dword [ebp + eax - 0x28]
jmp 0x402eff
push dword [ecx*4 + 0x42f8e0]
push edi
call fcn.00405c61
jmp case.0x40160f.65
mov eax, dword [0x430210]
test eax, eax
je 0x401720
push dword [ebp - 0x24]
push eax
call sub.USER32.dll_ShowWindow
mov eax, dword [0x430220]
test eax, eax
je case.0x40160f.65
push dword [ebp - 0x28]
push eax
call sub.USER32.dll_ShowWindow
jmp case.0x40160f.65
mov eax, 0xfffffff0
call fcn.00401431
push dword [ebp - 0x24]
push eax
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 0xfffffff0
call fcn.00401431
mov esi, eax
push eax
call fcn.00405a18
mov ebx, eax
test eax, eax
je 0x4017d2
push 0x5c
push ebx
call fcn.004059c9
mov ebx, eax
mov dl, byte [eax]
mov byte [ebp - 0x1ed], dl
mov byte [eax], 0
push 0
push esi
call sub.KERNEL32.dll_CreateDirectoryA
test eax, eax
jne 0x4017c5
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x4017b2
inc dword [ebp - 0x1ec]
jmp 0x4017c5
push esi
call sub.KERNEL32.dll_GetFileAttributesA
and eax, 0x10
cmp eax, 1
adc dword [ebp - 0x1ec], 0
mov al, byte [ebp - 0x1ed]
mov byte [ebx], al
inc ebx
test al, al
jmp 0x40177b
cmp dword [ebp - 0x24], 0
je 0x4017f5
push 0xffffffffffffffe6
call fcn.00401402
push esi
push 0x438800
call fcn.00405d1f
push esi
call sub.KERNEL32.dll_SetCurrentDirectoryA
jmp case.0x40160f.65
push 0xfffffffffffffff5
call fcn.00401402
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
push eax
call fcn.004059a1
jmp 0x401f8d
mov eax, 0xffffffd0
call fcn.00401431
mov ebx, eax
mov eax, 0xffffffdf
call fcn.00401431
mov esi, eax
mov eax, 0x13
call fcn.00401431
push esi
push ebx
call sub.KERNEL32.dll_MoveFileA
test eax, eax
je 0x40184c
push 0xffffffffffffffe3
call fcn.00401402
jmp case.0x40160f.65
cmp dword [ebp - 0x20], 0
je 0x40186f
push ebx
call fcn.004059a1
test eax, eax
je 0x40186f
push esi
push ebx
call fcn.00406144
push 0xffffffffffffffe4
call fcn.00401402
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
mov ebx, eax
lea eax, [ebp - 0x1a0]
push eax
push esi
push 0x400
push ebx
call sub.KERNEL32.dll_GetFullPathNameA
test eax, eax
je 0x4018c8
mov eax, dword [ebp - 0x1a0]
cmp eax, ebx
jbe 0x4018d5
cmp byte [eax], 0
je 0x4018d5
push ebx
call fcn.004059a1
test eax, eax
je 0x4018c8
add eax, 0x2c
push eax
push dword [ebp - 0x1a0]
call fcn.00405d1f
jmp 0x4018d5
mov dword [ebp - 0x1ec], 1
mov byte [esi], 0
cmp dword [ebp - 0x20], 0
jne case.0x40160f.65
push 0x400
push esi
push esi
call sub.KERNEL32.dll_GetShortPathNameA
jmp case.0x40160f.65
or eax, 0xffffffff
call fcn.00401431
lea edx, [ebp - 0x1a4]
push edx
push edi
push 0x400
push 0
push eax
push 0
call sub.KERNEL32.dll_SearchPathA
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
mov byte [edi], 0
jmp case.0x40160f.65
mov eax, 0xffffffef
call fcn.00401431
push eax
push edi
call fcn.00405b98
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 0x31
call fcn.00401431
mov esi, dword [ebp - 0x28]
mov edi, eax
and esi, 7
push eax
call fcn.004059ec
test eax, eax
je 0x40197a
push edi
push 0x40b850
call fcn.00405d1f
jmp 0x401996
push edi
push 0x438800
push 0x40b850
call fcn.00405d1f
push eax
call fcn.00405dcd
push eax
call fcn.00405dc4
push 0x40b850
call fcn.00405a9c
cmp esi, 2
jle 0x4019d6
push 0x40b850
call fcn.004059a1
xor ecx, ecx
mov edx, eax
test eax, eax
je 0x4019c6
lea eax, [ebp - 0x1c]
push eax
lea eax, [edx + 0x14]
push eax
call sub.KERNEL32.dll_CompareFileTime
mov ecx, eax
lea eax, [esi - 3]
or eax, 0x80000000
test eax, ecx
sete al
movzx esi, al
test esi, esi
jne 0x4019e6
push 0x40b850
call fcn.00405b47
jmp 0x4019f0
mov eax, 1
cmp esi, 1
je 0x4019f5
mov eax, 2
push eax
push 0x40000000
push 0x40b850
call fcn.00405b6a
mov ebx, eax
cmp eax, 0xffffffff
jne 0x401aab
test esi, esi
je 0x401a34
push edi
push 0xffffffffffffffe2
call fcn.004050ab
cmp esi, 2
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
push section..ndata
push 0x40c050
call fcn.00405d1f
push 0x40b850
push section..ndata
call fcn.00405d1f
push dword [ebp - 0x14]
push 0x40bc50
call fcn.00405ea5
push 0x40c050
push section..ndata
call fcn.00405d1f
mov eax, dword [ebp - 0x28]
sar eax, 3
push eax
push 0x40bc50
call fcn.0040593c
cmp eax, 4
je 0x4019da
cmp eax, 5
jne 0x401a9a
inc dword [0x42f8e8]
xor al, al
jmp 0x402eff
push 0x40b850
push 0xfffffffffffffffa
call fcn.004050ab
jmp 0x40262f
push edi
push 0xffffffffffffffea
call fcn.004050ab
inc dword [0x42f914]
push 0
push 0
push ebx
push dword [ebp - 0x20]
call fcn.004030b8
dec dword [0x42f914]
mov esi, eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x401ada
cmp dword [ebp - 0x18], 0xffffffff
je 0x401ae7
lea eax, [ebp - 0x1c]
push eax
push 0
push eax
push ebx
call sub.KERNEL32.dll_SetFileTime
push ebx
call sub.KERNEL32.dll_CloseHandle
test esi, esi
jns case.0x40160f.65
cmp esi, 0xfffffffe
jne 0x401b13
push 0xffffffffffffffe9
push 0x40b850
call fcn.00405ea5
push edi
push 0x40b850
call fcn.00405dc4
jmp 0x401b1f
push 0xffffffffffffffee
push 0x40b850
call fcn.00405ea5
push 0x200010
push 0x40b850
jmp 0x40262a
xor eax, eax
call fcn.00401431
push dword [ebp - 0x24]
push eax
call fcn.00406316
jmp case.0x40160f.65
mov eax, 0x31
call fcn.00401431
push dword [ebp - 0x28]
push eax
call fcn.0040593c
test eax, eax
je 0x401b74
cmp eax, dword [ebp - 0x20]
je 0x401cf6
cmp eax, dword [ebp - 0x18]
jne case.0x40160f.65
mov eax, dword [ebp - 0x14]
jmp 0x402eff
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 0xfffffff0
call fcn.00401431
push dword [ebp - 0x24]
push eax
call fcn.00406316
jmp case.0x40160f.65
mov eax, 1
call fcn.00401431
push eax
call fcn.00405d36
push eax
push edi
call fcn.00405c61
jmp case.0x40160f.65
mov eax, 2
call fcn.00401416
mov esi, eax
mov eax, 3
call fcn.00401416
mov ebx, eax
mov eax, 1
call fcn.00401431
mov dword [ebp - 0x1f4], eax
mov byte [edi], 0
cmp dword [ebp - 0x20], 0
sete dl
test esi, esi
setne al
or eax, edx
test al, 1
je case.0x40160f.65
push dword [ebp - 0x1f4]
call fcn.00405d36
test ebx, ebx
jns 0x401c0f
add ebx, eax
js case.0x40160f.65
cmp ebx, eax
jle 0x401c15
mov ebx, eax
mov eax, dword [ebp - 0x1f4]
add eax, ebx
push eax
push edi
call fcn.00405d1f
test esi, esi
je case.0x40160f.65
jge 0x401c3c
push edi
call fcn.00405d36
add esi, eax
jns 0x401c3c
xor esi, esi
jmp 0x401c48
cmp esi, 0x3ff
jg case.0x40160f.65
mov byte [edi + esi], 0
jmp case.0x40160f.65
mov eax, 0x20
call fcn.00401431
mov ebx, eax
mov eax, 0x31
call fcn.00401431
cmp dword [ebp - 0x18], 0
jne 0x401c76
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpiA
jmp 0x401c7d
push eax
push ebx
call sub.KERNEL32.dll_lstrcmpA
test eax, eax
je 0x401f99
jmp 0x401cf6
mov eax, 1
call fcn.00401431
push 0x400
mov ebx, eax
push edi
push eax
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x401cb4
cmp dword [ebp - 0x20], 0
je 0x401cc1
push edi
push ebx
call sub.KERNEL32.dll_lstrcmpA
test eax, eax
jne 0x401cc1
mov dword [ebp - 0x1ec], 1
mov byte [edi], 0
mov byte [edi + 0x3ff], 0
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
mov ebx, eax
mov eax, 1
call fcn.00401416
cmp dword [ebp - 0x14], 0
jne 0x401cf2
cmp ebx, eax
jl 0x401cf6
jle 0x401f99
jmp 0x401d04
cmp ebx, eax
jae 0x401cfe
mov eax, dword [ebp - 0x1c]
jmp 0x402eff
jbe 0x401f99
mov eax, dword [ebp - 0x18]
jmp 0x402eff
mov eax, 1
call fcn.00401416
mov ebx, eax
mov eax, 2
call fcn.00401416
mov ecx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xc
ja case.default.0x401d2c
jmp dword [eax*4 + 0x40a10c]
add ebx, ecx
jmp case.default.0x401d2c
sub ebx, ecx
jmp case.default.0x401d2c
imul ebx, ecx
jmp case.default.0x401d2c
test ecx, ecx
je 0x401d87
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
jmp case.default.0x401d2c
or ebx, ecx
jmp case.default.0x401d2c
and ebx, ecx
jmp case.default.0x401d2c
xor ebx, ecx
jmp case.default.0x401d2c
test ebx, ebx
sete al
jmp 0x401d65
or ebx, ecx
setne al
movzx ebx, al
jmp case.default.0x401d2c
test ebx, ebx
setne dl
xor ebx, ebx
test ecx, ecx
setne bl
and ebx, edx
jmp case.default.0x401d2c
test ecx, ecx
je 0x401d87
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
jmp case.default.0x401d2c
xor ebx, ebx
mov dword [ebp - 0x1ec], 1
jmp case.default.0x401d2c
shl ebx, cl
jmp case.default.0x401d2c
sar ebx, cl
push ebx
push edi
call fcn.00405c61
jmp case.0x40160f.65
mov eax, 1
call fcn.00401431
mov ebx, eax
mov eax, 2
call fcn.00401416
push eax
push ebx
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp case.0x40160f.65
mov eax, dword [ebp - 0x20]
mov ebx, dword [0x40b840]
test eax, eax
je 0x401e29
dec eax
cmp eax, 0xffffffff
je 0x401dec
test ebx, ebx
je 0x40261b
mov ebx, dword [ebx]
jmp 0x401dda
test ebx, ebx
je 0x40261b
add ebx, 4
push ebx
push 0x40b850
call fcn.00405d1f
mov eax, dword [0x40b840]
add eax, 4
push eax
push ebx
call fcn.00405d1f
mov eax, dword [0x40b840]
add eax, 4
push 0x40b850
push eax
call fcn.00405d1f
jmp case.0x40160f.65
test ecx, ecx
je 0x401e5c
test ebx, ebx
jne 0x401e40
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
lea eax, [ebx + 4]
push eax
push edi
call fcn.00405d1f
mov eax, dword [ebx]
mov dword [0x40b840], eax
push ebx
call sub.KERNEL32.dll_GlobalFree
jmp case.0x40160f.65
push 0x404
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
push dword [ebp - 0x28]
lea eax, [eax + 4]
push eax
call fcn.00405ea5
mov eax, dword [0x40b840]
mov dword [ebx], eax
mov dword [0x40b840], ebx
jmp case.0x40160f.65
mov eax, 3
call fcn.00401416
mov esi, eax
mov eax, 4
call fcn.00401416
test byte [ebp - 0x14], 1
mov ebx, eax
je 0x401eb2
mov eax, 0x33
call fcn.00401431
mov esi, eax
test byte [ebp - 0x14], 2
je 0x401ec4
mov eax, 0x44
call fcn.00401431
mov ebx, eax
cmp dword [ebp - 0x2c], 0x21
jne 0x401f28
mov eax, 1
call fcn.00401416
mov dword [ebp - 0x1f8], eax
mov eax, 2
call fcn.00401416
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov edx, eax
sar edx, 2
je 0x401f18
lea eax, [ebp - 0x1a8]
push eax
push edx
push 0
push ebx
push esi
push ecx
push dword [ebp - 0x1f8]
call sub.USER32.dll_SendMessageTimeoutA
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x1ec], eax
jmp 0x401f65
push ebx
push esi
push ecx
push dword [ebp - 0x1f8]
call sub.USER32.dll_SendMessageA
jmp 0x401f5f
mov eax, 1
call fcn.00401431
mov dword [ebp - 0x1fc], eax
mov eax, 0x12
call fcn.00401431
cmp byte [eax], 0
jne 0x401f49
xor eax, eax
push eax
mov eax, dword [ebp - 0x1fc]
cmp byte [eax], 0
jne 0x401f57
xor eax, eax
push eax
push ebx
push esi
call sub.USER32.dll_FindWindowExA
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x28], 0
js case.0x40160f.65
push dword [ebp - 0x1a8]
push edi
call fcn.00405c61
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
push eax
call sub.USER32.dll_IsWindow
test eax, eax
je 0x401f99
mov eax, dword [ebp - 0x24]
jmp 0x402eff
mov eax, dword [ebp - 0x20]
jmp 0x402eff
mov eax, 2
call fcn.00401416
push eax
mov eax, 1
call fcn.00401416
push eax
call sub.USER32.dll_GetDlgItem
push eax
push edi
call fcn.00405c61
jmp case.0x40160f.65
add ecx, dword [0x42f978]
xor eax, eax
push ecx
push 0xffffffffffffffeb
call fcn.00401416
push eax
call sub.USER32.dll_SetWindowLongA
jmp case.0x40160f.65
push dword [ebp - 0x24]
push dword [ebp - 0x1e8]
call sub.USER32.dll_GetDlgItem
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call sub.USER32.dll_GetClientRect
mov eax, dword [ebp - 0x20]
mov edx, eax
imul edx, dword [ebp - 0x30]
imul eax, dword [ebp - 0x34]
push 0x10
push edx
push eax
xor eax, eax
push 0
call fcn.00401431
push eax
push 0
call sub.USER32.dll_LoadImageA
push eax
push 0
push 0x172
push ebx
call sub.USER32.dll_SendMessageA
test eax, eax
je case.0x40160f.65
push eax
call sub.GDI32.dll_DeleteObject
jmp case.0x40160f.65
push 0x48
push 0x5a
push dword [ebp - 0x1e8]
call sub.USER32.dll_GetDC
push eax
call sub.GDI32.dll_GetDeviceCaps
push eax
mov eax, 2
call fcn.00401416
push eax
call sub.KERNEL32.dll_MulDiv
neg eax
mov dword [section..bss], eax
mov eax, 3
call fcn.00401416
mov byte [0x40b017], 1
mov dword [0x40b010], eax
mov eax, dword [ebp - 0x18]
mov dl, al
and edx, 1
push dword [ebp - 0x24]
mov byte [0x40b014], dl
mov dl, al
and edx, 2
and eax, 4
mov byte [0x40b015], dl
mov byte [0x40b016], al
push 0x40b01c
call fcn.00405ea5
push section..bss
call sub.GDI32.dll_CreateFontIndirectA
push eax
push edi
call fcn.00405c61
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
mov ebx, eax
mov eax, 1
call fcn.00401416
cmp dword [ebp - 0x1c], 0
jne 0x4020ec
push eax
push ebx
call sub.USER32.dll_ShowWindow
jmp case.0x40160f.65
push eax
push ebx
call sub.USER32.dll_EnableWindow
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
mov edi, eax
mov eax, 0x31
call fcn.00401431
mov esi, eax
mov eax, 0x22
call fcn.00401431
mov ebx, eax
mov eax, 0x15
call fcn.00401431
push 0xffffffffffffffec
call fcn.00401402
mov eax, ebx
push dword [ebp - 0x1c]
push 0x438800
cmp byte [ebx], 0
jne 0x40213b
xor eax, eax
push eax
push esi
mov eax, edi
cmp byte [edi], 0
jne 0x402146
xor eax, eax
push eax
push dword [ebp - 0x1e8]
call sub.SHELL32.DLL_ShellExecuteA
cmp eax, 0x20
jg case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
mov ebx, eax
push eax
push 0xffffffffffffffeb
call fcn.004050ab
push ebx
call fcn.004058d0
mov ebx, eax
test eax, eax
je 0x4021e4
cmp dword [ebp - 0x20], 0
je 0x4021d9
jmp 0x402196
push 0xf
call fcn.00406507
push 0x64
push ebx
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x40218f
lea eax, [ebp - 0x1ac]
push eax
push ebx
call sub.KERNEL32.dll_GetExitCodeProcess
cmp dword [ebp - 0x24], 0
js 0x4021c6
push dword [ebp - 0x1ac]
push esi
call fcn.00405c61
jmp 0x4021d9
cmp dword [ebp - 0x1ac], 0
je 0x4021d9
mov dword [ebp - 0x1ec], 1
push ebx
call sub.KERNEL32.dll_CloseHandle
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 2
call fcn.00401431
push eax
call fcn.004059a1
mov ebx, eax
test eax, eax
je 0x402220
push dword [eax + 0x14]
push esi
call fcn.00405c61
push dword [ebx + 0x18]
push edi
call fcn.00405c61
jmp case.0x40160f.65
mov byte [edi], 0
mov byte [esi], 0
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 0xffffffee
call fcn.00401431
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp - 0x200]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov byte [edi], 0
mov ebx, eax
mov byte [esi], 0
test eax, eax
mov dword [ebp - 0x1ec], 1
je case.0x40160f.65
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
test eax, eax
mov dword [ebp - 0x204], eax
je case.0x40160f.65
push eax
push ebx
push 0
push dword [ebp - 0x200]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4022e4
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1b8]
push eax
push section..rdata
push dword [ebp - 0x204]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4022e4
mov eax, dword [ebp - 0x1b8]
push dword [eax + 8]
push edi
call fcn.00405c61
mov eax, dword [ebp - 0x1b8]
push dword [eax + 0xc]
push esi
call fcn.00405c61
mov dword [ebp - 0x1ec], 0
push dword [ebp - 0x204]
call sub.KERNEL32.dll_GlobalFree
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
cmp dword [0x42f920], 0
js 0x4023c5
mov eax, 0xfffffff0
call fcn.00401431
mov ebx, eax
mov eax, 1
call fcn.00401431
cmp dword [ebp - 0x18], 0
mov edi, eax
je 0x402335
push ebx
call sub.KERNEL32.dll_GetModuleHandleA
mov esi, eax
test eax, eax
jne 0x402345
push 8
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
test eax, eax
je 0x4023b9
push edi
push esi
call sub.KERNEL32.dll_GetProcAddress
mov ebx, eax
test eax, eax
je 0x40239c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1ec], 0
test eax, eax
je 0x40237b
push eax
call fcn.00401402
call ebx
test eax, eax
je 0x4023a4
mov dword [ebp - 0x1ec], 1
jmp 0x4023a4
push section..data
push 0x40b840
push section..ndata
push 0x400
push dword [ebp - 0x1e8]
call ebx
add esp, 0x14
jmp 0x4023a4
push edi
push 0xfffffffffffffff7
call fcn.004050ab
cmp dword [ebp - 0x1c], 0
jne case.0x40160f.65
push esi
call sub.KERNEL32.dll_FreeLibrary
jmp case.0x40160f.65
push 0xfffffffffffffff6
call fcn.00401402
jmp case.0x40160f.65
push 0xffffffffffffffe7
call fcn.00401402
jmp case.0x40160f.65
mov eax, 0xfffffff0
call fcn.00401431
mov dword [ebp - 0x208], eax
mov eax, 0xffffffdf
call fcn.00401431
mov esi, eax
mov eax, 2
call fcn.00401431
mov dword [ebp - 0x20c], eax
mov eax, 0xffffffcd
call fcn.00401431
mov edi, eax
mov eax, 0x45
call fcn.00401431
push esi
mov dword [ebp - 0x210], eax
call fcn.004059ec
test eax, eax
jne 0x40242a
mov al, 0x21
call fcn.00401431
lea eax, [ebp - 0x1bc]
push eax
push 0x40aa70
push 1
push 0
push 0x40ab80
call sub.OLE32.dll_CoCreateInstance
test eax, eax
js 0x402547
mov eax, dword [ebp - 0x1bc]
lea edx, [ebp - 0x1c0]
mov ecx, dword [eax]
push edx
push 0x40ad70
push eax
call dword [ecx]
mov ebx, eax
test eax, eax
js 0x402537
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x50]
mov ebx, eax
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push 0x438800
push eax
call dword [edx + 0x24]
movzx ecx, byte [ebp - 0x17]
test ecx, ecx
je 0x4024a2
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov eax, dword [ebp - 0x1bc]
movzx edx, word [ebp - 0x16]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
cmp byte [edi], 0
je 0x4024ca
mov eax, dword [ebp - 0x1bc]
movzx edx, byte [ebp - 0x18]
mov ecx, dword [eax]
push edx
push edi
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push dword [ebp - 0x20c]
push eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push dword [ebp - 0x210]
push eax
call dword [edx + 0x1c]
test ebx, ebx
js 0x40252b
push 0x400
push 0x40b040
push 0xffffffffffffffff
mov ebx, 0x80004005
push dword [ebp - 0x208]
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
test eax, eax
je 0x40252b
mov eax, dword [ebp - 0x1c0]
mov edx, dword [eax]
push 1
push 0x40b040
push eax
call dword [edx + 0x18]
mov ebx, eax
mov eax, dword [ebp - 0x1c0]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0x1bc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
test ebx, ebx
jns 0x40255d
mov dword [ebp - 0x1ec], 1
push 0xfffffffffffffff0
call fcn.00401402
jmp case.0x40160f.65
push 0xfffffffffffffff4
call fcn.00401402
jmp case.0x40160f.65
xor eax, eax
call fcn.00401431
mov ebx, eax
mov eax, 0x11
call fcn.00401431
mov esi, eax
mov eax, 0x23
call fcn.00401431
push ebx
mov edi, eax
call fcn.004059a1
test eax, eax
jne 0x4025ac
push 0
push 0xfffffffffffffff9
call fcn.004050ab
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x5c], eax
push ebx
call fcn.00405d36
mov byte [ebx + eax + 1], 0
push esi
call fcn.00405d36
mov byte [esi + eax + 1], 0
push edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x42], edi
push 0
call fcn.004050ab
lea eax, [ebp - 0x5c]
push eax
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
je case.0x40160f.65
push 0
push 0xfffffffffffffff9
call fcn.004050ab
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
cmp edx, 0xbadf00d
je 0x402639
push 0x200010
push 0xffffffffffffffe8
push 0
call fcn.00405ea5
push eax
call fcn.0040593c
mov eax, 0x7fffffff
jmp 0x402eff
inc dword [0x42f8f4]
jmp case.0x40160f.65
xor edi, edi
xor esi, esi
xor ebx, ebx
test edx, edx
je 0x402657
xor eax, eax
call fcn.00401431
mov edi, eax
cmp dword [ebp - 0x24], 0
je 0x402669
mov eax, 0x11
call fcn.00401431
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x40267b
mov eax, 0x22
call fcn.00401431
mov ebx, eax
mov eax, 0xffffffcd
call fcn.00401431
push eax
push ebx
push esi
push edi
call sub.KERNEL32.dll_WritePrivateProfileStringA
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 1
mov dword [ebp - 0x1c4], 0x7e4e21
call fcn.00401431
mov esi, eax
mov eax, 0x12
call fcn.00401431
mov ebx, eax
mov eax, 0xffffffdd
call fcn.00401431
push eax
lea eax, [ebp - 0x1c4]
push 0x3ff
push edi
push eax
push ebx
push esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov eax, dword [ebp - 0x1c4]
cmp dword [edi], eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
mov byte [edi], 0
jmp case.0x40160f.65
cmp dword [ebp - 0x18], 0
jne 0x402737
mov eax, 2
call fcn.00401550
mov ebx, eax
test eax, eax
je 0x402763
mov eax, 0x33
call fcn.00401431
push eax
push ebx
call sub.ADVAPI32.DLL_RegDeleteValueA
mov esi, eax
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x40275b
mov eax, 0x22
call fcn.00401431
mov ebx, eax
mov eax, dword [ebp - 0x24]
call fcn.0040153d
mov edx, dword [ebp - 0x18]
and edx, 2
push edx
mov edx, ebx
call fcn.00401473
mov esi, eax
test esi, esi
je case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, edx
call fcn.0040153d
mov edx, dword [ebp - 0x14]
mov ebx, eax
mov eax, 2
mov dword [ebp - 0x214], edx
mov esi, dword [ebp - 0x18]
call fcn.00401431
mov edi, eax
mov eax, 0x11
call fcn.00401431
lea edx, [ebp - 0x1c8]
push 0
push edx
mov edx, dword [0x42f910]
push 0
or edx, 2
mov dword [ebp - 0x1ec], 1
push edx
push 0
push 0
push 0
push eax
push ebx
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne case.0x40160f.65
cmp esi, 1
jne 0x4027ea
mov al, 0x23
call fcn.00401431
push 0x40c050
call fcn.00405d36
inc eax
jmp 0x40281e
cmp esi, 4
jne 0x402805
mov eax, 3
call fcn.00401416
mov dword [0x40c050], eax
mov eax, 4
jmp 0x40281e
cmp esi, 3
jne 0x40281e
push 0xc00
push 0x40c050
push 0
push dword [ebp - 0x1c]
call fcn.004030b8
push eax
push 0x40c050
push dword [ebp - 0x214]
push 0
push edi
push dword [ebp - 0x1c8]
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
push dword [ebp - 0x1c8]
setne al
movzx eax, al
neg eax
and dword [ebp - 0x1ec], eax
call sub.ADVAPI32.DLL_RegCloseKey
jmp case.0x40160f.65
mov eax, 0x20019
call fcn.00401550
mov ebx, eax
mov eax, 0x33
call fcn.00401431
mov byte [edi], 0
mov edx, eax
mov dword [ebp - 0x1ec], 1
test ebx, ebx
je case.0x40160f.65
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x1cc], 0x3ff
push eax
lea eax, [ebp - 0x1d0]
push edi
push eax
push 0
push edx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4028c8
mov ecx, dword [ebp - 0x1d0]
cmp ecx, 4
setne dl
xor eax, eax
cmp ecx, 1
setne al
test edx, eax
je 0x4028d7
cmp ecx, 2
je 0x4028d7
mov byte [edi], 0
mov dword [ebp - 0x1ec], 1
jmp 0x402907
cmp ecx, 4
mov eax, dword [ebp - 0x18]
jne 0x4028f7
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x1ec], eax
push dword [edi]
push edi
call fcn.00405c61
jmp 0x402907
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1cc]
mov byte [edi + eax], 0
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp case.0x40160f.65
mov eax, 0x20019
call fcn.00401550
mov ebx, eax
mov eax, 3
call fcn.00401416
mov byte [edi], 0
mov edx, eax
test ebx, ebx
je 0x40298c
mov dword [ebp - 0x1d4], 0x3ff
cmp dword [ebp - 0x18], 0
je 0x402950
push 0x3ff
push edi
push eax
push ebx
call sub.ADVAPI32.DLL_RegEnumKeyA
jmp 0x40297a
lea eax, [ebp - 0x1d4]
push 0
push 0
push 0
push 0
push eax
push edi
push edx
push ebx
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
je 0x40297a
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov byte [edi + 0x3ff], 0
push ebx
call sub.ADVAPI32.DLL_RegCloseKey
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
cmp byte [edi], 0
je case.0x40160f.65
push edi
call fcn.00405c78
push eax
call sub.KERNEL32.dll_CloseHandle
jmp case.0x40160f.65
mov eax, 0xffffffed
call fcn.00401431
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
call fcn.00405b6a
cmp eax, 0xffffffff
jne 0x4029e2
mov byte [edi], 0
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
push eax
push edi
call fcn.00405c61
jmp case.0x40160f.65
cmp dword [ebp - 0x20], 0
je 0x402a0a
mov eax, 1
call fcn.00401416
mov edx, 1
mov byte [0x40bc50], al
jmp 0x402a1c
mov eax, 0x11
call fcn.00401431
push eax
call fcn.00405d36
mov edx, eax
cmp byte [edi], 0
je 0x402a44
lea eax, [ebp - 0x1d8]
push 0
push eax
push edx
push 0x40bc50
push edi
call fcn.00405c78
push eax
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
mov eax, 2
mov dword [ebp - 0x218], 0
call fcn.00401416
mov ebx, eax
test eax, eax
jle case.0x40160f.65
cmp eax, 0x3ff
jle 0x402a7d
mov ebx, 0x3ff
cmp byte [edi], 0
je 0x402b53
push edi
mov byte [ebp - 0x219], 0
call fcn.00405c78
cmp dword [ebp - 0x218], ebx
mov edi, eax
jge 0x402b53
lea eax, [ebp - 0x1dc]
push 0
push eax
lea eax, [ebp - 0x1dd]
push 1
push eax
push edi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x402b53
cmp dword [ebp - 0x1dc], 1
jne 0x402b53
cmp dword [ebp - 0x1c], 0
jne 0x402eb6
cmp byte [ebp - 0x219], 0xd
sete dl
cmp byte [ebp - 0x219], 0xa
sete al
or eax, edx
mov cl, byte [ebp - 0x1dd]
test al, 1
je 0x402b32
cmp byte [ebp - 0x219], cl
je 0x402b12
cmp cl, 0xd
setne dl
xor eax, eax
cmp cl, 0xa
setne al
test edx, eax
je 0x402b20
push 1
push 0
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_SetFilePointer
jmp 0x402b53
mov eax, dword [ebp - 0x218]
mov byte [eax + esi], cl
inc eax
mov dword [ebp - 0x218], eax
jmp 0x402b53
mov edx, dword [ebp - 0x218]
mov byte [edx + esi], cl
inc edx
mov dword [ebp - 0x218], edx
mov byte [ebp - 0x219], cl
test cl, cl
je 0x402b53
cmp edx, ebx
jmp 0x402a9b
mov eax, dword [ebp - 0x218]
test eax, eax
mov byte [esi + eax], 0
jne case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
cmp byte [edi], 0
je case.0x40160f.65
push dword [ebp - 0x1c]
mov eax, 2
push 0
call fcn.00401416
push eax
push edi
call fcn.00405c78
push eax
call sub.KERNEL32.dll_SetFilePointer
cmp dword [ebp - 0x24], 0
js case.0x40160f.65
push eax
push esi
call fcn.00405c61
jmp case.0x40160f.65
cmp byte [edi], 0
je case.0x40160f.65
push edi
call fcn.00405c78
push eax
call sub.KERNEL32.dll_FindClose
jmp case.0x40160f.65
cmp byte [esi], 0
je 0x402bf7
lea eax, [ebp - 0x19c]
push eax
push esi
call fcn.00405c78
push eax
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
je 0x402bf7
lea eax, [ebp - 0x170]
push eax
push edi
call fcn.00405d1f
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
mov byte [edi], 0
jmp case.0x40160f.65
mov eax, 2
call fcn.00401431
lea edx, [ebp - 0x19c]
push edx
push eax
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
jne 0x402c3a
mov byte [esi], 0
mov byte [edi], 0
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
push eax
push esi
call fcn.00405c61
lea eax, [ebp - 0x170]
push eax
push edi
call fcn.00405d1f
jmp case.0x40160f.65
mov eax, 0xfffffff0
mov esi, 0xfffffd66
call fcn.00401431
mov dword [ebp - 0x224], eax
push eax
call fcn.004059ec
test eax, eax
jne 0x402c7c
mov eax, 0xffffffed
call fcn.00401431
push dword [ebp - 0x224]
call fcn.00405b47
push 2
push 0x40000000
push dword [ebp - 0x224]
call fcn.00405b6a
mov dword [ebp - 0x220], eax
inc eax
je 0x402d82
mov edx, dword [0x42f9c0]
push edx
mov dword [ebp - 0x22c], edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
test eax, eax
mov dword [ebp - 0x228], eax
je 0x402d77
push 0
call fcn.00403067
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
call fcn.00403080
push dword [ebp - 0x20]
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov edi, eax
test eax, eax
mov dword [ebp - 0x230], eax
je 0x402d39
push dword [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x24]
call fcn.004030b8
mov eax, dword [ebp - 0x230]
cmp byte [eax], 0
je 0x402d2e
mov esi, dword [edi + 4]
mov eax, dword [ebp - 0x228]
mov ebx, dword [edi]
add eax, esi
add edi, 8
push ebx
push edi
push eax
call fcn.00405a7b
add edi, ebx
cmp byte [edi], 0
jmp 0x402d0d
push dword [ebp - 0x230]
call sub.KERNEL32.dll_GlobalFree
lea eax, [ebp - 0x1e4]
push 0
push eax
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
push dword [ebp - 0x220]
call sub.KERNEL32.dll_WriteFile
push dword [ebp - 0x228]
call sub.KERNEL32.dll_GlobalFree
push 0
push 0
push dword [ebp - 0x220]
push 0xffffffffffffffff
call fcn.004030b8
mov esi, eax
push dword [ebp - 0x220]
call sub.KERNEL32.dll_CloseHandle
mov ebx, 0xfffffff3
test esi, esi
jns 0x402da2
push dword [ebp - 0x224]
mov bl, 0xef
call sub.KERNEL32.dll_DeleteFileA
mov dword [ebp - 0x1ec], 1
push ebx
call fcn.00401402
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
mov edi, eax
cmp eax, dword [0x42f95c]
jae 0x402e3a
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x20]
add ebx, dword [0x42f958]
test eax, eax
jl 0x402df1
mov eax, dword [ebx + eax*4]
jne 0x402de5
lea eax, [ebx + 0x18]
push eax
push esi
call fcn.00405d1f
jmp case.0x40160f.65
push eax
push esi
call fcn.00405c61
jmp case.0x40160f.65
not eax
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402e09
mov eax, 1
call fcn.00401416
mov dword [ebp - 0x24], eax
jmp 0x402e1c
push dword [ebp - 0x18]
lea eax, [ebx + 0x18]
push eax
call fcn.00405ea5
or dword [ebx + 8], 0x100
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x1c], 0
je case.0x40160f.65
push edi
call fcn.004011c0
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
xor eax, eax
call fcn.00401416
mov edx, eax
cmp eax, 0x1f
ja 0x402eaa
cmp dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
je 0x402e85
test eax, eax
je 0x402e75
push edx
call fcn.004012f5
push 0
push 0
call fcn.00401238
jmp case.0x40160f.65
push 0
call fcn.0040134b
push eax
push esi
call fcn.00405c61
jmp case.0x40160f.65
test eax, eax
mov ecx, dword [0x42f940]
je 0x402e9b
mov eax, dword [ebp - 0x24]
mov dword [ecx + edx*4 + 0x94], eax
jmp case.0x40160f.65
push dword [ecx + edx*4 + 0x94]
push esi
call fcn.00405ea5
jmp case.0x40160f.65
mov dword [ebp - 0x1ec], 1
jmp case.0x40160f.65
movzx eax, byte [ebp - 0x1dd]
push eax
push esi
call fcn.00405c61
jmp 0x402efd
and edx, dword [0x42ac50]
push 0
push edx
push 0xb
push dword [ebp - 0x1e8]
call sub.USER32.dll_SendMessageA
cmp dword [ebp - 0x28], 0
je case.0x40160f.65
push 0
push 0
push dword [ebp - 0x1e8]
call sub.USER32.dll_InvalidateRect
mov edx, dword [ebp - 0x1ec]
add dword [0x42f8e8], edx
xor eax, eax
cmp eax, 0x7fffffff
jne 0x402f0d
mov eax, 0x7fffffff
jmp 0x402f67
push eax
call fcn.004013e0
mov edx, eax
test eax, eax
jne 0x402f20
inc dword [ebp + 8]
mov dl, 1
jmp 0x402f29
mov eax, dword [ebp + 8]
dec edx
mov dword [ebp + 8], edx
sub edx, eax
cmp dword [ebp + 0xc], 0
je 0x401598
push 0
mov eax, dword [0x430230]
push dword [0x430250]
add eax, edx
push 0x7530
mov dword [0x430230], eax
push eax
call sub.KERNEL32.dll_MulDiv
push eax
push 0x402
push dword [ebp + 0xc]
call sub.USER32.dll_SendMessageA
jmp 0x401598
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8