Function at 0x40165b
Capabilities:
Copy file
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
push ebx
sub esp, 0x1bc
mov eax, dword [0x433854]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x174]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x170]
mov dword [0x40f83c], edx
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x16c]
mov edi, dword [ebp - 0x170]
mov ecx, eax
shl ecx, 0xa
mov esi, edi
mov dword [ebp - 0x194], ecx
add ecx, section..ndata
mov dword [ebp - 0x18c], ecx
mov ecx, dword [ebp - 0x174]
shl esi, 0xa
lea ebx, [esi + section..ndata]
lea edx, [ecx - 2]
cmp edx, 0x41
ja case.0x4016ce.65
jmp dword [edx*4 + 0x40b004]
mov dword [esp + 4], 0
mov dword [esp], edi
jmp 0x401c95
inc dword [0x43405c]
cmp dword [ebp - 0x190], 0
je 0x4037f9
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push edi
jmp 0x4037f9
mov dword [esp], edi
call fcn.0040161b
dec eax
push ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040380a
push esi
mov edi, eax
push esi
jmp case.0x4016ce.2
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.00406c5d
jmp 0x403792
mov dword [esp], 0
call fcn.00401456
mov edx, 1
test eax, eax
push ecx
cmovg edx, eax
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40216a
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40216a
cmp dword [ebp - 0x168], 0
jne 0x4017a2
mov eax, dword [edi*4 + 0x4337bc]
mov dword [esp], 1
mov dword [edi*4 + 0x433784], eax
call fcn.00401456
push edx
jmp 0x4017a9
mov eax, dword [edi*4 + 0x433784]
mov dword [edi*4 + 0x4337bc], eax
jmp case.0x4016ce.65
mov eax, dword [ebp - 0x168]
xor ecx, ecx
mov edx, dword [eax*4 + 0x4337bc]
test edx, edx
sete cl
and edx, dword [ebp - 0x164]
mov edi, dword [ebp + ecx*4 - 0x170]
mov dword [eax*4 + 0x4337bc], edx
jmp case.0x4016ce.2
mov eax, dword [eax*4 + 0x4337bc]
jmp 0x4024ff
mov edx, dword [0x434060]
test edx, edx
je 0x401807
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov eax, dword [0x434064]
test eax, eax
je case.0x4016ce.65
mov edx, dword [ebp - 0x170]
mov dword [esp], eax
mov dword [esp + 4], edx
jmp 0x40253c
mov dword [esp], 0xfffffff0
call fcn.00401400
mov edx, dword [ebp - 0x16c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x401ad0
mov dword [esp], 0xfffffff0
xor edi, edi
call fcn.00401400
push ecx
mov ebx, eax
mov dword [esp], eax
call fcn.004074fc
test eax, eax
push esi
je 0x4018dd
mov ecx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x190], ecx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call fcn.0040746c
push ecx
mov esi, eax
push ecx
mov al, byte [eax]
mov byte [esi], 0
mov dword [esp + 4], 0
mov byte [ebp - 0x18c], al
mov dword [esp], ebx
call dword [ebp - 0x190]
test eax, eax
push edx
push edx
jne 0x4018ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4018bb
inc edi
jmp 0x4018ce
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 1
push edx
adc edi, 0
mov cl, byte [ebp - 0x18c]
lea eax, [esi + 1]
test cl, cl
mov byte [esi], cl
jne 0x401875
cmp dword [ebp - 0x16c], 0
je 0x401913
mov dword [esp], 0xffffffe6
call fcn.0040163c
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x43c800
call fcn.00407881
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x4027f2
mov dword [esp], 0xfffffff5
jmp 0x40363f
mov dword [esp], 0
call fcn.00401400
push ecx
mov dword [esp], eax
call fcn.00407ce2
jmp 0x40231e
mov dword [esp], 0xffffffd0
call fcn.00401400
push edx
mov ebx, eax
mov dword [esp], 0xffffffdf
call fcn.00401400
push ecx
mov esi, eax
mov dword [esp], 0x13
call fcn.00401400
push edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
push edx
push edx
je 0x401983
mov dword [esp], 0xffffffe3
jmp 0x402b68
cmp dword [ebp - 0x168], 0
je 0x4029d8
mov dword [esp], ebx
call fcn.00407ce2
test eax, eax
push edi
je 0x4029d8
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00407e26
push ebx
push ebx
mov dword [esp], 0xffffffe4
jmp 0x402b68
mov dword [esp], 0
call fcn.00401400
mov ebx, eax
push ecx
lea eax, [ebp - 0x158]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0x400
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
sub esp, 0x10
test eax, eax
je 0x401a2d
mov eax, dword [ebp - 0x158]
xor edi, edi
cmp eax, ebx
jbe 0x401a3f
cmp byte [eax], 0
je 0x401a3f
mov dword [esp], ebx
call fcn.00407ce2
test eax, eax
push edx
je 0x401a2d
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
call fcn.00407881
push eax
push eax
jmp 0x401a3f
mov eax, dword [ebp - 0x194]
mov edi, 1
mov byte [eax + section..ndata], 0
cmp dword [ebp - 0x168], 0
jne 0x4037ef
mov eax, dword [ebp - 0x18c]
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0xc
jmp 0x4037ef
mov dword [esp], 0xffffffff
call fcn.00401400
lea edx, [ebp - 0x158]
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
sub esp, 0x18
test eax, eax
jmp 0x402d64
mov dword [esp], 0xffffffef
call fcn.00401400
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407698
push edx
push edx
jmp 0x4031e8
mov dword [esp], 0x31
call fcn.00401400
push ebx
mov esi, eax
mov ebx, dword [ebp - 0x170]
mov dword [esp], eax
call fcn.004074cf
and ebx, 7
test eax, eax
push edi
je 0x401b0e
mov dword [esp + 4], esi
mov dword [esp], 0x40f840
call fcn.00407881
jmp 0x401b39
mov dword [esp + 4], 0x43c800
mov dword [esp], 0x40f840
call fcn.00407881
push edx
push edx
mov dword [esp], eax
call fcn.004078bf
push ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004078b4
push edi
push edi
mov dword [esp], 0x40f840
call fcn.00407904
cmp ebx, 2
push eax
jle 0x401b8b
mov dword [esp], 0x40f840
call fcn.00407ce2
test eax, eax
push ecx
je 0x401b78
lea edx, [ebp - 0x164]
add eax, 0x14
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push edx
push edx
jmp 0x401b7a
xor eax, eax
sub ebx, 3
or ebx, 0x80000000
test eax, ebx
sete bl
movzx ebx, bl
test ebx, ebx
jne 0x401ba3
mov dword [esp], 0x40f840
call fcn.0040760d
mov eax, 2
push edi
jmp 0x401bac
xor eax, eax
cmp ebx, 1
setne al
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x40f840
call fcn.0040763f
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
jne 0x401c9f
test ebx, ebx
je 0x401bf8
mov dword [esp + 4], esi
mov dword [esp], 0xffffffe2
call fcn.00406c5d
cmp ebx, 2
push ecx
push ecx
sete al
movzx eax, al
mov edi, eax
jmp 0x4037ef
mov dword [esp + 4], section..ndata
mov dword [esp], 0x410040
call fcn.00407881
push eax
push eax
mov dword [esp + 4], 0x40f840
mov dword [esp], section..ndata
call fcn.00407881
push eax
push eax
mov eax, dword [ebp - 0x15c]
mov dword [esp], 0x40fc40
mov dword [esp + 4], eax
call fcn.004079d1
push eax
push eax
mov dword [esp + 4], 0x410040
mov dword [esp], section..ndata
call fcn.00407881
push eax
push eax
mov eax, dword [ebp - 0x170]
mov dword [esp], 0x40fc40
sar eax, 3
mov dword [esp + 4], eax
call fcn.004073fe
cmp eax, 4
push edx
push edx
je 0x401b8f
cmp eax, 5
jne 0x401c86
inc dword [0x4337c4]
jmp 0x4037f5
mov dword [esp + 4], 0x40f840
mov dword [esp], 0xfffffffa
call fcn.00406c5d
jmp 0x4020f6
mov dword [esp + 4], esi
mov dword [esp], 0xffffffea
call fcn.00406c5d
inc dword [0x4337f0]
push eax
push eax
mov eax, dword [ebp - 0x168]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00403abb
dec dword [0x4337f0]
sub esp, 0x10
mov ebx, eax
cmp dword [ebp - 0x164], 0xffffffff
jne 0x401cf6
cmp dword [ebp - 0x160], 0xffffffff
je 0x401d18
lea eax, [ebp - 0x164]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
push eax
jns case.0x4016ce.65
cmp ebx, 0xfffffffe
jne 0x401d57
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x40f840
call fcn.004079d1
push edi
push edi
mov dword [esp + 4], esi
mov dword [esp], 0x40f840
call fcn.004078b4
jmp 0x401d6b
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x40f840
call fcn.004079d1
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], 0x40f840
jmp 0x4020f1
mov dword [esp], 0
jmp 0x401ddd
mov dword [esp], 0x31
call fcn.00401400
push edx
mov edx, dword [ebp - 0x170]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004073fe
test eax, eax
push ecx
push ecx
je 0x4029d8
cmp eax, dword [ebp - 0x168]
je 0x401fb2
cmp eax, dword [ebp - 0x160]
jne case.0x4016ce.65
mov edi, dword [ebp - 0x15c]
jmp case.0x4016ce.2
mov dword [esp], 0xfffffff0
call fcn.00401400
mov edx, dword [ebp - 0x16c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004080c9
jmp 0x403792
mov dword [esp], 1
call fcn.00401400
push esi
mov dword [esp], eax
call fcn.004078a9
jmp 0x4024fe
mov dword [esp], 2
call fcn.00401456
push ecx
mov edi, eax
mov dword [esp], 3
call fcn.00401456
push edx
mov dword [esp], 1
mov dword [ebp - 0x18c], eax
call fcn.00401400
mov edx, dword [ebp - 0x18c]
cmp dword [ebp - 0x168], 0
mov byte [esi + section..ndata], 0
push ecx
mov ecx, eax
je 0x401e63
test edi, edi
je case.0x4016ce.65
mov dword [esp], ecx
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x18c], ecx
call fcn.004078a9
mov ecx, dword [ebp - 0x18c]
push edx
mov edx, dword [ebp - 0x190]
test edx, edx
jns 0x401e90
add edx, eax
js case.0x4016ce.65
cmp edx, eax
cmovg edx, eax
add ecx, edx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.00407881
test edi, edi
push ecx
push ecx
je case.0x4016ce.65
jns 0x401ebc
mov dword [esp], ebx
call fcn.004078a9
add edi, eax
push edx
js 0x401eca
cmp edi, 0x3ff
jg case.0x4016ce.65
jmp 0x401ecc
xor edi, edi
mov byte [edi + esi + section..ndata], 0
jmp case.0x4016ce.65
mov dword [esp], 0x20
call fcn.00401400
push ebx
mov ebx, eax
mov dword [esp], 0x31
call fcn.00401400
cmp dword [ebp - 0x160], 0
push esi
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x401f0d
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x401f13
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
push ecx
push ecx
jne 0x401fb2
jmp 0x40232e
mov dword [esp], 1
call fcn.00401400
push edx
mov edi, eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
sub esp, 0xc
test eax, eax
jne 0x401f5b
mov byte [esi + section..ndata], 0
mov edi, 1
jmp 0x401f7d
cmp dword [ebp - 0x168], 0
jne 0x401f68
xor edi, edi
jmp 0x401f7d
mov dword [esp], edi
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
push edi
push edi
je 0x401f4d
jmp 0x401f64
mov byte [ebx + 0x3ff], 0
jmp 0x4037ef
mov dword [esp], 0
call fcn.00401456
push ebx
mov ebx, eax
mov dword [esp], 1
call fcn.00401456
cmp dword [ebp - 0x15c], 0
push esi
jne 0x401fce
cmp ebx, eax
jge 0x401fbd
mov edi, dword [ebp - 0x164]
jmp case.0x4016ce.2
jle 0x40232e
mov edi, dword [ebp - 0x160]
jmp case.0x4016ce.2
cmp ebx, eax
jb 0x401fb2
ja 0x401fc3
jmp 0x40232e
mov dword [esp], 1
call fcn.00401456
push edx
mov esi, eax
mov dword [esp], 2
call fcn.00401456
cmp dword [ebp - 0x164], 0xc
push ecx
mov ecx, eax
ja case.default.0x402006
mov eax, dword [ebp - 0x164]
jmp dword [eax*4 + 0x40b10c]
add esi, ecx
jmp case.default.0x402006
sub esi, ecx
jmp case.default.0x402006
imul esi, ecx
jmp case.default.0x402006
test ecx, ecx
je 0x40206d
mov eax, esi
cdq
idiv ecx
jmp 0x402040
or esi, ecx
jmp case.default.0x402006
and esi, ecx
jmp case.default.0x402006
xor esi, ecx
jmp case.default.0x402006
test esi, esi
sete al
jmp 0x40203d
or ecx, esi
setne al
movzx eax, al
mov esi, eax
jmp case.default.0x402006
test ecx, ecx
setne al
xor ecx, ecx
test esi, esi
setne cl
mov esi, ecx
and esi, eax
jmp case.default.0x402006
test ecx, ecx
je 0x40206d
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp case.default.0x402006
shl esi, cl
jmp case.default.0x402006
sar esi, cl
xor edi, edi
jmp 0x402074
xor esi, esi
mov edi, 1
mov dword [esp + 4], esi
jmp 0x4022f9
mov dword [esp], 1
call fcn.00401400
push ecx
mov esi, eax
mov dword [esp], 2
call fcn.00401456
push edi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
jmp case.0x4016ce.65
mov edx, dword [ebp - 0x168]
mov esi, dword [0x410c40]
test edx, edx
je 0x40213d
mov eax, edx
dec eax
test esi, esi
je 0x4020d0
test eax, eax
mov esi, dword [esi]
jne 0x4020c1
test esi, esi
jne 0x4020fd
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.004079d1
push edx
push edx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.004073fe
push eax
push eax
jmp 0x4037f9
add esi, 4
mov dword [esp + 4], esi
mov dword [esp], 0x40f840
call fcn.00407881
push eax
push eax
mov eax, dword [0x410c40]
mov dword [esp], esi
add eax, 4
mov dword [esp + 4], eax
call fcn.00407881
push eax
push eax
mov eax, dword [0x410c40]
mov dword [esp + 4], 0x40f840
add eax, 4
jmp 0x403690
test eax, eax
je 0x402170
test esi, esi
je 0x4029d8
lea eax, [esi + 4]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407881
push edi
push edi
mov eax, dword [esi]
mov dword [esp], esi
mov dword [0x410c40], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
jmp case.0x4016ce.65
mov dword [esp + 4], 0x404
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x170]
push edx
push edx
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.004079d1
mov eax, dword [0x410c40]
push ecx
push ecx
mov dword [ebx], eax
mov dword [0x410c40], ebx
jmp case.0x4016ce.65
mov dword [esp], 3
call fcn.00401456
push ecx
mov esi, eax
mov dword [esp], 4
call fcn.00401456
test byte [ebp - 0x15c], 1
push edi
mov edi, eax
je 0x4021e8
mov dword [esp], 0x33
call fcn.00401400
mov esi, eax
push edx
test byte [ebp - 0x15c], 2
je 0x402200
mov dword [esp], 0x44
call fcn.00401400
push edi
mov edi, eax
cmp dword [ebp - 0x174], 0x21
mov dword [esp], 1
jne 0x402295
call fcn.00401456
push edx
mov dword [esp], 2
mov dword [ebp - 0x18c], eax
call fcn.00401456
mov edx, dword [ebp - 0x15c]
sar edx, 2
push ecx
je 0x402278
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
lea ecx, [ebp - 0x158]
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
sub esp, 0x1c
test eax, eax
sete al
movzx eax, al
mov edi, eax
jmp 0x4022e2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4022d7
call fcn.00401400
push edx
mov dword [esp], 0x12
mov dword [ebp - 0x18c], eax
call fcn.00401400
mov edx, dword [ebp - 0x18c]
push ecx
xor ecx, ecx
cmp byte [eax], 0
cmove eax, ecx
cmp byte [edx], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
cmove edx, ecx
mov dword [esp + 8], edx
mov dword [esp], esi
call dword [sym.imp.USER32.dll_FindWindowExA]
sub esp, 0x10
xor edi, edi
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x170], 0
js 0x4037ef
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004077aa
push esi
push esi
jmp 0x4037ef
mov dword [esp], 0
call fcn.00401456
push ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
push ecx
je 0x40232e
mov edi, dword [ebp - 0x16c]
jmp case.0x4016ce.2
mov edi, dword [ebp - 0x168]
jmp case.0x4016ce.2
mov dword [esp], 2
call fcn.00401456
push esi
mov esi, eax
mov dword [esp], 1
call fcn.00401456
push edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push edx
push edx
jmp 0x4024ff
add eax, dword [0x433828]
mov dword [esp], 0
mov ebx, eax
call fcn.00401456
push ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x4037ea
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push edx
mov ebx, eax
push edx
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x168]
mov edi, dword [ebp - 0x14c]
imul edi, eax
imul eax, dword [ebp - 0x150]
push ecx
push ecx
mov dword [esp], 0
mov esi, eax
call fcn.00401400
push edx
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.USER32.dll_LoadImageA]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x172
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
test eax, eax
je case.0x4016ce.65
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x40216a
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edx
mov esi, eax
push edx
mov dword [esp], 2
call fcn.00401456
push ecx
mov dword [esp + 4], esi
mov dword [esp + 8], 0x48
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
sub esp, 0xc
neg eax
mov dword [esp], 3
mov dword [0x40f800], eax
call fcn.00401456
mov byte [0x40f817], 1
mov dword [0x40f810], eax
mov eax, dword [ebp - 0x160]
push esi
mov dword [esp], 0x40f81c
mov edx, eax
and edx, 1
mov byte [0x40f814], dl
mov edx, eax
and eax, 4
mov byte [0x40f816], al
mov eax, dword [ebp - 0x16c]
and edx, 2
mov byte [0x40f815], dl
mov dword [esp + 4], eax
call fcn.004079d1
push edi
push edi
mov dword [esp], 0x40f800
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004077aa
jmp 0x403792
mov dword [esp], 0
call fcn.00401456
push edx
mov ebx, eax
mov dword [esp], 1
call fcn.00401456
cmp dword [ebp - 0x164], 0
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x402547
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403792
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x403792
mov dword [esp], 0
call fcn.00401400
push esi
mov ebx, eax
mov dword [esp], 0x31
call fcn.00401400
push edi
mov edi, eax
mov dword [esp], 0x22
call fcn.00401400
push edx
mov esi, eax
mov dword [esp], 0x15
call fcn.00401400
push ecx
mov dword [esp], 0xffffffec
call fcn.0040163c
xor edx, edx
push eax
mov eax, dword [ebp - 0x164]
cmp byte [esi], 0
cmove esi, edx
cmp byte [ebx], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 0x10], 0x43c800
cmove ebx, edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
sub esp, 0x18
cmp eax, 0x20
setle al
jmp 0x401bee
mov dword [esp], 0
call fcn.00401400
push edx
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffeb
call fcn.00406c5d
push ecx
push ecx
mov dword [esp], ebx
call fcn.00407340
test eax, eax
push ebx
mov ebx, eax
je 0x4029d8
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x168], 0
je 0x402696
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call esi
cmp eax, 0x102
push edi
push edi
jne 0x40264c
mov dword [esp], 0xf
call fcn.00408361
push eax
jmp 0x402627
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x16c], 0
push esi
push esi
js 0x402688
mov eax, dword [ebp - 0x158]
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004077aa
push ecx
push ecx
jmp 0x402696
xor eax, eax
cmp dword [ebp - 0x158], 0
setne al
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4027f2
mov dword [esp], 2
call fcn.00401400
push edi
mov dword [esp], eax
call fcn.00407ce2
test eax, eax
mov edi, eax
push edx
je 0x4026df
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004077aa
push ecx
push ecx
mov eax, dword [edi + 0x18]
jmp 0x4024ff
mov eax, dword [ebp - 0x194]
mov byte [esi + section..ndata], 0
mov byte [eax + section..ndata], 0
jmp 0x4029d8
mov dword [esp], 0xffffffee
call fcn.00401400
mov edi, eax
push ecx
lea eax, [ebp - 0x178]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov byte [esi + section..ndata], 0
push edx
push edx
mov edx, eax
mov eax, dword [ebp - 0x194]
test edx, edx
mov byte [eax + section..ndata], 0
je 0x4029d8
mov dword [esp + 4], edx
mov dword [ebp - 0x190], edx
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov esi, eax
push edx
push edx
je 0x4029d8
mov edx, dword [ebp - 0x190]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], edi
mov dword [esp + 8], edx
call sub.VERSION.dll_GetFileVersionInfoA
sub esp, 0x10
test eax, eax
jne 0x402788
mov edi, 1
jmp 0x4027e9
lea eax, [ebp - 0x158]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x17c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40b000
mov dword [esp], esi
call sub.VERSION.dll_VerQueryValueA
sub esp, 0x10
test eax, eax
je 0x402781
mov eax, dword [ebp - 0x17c]
xor edi, edi
mov eax, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004077aa
push eax
push eax
mov eax, dword [ebp - 0x17c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004077aa
push eax
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
jmp 0x4037ef
cmp dword [0x4337f4], 0
js 0x402918
mov dword [esp], 0xfffffff0
call fcn.00401400
push ebx
mov edi, eax
mov dword [esp], 1
call fcn.00401400
cmp dword [ebp - 0x160], 0
push esi
mov esi, eax
jne 0x402854
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x40290c
jmp 0x402864
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebx, eax
push ecx
je 0x40282c
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov edi, eax
push edx
push edx
je 0x4028c9
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x40289a
mov dword [esp], eax
call fcn.0040163c
push eax
call edi
test eax, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x4028e0
mov eax, dword [ebp - 0x190]
mov dword [esp + 0x10], 0x40a000
mov dword [esp + 0xc], 0x410c40
mov dword [esp + 8], 0x437000
mov dword [esp + 4], 0x400
mov dword [esp], eax
call edi
xor edi, edi
jmp 0x4028e0
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.00406c5d
push edi
push edi
mov edi, 1
cmp dword [ebp - 0x164], 0
jne 0x4037ef
mov dword [esp], ebx
call fcn.0040471b
test eax, eax
push esi
je 0x4037ef
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4027f2
mov dword [esp], 0xfffffff6
jmp 0x4029d2
mov dword [esp], 0xffffffe7
jmp 0x4029d2
mov dword [esp], 0xfffffff0
call fcn.00401400
push edx
mov dword [esp], 0xffffffdf
mov dword [ebp - 0x18c], eax
call fcn.00401400
push ecx
mov edi, eax
mov dword [esp], 2
call fcn.00401400
push ebx
mov dword [esp], 0xffffffcd
mov dword [ebp - 0x190], eax
call fcn.00401400
push esi
mov esi, eax
mov dword [esp], 0x45
call fcn.00401400
push edx
mov dword [esp], edi
mov dword [ebp - 0x194], eax
call fcn.004074cf
test eax, eax
push ecx
jne 0x402995
mov dword [esp], 0x21
call fcn.00401400
push eax
lea eax, [ebp - 0x178]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40d570
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40be50
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jns 0x4029e2
mov dword [esp], 0xfffffff0
call fcn.0040163c
push ebx
mov edi, 1
jmp 0x4037ef
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40cf20
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
mov ebx, eax
js 0x402b4a
mov eax, dword [ebp - 0x178]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x50]
mov ebx, eax
mov eax, dword [ebp - 0x178]
push edx
push edx
mov edx, dword [eax]
mov dword [esp + 4], 0x43c800
mov dword [esp], eax
call dword [edx + 0x24]
mov edx, dword [ebp - 0x160]
movzx edx, dh
test edx, edx
push ecx
push ecx
je 0x402a5d
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0x3c]
push eax
push eax
mov eax, dword [ebp - 0x178]
movzx ecx, word [ebp - 0x15e]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
push eax
push eax
cmp byte [esi], 0
je 0x402a9d
mov eax, dword [ebp - 0x178]
movzx ecx, byte [ebp - 0x160]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x44]
sub esp, 0xc
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x190]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x194]
push edi
push edi
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x1c]
test ebx, ebx
push eax
push eax
js 0x402b3b
mov eax, dword [ebp - 0x18c]
mov ebx, 0x80004005
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x40f000
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esp, 0x18
test eax, eax
je 0x402b3b
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40f000
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push esi
mov eax, dword [ebp - 0x178]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
test ebx, ebx
push ecx
js 0x4029cb
mov dword [esp], 0xfffffff4
call fcn.0040163c
jmp 0x40216a
mov dword [esp], 0
call fcn.00401400
push edx
mov ebx, eax
mov dword [esp], 0x11
call fcn.00401400
push ecx
mov esi, eax
mov dword [esp], 0x23
call fcn.00401400
push edi
mov edi, eax
mov dword [esp], ebx
call fcn.00407ce2
test eax, eax
push edx
jne 0x402bc7
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.00406c5d
push edi
push edi
jmp 0x4029d8
mov eax, dword [ebp - 0x190]
mov dword [esp], ebx
mov dword [ebp - 0x154], 2
mov dword [ebp - 0x158], eax
call fcn.004078a9
push edx
mov byte [ebx + eax + 1], 0
mov dword [esp], esi
call fcn.004078a9
push ecx
mov byte [esi + eax + 1], 0
mov eax, dword [ebp - 0x168]
mov dword [esp + 4], edi
mov dword [esp], 0
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x13e], edi
xor edi, edi
mov word [ebp - 0x148], ax
call fcn.00406c5d
lea eax, [ebp - 0x158]
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_SHFileOperationA]
test eax, eax
push esi
je 0x4037ef
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.00406c5d
push eax
push eax
mov di, 1
jmp 0x4037ef
cmp edi, 0xbadf00d
jne 0x4020d0
inc dword [0x4337d0]
jmp case.0x4016ce.65
xor ebx, ebx
test edi, edi
je 0x402c8f
mov dword [esp], 0
call fcn.00401400
mov ebx, eax
push edi
xor esi, esi
cmp dword [ebp - 0x16c], 0
je 0x402ca9
mov dword [esp], 0x11
call fcn.00401400
push esi
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x160], 0
je 0x402cc3
mov dword [esp], 0x22
call fcn.00401400
mov edi, eax
push ecx
mov dword [esp], 0xffffffcd
call fcn.00401400
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
sub esp, 0x10
jmp 0x4031e8
mov dword [esp], 1
mov dword [ebp - 0x158], 0x7e4e21
call fcn.00401400
push ecx
mov edi, eax
mov dword [esp], 0x12
call fcn.00401400
push edx
mov dword [esp], 0xffffffdd
mov dword [ebp - 0x18c], eax
call fcn.00401400
mov edx, dword [ebp - 0x18c]
push ecx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x158]
mov dword [esp], edi
xor edi, edi
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x158]
sub esp, 0x18
cmp dword [esi + section..ndata], eax
jne 0x4037ef
mov byte [esi + section..ndata], 0
jmp 0x402c5a
cmp dword [ebp - 0x160], 0
jne 0x402dc0
mov dword [esp], 2
call fcn.004015b0
test eax, eax
mov ebx, eax
push edx
je 0x4029d8
mov dword [esp], 0x33
call fcn.00401400
push esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov esi, eax
push edi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
jmp 0x402e01
mov dword [esp], 0x22
call fcn.00401400
mov edx, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x16c]
and edx, 2
test ecx, ecx
push ebx
jne 0x402dec
mov ecx, dword [0x4337c0]
sub ecx, 0x7fffffff
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00401482
sub esp, 0xc
mov esi, eax
test esi, esi
je case.0x4016ce.65
jmp 0x4029d8
test edi, edi
jne 0x402e1d
mov eax, dword [0x4337c0]
lea edi, [eax - 0x7fffffff]
mov dword [esp], 2
mov ebx, dword [ebp - 0x160]
mov esi, dword [ebp - 0x15c]
call fcn.00401400
push edx
mov dword [esp], 0x11
mov dword [ebp - 0x18c], eax
call fcn.00401400
lea edx, [ebp - 0x158]
push ecx
mov dword [esp + 0x1c], edx
mov edx, dword [0x4337ec]
mov dword [esp], edi
mov edi, 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
or edx, 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
jne 0x4037ef
cmp ebx, 1
jne 0x402ec7
mov dword [esp], 0x23
call fcn.00401400
push ebx
mov dword [esp], 0x410040
call fcn.004078a9
inc eax
push edi
jmp 0x402f15
cmp ebx, 4
jne 0x402ee5
mov dword [esp], 3
call fcn.00401456
mov dword [0x410040], eax
mov eax, 4
push ecx
jmp 0x402f15
xor eax, eax
cmp ebx, 3
jne 0x402f15
mov eax, dword [ebp - 0x164]
mov dword [esp + 0xc], 0xc00
mov dword [esp + 8], 0x410040
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403abb
sub esp, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0x10], 0x410040
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
setne al
movzx eax, al
mov edi, eax
mov eax, dword [ebp - 0x158]
jmp 0x403033
mov dword [esp], 0x20019
call fcn.004015b0
push edi
mov edi, eax
mov dword [esp], 0x33
mov dword [ebp - 0x18c], eax
call fcn.00401400
test edi, edi
mov byte [esi + section..ndata], 0
push edx
je 0x4029d8
lea edx, [ebp - 0x178]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x158]
mov dword [ebp - 0x178], 0x3ff
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x402fe2
mov eax, dword [ebp - 0x158]
cmp eax, 1
je 0x402ff0
cmp eax, 4
je 0x402ff0
cmp eax, 2
je 0x403019
mov byte [esi + section..ndata], 0
mov edi, 1
jmp 0x40302d
cmp eax, 4
jne 0x403019
xor eax, eax
cmp dword [ebp - 0x160], 0
mov dword [esp], ebx
sete al
mov edi, eax
mov eax, dword [esi + section..ndata]
mov dword [esp + 4], eax
call fcn.004077aa
push ecx
push ecx
jmp 0x40302d
mov eax, dword [ebp - 0x178]
mov edi, dword [ebp - 0x160]
mov byte [esi + eax + section..ndata], 0
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4027f2
mov dword [esp], 0x20019
call fcn.004015b0
push ecx
mov edi, eax
mov dword [esp], 3
call fcn.00401456
test edi, edi
mov byte [esi + section..ndata], 0
push edx
je 0x4029d8
cmp dword [ebp - 0x160], 0
mov dword [ebp - 0x158], 0x3ff
je 0x40309d
mov dword [esp + 0xc], 0x3ff
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
sub esp, 0x10
jmp 0x4030e3
lea edx, [ebp - 0x158]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
sub esp, 0x20
test eax, eax
jne 0x4029d8
mov byte [ebx + 0x3ff], 0
mov dword [esp], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40216a
cmp byte [esi + section..ndata], 0
je case.0x4016ce.65
mov dword [esp], ebx
call fcn.004077cf
push edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40216a
mov dword [esp], 0xffffffed
call fcn.00401400
mov edx, dword [ebp - 0x168]
push edi
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x16c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040763f
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x4024ff
mov byte [esi + section..ndata], 0
jmp 0x4029d8
cmp dword [ebp - 0x168], 0
je 0x40317f
mov dword [esp], 1
call fcn.00401456
mov byte [0x40fc40], al
push ecx
mov ecx, 1
jmp 0x403197
mov dword [esp], 0x11
call fcn.00401400
push edi
mov dword [esp], eax
call fcn.004078a9
mov ecx, eax
push edx
cmp byte [esi + section..ndata], 0
mov edi, 1
je 0x4037ef
mov dword [esp], ebx
mov dword [ebp - 0x18c], ecx
call fcn.004077cf
mov ecx, dword [ebp - 0x18c]
lea edx, [ebp - 0x158]
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40fc40
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jmp 0x401beb
mov dword [esp], 2
xor edi, edi
call fcn.00401456
test eax, eax
push ecx
mov dword [ebp - 0x190], eax
jle 0x4037ef
cmp byte [esi + section..ndata], 0
je 0x40332f
mov dword [esp], ebx
xor ebx, ebx
call fcn.004077cf
lea ecx, [ebp - 0x158]
push edx
mov esi, eax
lea edx, [ebp - 0x178]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [ebp - 0x19c], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [ebp - 0x198], edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x40332f
cmp dword [ebp - 0x158], 1
jne 0x40332f
cmp dword [ebp - 0x164], 0
mov edx, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x19c]
je 0x4032ac
movzx eax, byte [ebp - 0x178]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004077aa
push esi
push esi
jmp 0x4037f5
cmp bl, 0xa
mov al, byte [ebp - 0x178]
je 0x4032bc
cmp bl, 0xd
jne 0x403300
cmp bl, al
mov edx, edi
je 0x4032ca
cmp al, 0xa
je 0x4032f0
cmp al, 0xd
je 0x4032f0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x40332f
mov ecx, dword [ebp - 0x194]
inc edi
mov byte [edx + ecx + section..ndata], al
jmp 0x40332f
mov ebx, dword [ebp - 0x18c]
inc edi
test al, al
mov byte [ebx + edi - 1], al
mov bl, al
je 0x40332f
cmp dword [ebp - 0x190], 0x3ff
mov eax, 0x3ff
cmovle eax, dword [ebp - 0x190]
cmp edi, eax
jl 0x403232
mov eax, dword [ebp - 0x194]
test edi, edi
mov byte [edi + eax + section..ndata], 0
jmp 0x401beb
cmp byte [esi + section..ndata], 0
je case.0x4016ce.65
mov dword [esp], 2
mov edi, dword [ebp - 0x164]
call fcn.00401456
push ecx
mov esi, eax
mov dword [esp], ebx
call fcn.004077cf
push ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
cmp dword [ebp - 0x16c], 0
js case.0x4016ce.65
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
jmp 0x402506
cmp byte [esi + section..ndata], 0
je case.0x4016ce.65
mov dword [esp], ebx
call fcn.004077cf
push edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40216a
mov eax, dword [ebp - 0x194]
cmp byte [eax + section..ndata], 0
je 0x403151
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004077cf
lea edx, [ebp - 0x158]
push ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
push edi
push edi
je 0x403151
jmp 0x40345c
mov dword [esp], 2
call fcn.00401400
lea edx, [ebp - 0x158]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
push edx
push edx
jne 0x403448
mov eax, dword [ebp - 0x194]
mov byte [eax + section..ndata], 0
jmp 0x403151
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004077aa
push esi
push esi
lea eax, [ebp - 0x12c]
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x403693
mov dword [esp], 0xfffffff0
call fcn.00401400
push edx
mov esi, eax
mov dword [esp], eax
call fcn.004074cf
test eax, eax
push ecx
jne 0x403497
mov dword [esp], 0xffffffed
call fcn.00401400
push eax
mov dword [esp], esi
call fcn.0040760d
push edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.0040763f
sub esp, 0xc
mov dword [ebp - 0x190], eax
inc eax
jne 0x4034dd
mov dword [esp], esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xffffffef
push ebx
jmp 0x40363c
mov eax, dword [0x43384c]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp], 0x40
mov dword [ebp - 0x18c], eax
mov dword [esp + 4], eax
call edi
test eax, eax
mov ebx, eax
push ecx
push ecx
je 0x403618
mov dword [esp], 0
call fcn.00403a89
push eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403a3d
push eax
push eax
mov eax, dword [ebp - 0x168]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call edi
test eax, eax
mov edi, eax
push edx
push edx
je 0x4035b5
mov eax, dword [ebp - 0x168]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x16c]
mov dword [esp], eax
call fcn.00403abb
mov edx, edi
sub esp, 0x10
cmp byte [edx], 0
je 0x4035ab
mov ecx, dword [edx]
lea eax, [edx + 8]
mov dword [esp + 4], eax
mov dword [ebp - 0x194], eax
mov dword [esp + 8], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x198], ecx
add eax, ebx
mov dword [esp], eax
call fcn.004075ea
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x198]
lea edx, [eax + ecx]
sub esp, 0xc
jmp 0x40356c
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
lea eax, [ebp - 0x158]
mov edi, dword [ebp - 0x190]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], 0
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0xffffffff
call fcn.00403abb
sub esp, 0x10
mov ebx, eax
jmp 0x40361d
mov ebx, 0xfffffd66
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
push ecx
js 0x4034c4
mov eax, 0xfffffff3
xor edi, edi
mov dword [esp], eax
call fcn.0040163c
jmp 0x4027f2
mov dword [esp], 0
call fcn.00401456
cmp eax, dword [0x43380c]
push edx
mov esi, eax
jae 0x4029d8
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x168]
add ebx, dword [0x433808]
test eax, eax
js 0x40369d
mov eax, dword [ebx + eax*4]
jne 0x403398
mov eax, dword [ebp - 0x18c]
add ebx, 0x18
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00407881
jmp 0x403792
not eax
test eax, eax
mov dword [ebp - 0x168], eax
je 0x4036be
mov dword [esp], 1
call fcn.00401456
mov dword [ebp - 0x16c], eax
push edi
jmp 0x4036dc
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
call fcn.004079d1
push ecx
push ecx
or dword [ebx + 8], 0x100
mov eax, dword [ebp - 0x168]
mov edx, dword [ebp - 0x16c]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x164], 0
je case.0x4016ce.65
mov dword [esp], esi
call fcn.0040121c
jmp 0x40216a
mov dword [esp], 0
call fcn.00401456
cmp eax, 0x1f
push edx
ja 0x4029d8
cmp dword [ebp - 0x164], 0
je 0x40375e
cmp dword [ebp - 0x168], 0
je 0x40374c
mov dword [esp], eax
call fcn.00401333
push edi
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00401283
jmp 0x403792
mov dword [esp], 0
call fcn.0040137a
push esi
jmp 0x403398
cmp dword [ebp - 0x168], 0
mov edx, dword [0x4337fc]
lea eax, [eax + 0x24]
je 0x40377c
mov ecx, dword [ebp - 0x16c]
mov dword [edx + eax*4 + 4], ecx
jmp case.0x4016ce.65
mov eax, dword [edx + eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004079d1
push ebx
push ebx
jmp case.0x4016ce.65
mov eax, dword [ebp - 0x190]
and edi, dword [0x42ec14]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xb
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
cmp dword [ebp - 0x170], 0
je case.0x4016ce.65
mov eax, dword [ebp - 0x190]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
sub esp, 0xc
xor edi, edi
add dword [0x4337c4], edi
xor edi, edi
jmp case.0x4016ce.2
mov edi, 0x7fffffff
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 4