Function at 0x401659
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
push ebx
sub esp, 0x1cc
mov esi, eax
mov eax, dword [0x425d48]
lea edi, [ebp - 0x40]
mov dword [ebp - 0x190], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov ecx, edx
mov esi, eax
shl ecx, 0xa
shl esi, 0xa
mov dword [ebp - 0x194], ecx
add ecx, section..ndata
mov dword [ebp - 0x18c], ecx
lea ecx, [ebp - 0x3c]
mov dword [0x40dc50], ecx
mov ecx, dword [ebp - 0x40]
sub ecx, 2
lea ebx, [esi + section..ndata]
cmp ecx, 0x41
ja case.0x4016bc.65
jmp dword [ecx*4 + 0x40b004]
mov dword [esp + 4], 0
mov dword [esp], eax
jmp 0x401c3b
inc dword [0x426568]
mov eax, 0x7fffffff
cmp dword [ebp - 0x190], 0
je case.0x4016bc.2
mov dword [esp], 0
call sub.USER32.dll_PostQuitMessage
push ebx
mov eax, 0x7fffffff
jmp case.0x4016bc.2
mov dword [esp], eax
call fcn.004014c2
dec eax
push ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403510
push edx
push edx
jmp case.0x4016bc.2
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00404690
jmp 0x40346e
xor eax, eax
call fcn.00401496
test eax, eax
jg 0x401748
mov eax, 1
mov dword [esp], eax
call sub.KERNEL32.dll_Sleep
jmp 0x40194a
mov esi, dword [ebp - 0x190]
mov dword [esp], esi
call sub.USER32.dll_SetForegroundWindow
jmp 0x40194a
cmp dword [ebp - 0x34], 0
jne 0x401795
mov edx, dword [eax*4 + 0x425c48]
mov ebx, dword [ebp - 0x3c]
mov dword [eax*4 + 0x425c08], edx
mov eax, 1
call fcn.00401496
mov dword [ebx*4 + 0x425c48], eax
jmp case.0x4016bc.65
mov edx, dword [eax*4 + 0x425c08]
mov dword [eax*4 + 0x425c48], edx
jmp case.0x4016bc.65
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx*4 + 0x425c48]
cmp ecx, 1
sbb eax, eax
and ecx, dword [ebp - 0x30]
and eax, 4
mov dword [edx*4 + 0x425c48], ecx
mov eax, dword [ebp + eax - 0x3c]
jmp case.0x4016bc.2
mov eax, dword [edx*4 + 0x425c48]
jmp 0x4023cd
mov eax, dword [0x426578]
test eax, eax
je 0x4017f0
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push edi
push edi
mov eax, dword [0x426588]
test eax, eax
je case.0x4016bc.65
mov edx, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
jmp 0x4023f9
mov eax, 0xfffffff0
call fcn.00401447
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
jmp 0x401a86
mov eax, 0xfffffff0
xor edi, edi
call fcn.00401447
mov ebx, eax
mov dword [esp], eax
call fcn.00407355
test eax, eax
push esi
je 0x4018b8
mov dword [ebp - 0x18c], ebx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call fcn.0040732c
mov esi, eax
push ebx
push ebx
mov bl, byte [eax]
mov byte [eax], 0
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_CreateDirectoryA
test eax, eax
push ecx
push ecx
jne 0x4018a7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x40188f
inc edi
jmp 0x4018a7
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
call sub.KERNEL32.dll_GetFileAttributesA
and eax, 0x10
cmp eax, 1
push edx
adc edi, 0
mov byte [esi], bl
test bl, bl
je 0x4018b2
lea eax, [esi + 1]
jmp 0x40184b
mov ebx, dword [ebp - 0x18c]
cmp dword [ebp - 0x38], 0
je 0x4018ea
mov dword [esp], 0xffffffe6
call fcn.00401428
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x42e800
call fcn.0040752a
push ecx
push ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_SetCurrentDirectoryA
jmp 0x402d03
mov dword [esp], 0xfffffff5
jmp 0x40335d
xor eax, eax
call fcn.00401447
mov dword [esp], eax
call fcn.004072f6
jmp 0x402220
mov eax, 0xffffffd0
call fcn.00401447
mov ebx, eax
mov eax, 0xffffffdf
call fcn.00401447
mov esi, eax
mov eax, 0x13
call fcn.00401447
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_MoveFileA
test eax, eax
push edx
push edx
je 0x401950
mov dword [esp], 0xffffffe3
call fcn.00401428
push eax
jmp case.0x4016bc.65
cmp dword [ebp - 0x34], 0
je 0x4034fb
mov dword [esp], ebx
call fcn.004072f6
test eax, eax
push edi
je 0x4034fb
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00407b08
push esi
push esi
mov dword [esp], 0xffffffe4
jmp 0x401945
xor eax, eax
call fcn.00401447
mov ecx, dword [ebp - 0x18c]
mov ebx, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFullPathNameA
sub esp, 0x10
test eax, eax
jne 0x4019c2
mov esi, dword [ebp - 0x194]
mov byte [esi + section..ndata], 0
jmp 0x4019fe
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jbe 0x401a05
cmp byte [eax], 0
je 0x401a05
mov dword [esp], ebx
call fcn.004072f6
test eax, eax
push ebx
je 0x4019f1
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0040752a
push ecx
push ecx
jmp 0x401a05
mov eax, dword [ebp - 0x194]
mov byte [eax + section..ndata], 0
mov edi, 1
jmp 0x401a07
xor edi, edi
cmp dword [ebp - 0x34], 0
jne 0x403500
mov edx, dword [ebp - 0x18c]
mov dword [esp + 8], 0x400
mov dword [esp + 4], edx
mov dword [esp], edx
call sub.KERNEL32.dll_GetShortPathNameA
sub esp, 0xc
jmp 0x403500
or eax, 0xffffffff
call fcn.00401447
lea edx, [ebp - 0x1c]
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 sub.KERNEL32.dll_SearchPathA
sub esp, 0x18
test eax, eax
jmp 0x402b54
mov eax, 0xffffffef
call fcn.00401447
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004078f4
push edx
push edx
jmp 0x402f33
mov eax, 0x31
call fcn.00401447
mov ebx, dword [ebp - 0x3c]
mov esi, eax
mov dword [esp], eax
call fcn.00407170
and ebx, 7
test eax, eax
push edi
je 0x401abe
mov dword [esp + 4], esi
mov dword [esp], 0x40c850
call fcn.0040752a
jmp 0x401ae9
mov dword [esp + 4], 0x42e800
mov dword [esp], 0x40c850
call fcn.0040752a
push ecx
push ecx
mov dword [esp], eax
call fcn.004074e6
push edx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00407496
push eax
push eax
mov dword [esp], 0x40c850
call fcn.004073c7
cmp ebx, 2
push edi
jle 0x401b37
mov dword [esp], 0x40c850
call fcn.004072f6
mov edx, eax
xor eax, eax
push ecx
test edx, edx
je 0x401b26
add edx, 0x14
lea eax, [ebp - 0x30]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CompareFileTime
push edx
push edx
sub ebx, 3
or ebx, 0x80000000
test eax, ebx
sete bl
movzx ebx, bl
test ebx, ebx
jne 0x401b4f
mov dword [esp], 0x40c850
call fcn.00407a6d
mov eax, 2
push edi
jmp 0x401b58
xor eax, eax
cmp ebx, 1
setne al
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x40c850
call fcn.00407a12
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x401c45
test ebx, ebx
je 0x401ba2
mov dword [esp + 4], esi
mov dword [esp], 0xffffffe2
call fcn.00404690
cmp ebx, 2
push esi
push esi
jne case.0x4016bc.65
jmp 0x4034fb
mov dword [esp + 4], section..ndata
mov dword [esp], 0x40d050
call fcn.0040752a
push ecx
push ecx
mov dword [esp + 4], 0x40c850
mov dword [esp], section..ndata
call fcn.0040752a
mov eax, dword [ebp - 0x28]
push edx
push edx
mov dword [esp + 4], eax
mov dword [esp], 0x40cc50
call fcn.0040761b
push eax
push eax
mov dword [esp + 4], 0x40d050
mov dword [esp], section..ndata
call fcn.0040752a
mov eax, dword [ebp - 0x3c]
sar eax, 3
push edi
push edi
mov dword [esp + 4], eax
mov dword [esp], 0x40cc50
call fcn.00408071
cmp eax, 4
push ecx
push ecx
je 0x401b3b
cmp eax, 5
jne 0x401c2c
inc dword [0x425c50]
xor al, al
jmp case.0x4016bc.2
mov dword [esp + 4], 0x40c850
mov dword [esp], 0xfffffffa
call fcn.00404690
jmp 0x402a81
mov dword [esp + 4], esi
mov dword [esp], 0xffffffea
call fcn.00404690
mov eax, dword [ebp - 0x34]
inc dword [0x425c7c]
push edx
push edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00403952
dec dword [0x425c7c]
sub esp, 0x10
mov ebx, eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x401c93
cmp dword [ebp - 0x2c], 0xffffffff
je 0x401cb1
lea eax, [ebp - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
test ebx, ebx
push eax
jns case.0x4016bc.65
cmp ebx, 0xfffffffe
jne 0x401cef
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x40c850
call fcn.0040761b
push edi
push edi
mov dword [esp + 4], esi
mov dword [esp], 0x40c850
call fcn.00407496
jmp 0x401d03
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x40c850
call fcn.0040761b
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], 0x40c850
jmp 0x402a7c
xor eax, eax
jmp 0x401d5f
mov eax, 0x31
call fcn.00401447
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408071
test eax, eax
push ecx
push ecx
je 0x4034fb
cmp eax, dword [ebp - 0x34]
je 0x401f22
cmp eax, dword [ebp - 0x2c]
jne case.0x4016bc.65
mov eax, dword [ebp - 0x28]
jmp case.0x4016bc.2
mov eax, 0xfffffff0
call fcn.00401447
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407daf
jmp 0x40346e
mov eax, 1
call fcn.00401447
mov dword [esp], eax
call fcn.004074a2
jmp 0x4023cc
mov eax, 2
call fcn.00401496
mov edi, eax
mov eax, 3
call fcn.00401496
mov ecx, eax
mov eax, 1
mov dword [ebp - 0x19c], ecx
call fcn.00401447
test edi, edi
mov edx, eax
mov byte [esi + section..ndata], 0
setne byte [ebp - 0x18c]
mov ecx, dword [ebp - 0x19c]
jne 0x401ddb
cmp dword [ebp - 0x34], 0
jne case.0x4016bc.65
mov dword [esp], edx
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x19c], ecx
call fcn.004074a2
mov ecx, dword [ebp - 0x19c]
push edx
test ecx, ecx
mov edx, dword [ebp - 0x198]
jns 0x401e08
add ecx, eax
js case.0x4016bc.65
cmp ecx, eax
jle 0x401e0e
mov ecx, eax
add edx, ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.0040752a
cmp byte [ebp - 0x18c], 0
push eax
push eax
je case.0x4016bc.65
test edi, edi
jns 0x401e40
mov dword [esp], ebx
call fcn.004074a2
add edi, eax
push ebx
jns 0x401e40
xor edi, edi
jmp 0x401e4c
cmp edi, 0x3ff
jg case.0x4016bc.65
mov byte [edi + esi + section..ndata], 0
jmp case.0x4016bc.65
mov eax, 0x20
call fcn.00401447
mov ebx, eax
mov eax, 0x31
call fcn.00401447
cmp dword [ebp - 0x2c], 0
jne 0x401e83
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_lstrcmpiA
jmp 0x401e8f
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrcmpA
test eax, eax
push ecx
push ecx
jne 0x401f22
jmp 0x40222d
mov eax, 1
call fcn.00401447
mov dword [esp + 8], 0x400
mov edi, eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
sub esp, 0xc
test eax, eax
je 0x401edd
cmp dword [ebp - 0x34], 0
je 0x401eeb
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.KERNEL32.dll_lstrcmpA
test eax, eax
push edx
push edx
jne 0x401eeb
mov byte [esi + section..ndata], 0
mov edi, 1
jmp 0x401eed
xor edi, edi
mov byte [ebx + 0x3ff], 0
jmp 0x403500
xor eax, eax
call fcn.00401496
mov ebx, eax
mov eax, 1
call fcn.00401496
cmp dword [ebp - 0x28], 0
jne 0x401f1e
cmp ebx, eax
jl 0x401f22
jle 0x40222d
jmp 0x401f30
cmp ebx, eax
jae 0x401f2a
mov eax, dword [ebp - 0x30]
jmp case.0x4016bc.2
jbe 0x40222d
mov eax, dword [ebp - 0x2c]
jmp case.0x4016bc.2
mov eax, 1
xor edi, edi
call fcn.00401496
mov esi, eax
mov eax, 2
call fcn.00401496
cmp dword [ebp - 0x30], 0xc
mov ecx, eax
ja case.default.0x401f5b
mov eax, dword [ebp - 0x30]
jmp dword [eax*4 + 0x40b10c]
add esi, ecx
jmp 0x401f6d
sub esi, ecx
jmp 0x401f6d
imul esi, ecx
xor edi, edi
jmp case.default.0x401f5b
test ecx, ecx
je 0x401fc1
mov eax, esi
cdq
idiv ecx
mov esi, eax
jmp 0x401f6d
or esi, ecx
jmp 0x401f6d
and esi, ecx
jmp 0x401f6d
xor esi, ecx
jmp 0x401f6d
test esi, esi
sete al
jmp 0x401f96
or ecx, esi
setne al
movzx esi, al
jmp 0x401f6d
test esi, esi
setne al
test ecx, ecx
setne dl
movzx esi, dl
and esi, eax
jmp 0x401f6d
test ecx, ecx
je 0x401fc1
mov eax, esi
cdq
idiv ecx
mov esi, edx
jmp 0x401f6d
shl esi, cl
jmp 0x401f6d
sar esi, cl
jmp 0x401f6d
xor esi, esi
mov edi, 1
mov dword [esp + 4], esi
jmp 0x402202
mov eax, 1
call fcn.00401447
mov esi, eax
mov eax, 2
call fcn.00401496
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
jmp case.0x4016bc.65
mov eax, dword [ebp - 0x34]
mov esi, dword [0x40c840]
test eax, eax
jne 0x40200d
jmp 0x402066
mov esi, dword [esi]
test eax, eax
je 0x40201b
dec eax
test esi, esi
jne 0x40200b
jmp 0x402a5b
test esi, esi
je 0x402a5b
add esi, 4
mov dword [esp], 0x40c850
mov dword [esp + 4], esi
call fcn.0040752a
mov eax, dword [0x40c840]
push edi
add eax, 4
push edi
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040752a
mov eax, dword [0x40c840]
add eax, 4
push esi
push esi
mov dword [esp + 4], 0x40c850
mov dword [esp], eax
jmp 0x4033a5
test edx, edx
je 0x402097
test esi, esi
je 0x4034fb
lea eax, [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040752a
push ebx
push ebx
mov eax, dword [esi]
mov dword [esp], esi
mov dword [0x40c840], eax
call sub.KERNEL32.dll_GlobalFree
jmp 0x40194a
mov dword [esp + 4], 0x404
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
mov eax, dword [ebp - 0x3c]
push ecx
push ecx
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.0040761b
mov eax, dword [0x40c840]
push edx
push edx
mov dword [ebx], eax
mov dword [0x40c840], ebx
jmp case.0x4016bc.65
mov eax, 3
call fcn.00401496
mov esi, eax
mov eax, 4
call fcn.00401496
test byte [ebp - 0x28], 1
mov edi, eax
je 0x4020ff
mov eax, 0x33
call fcn.00401447
mov esi, eax
test byte [ebp - 0x28], 2
je 0x402111
mov eax, 0x44
call fcn.00401447
mov edi, eax
cmp dword [ebp - 0x40], 0x21
jne 0x40219b
mov eax, 1
call fcn.00401496
mov edx, eax
mov eax, 2
mov dword [ebp - 0x198], edx
call fcn.00401496
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x198]
sar ecx, 2
mov dword [ebp - 0x18c], ecx
je 0x402185
lea ecx, [ebp - 0x1c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.USER32.dll_SendMessageTimeoutA
sub esp, 0x1c
test eax, eax
sete al
movzx edi, al
jmp 0x4021f1
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.USER32.dll_SendMessageA
jmp 0x4021e9
mov eax, 1
call fcn.00401447
mov edx, eax
mov eax, 0x12
mov dword [ebp - 0x198], edx
call fcn.00401447
xor ecx, ecx
mov edx, dword [ebp - 0x198]
cmp byte [eax], 0
setne cl
neg ecx
and eax, ecx
xor ecx, ecx
cmp byte [edx], 0
mov dword [esp + 0xc], eax
setne cl
neg ecx
and edx, ecx
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], esi
call sub.USER32.dll_FindWindowExA
sub esp, 0x10
mov dword [ebp - 0x1c], eax
xor edi, edi
cmp dword [ebp - 0x3c], 0
js 0x403500
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407551
push eax
push eax
jmp 0x403500
xor eax, eax
call fcn.00401496
mov dword [esp], eax
call sub.USER32.dll_IsWindow
test eax, eax
push edi
je 0x40222d
mov eax, dword [ebp - 0x38]
jmp case.0x4016bc.2
mov eax, dword [ebp - 0x34]
jmp case.0x4016bc.2
mov eax, 2
call fcn.00401496
mov esi, eax
mov eax, 1
call fcn.00401496
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
push esi
push esi
jmp 0x4023cd
mov ebx, dword [0x425ce0]
xor eax, eax
add ebx, edx
call fcn.00401496
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call sub.USER32.dll_SetWindowLongA
jmp 0x4034f4
mov esi, dword [ebp - 0x190]
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.USER32.dll_GetDlgItem
push ebx
push ebx
mov ebx, eax
lea eax, [ebp - 0x180]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.USER32.dll_GetClientRect
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x174]
xor eax, eax
imul edi, esi
imul esi, dword [ebp - 0x178]
push ecx
push ecx
call fcn.00401447
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 sub.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 sub.USER32.dll_SendMessageA
sub esp, 0x10
test eax, eax
je case.0x4016bc.65
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
jmp 0x40194a
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call sub.USER32.dll_GetDC
push edx
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call sub.GDI32.dll_GetDeviceCaps
mov esi, eax
mov eax, 2
push edi
push edi
call fcn.00401496
mov dword [esp + 4], esi
mov dword [esp + 8], 0x48
mov dword [esp], eax
call sub.KERNEL32.dll_MulDiv
neg eax
sub esp, 0xc
mov dword [0x40c800], eax
mov eax, 3
call fcn.00401496
mov byte [0x40c817], 1
mov dword [0x40c810], eax
mov eax, dword [ebp - 0x2c]
mov dl, al
mov dword [esp], 0x40c81c
and edx, 1
mov byte [0x40c814], dl
mov dl, al
and eax, 4
and edx, 2
mov byte [0x40c816], al
mov eax, dword [ebp - 0x38]
mov byte [0x40c815], dl
mov dword [esp + 4], eax
call fcn.0040761b
push esi
push esi
mov dword [esp], 0x40c800
call sub.GDI32.dll_CreateFontIndirectA
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x403469
xor eax, eax
call fcn.00401496
mov ebx, eax
mov eax, 1
call fcn.00401496
cmp dword [ebp - 0x30], 0
jne 0x402403
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.USER32.dll_ShowWindow
jmp 0x40346e
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.USER32.dll_EnableWindow
jmp 0x40346e
xor eax, eax
call fcn.00401447
mov ebx, eax
mov eax, 0x31
call fcn.00401447
mov edi, eax
mov eax, 0x22
call fcn.00401447
mov esi, eax
mov eax, 0x15
call fcn.00401447
mov dword [esp], 0xffffffec
call fcn.00401428
xor eax, eax
push edx
mov edx, dword [ebp - 0x190]
cmp byte [esi], 0
setne al
neg eax
and esi, eax
xor eax, eax
cmp byte [ebx], 0
mov dword [esp + 0x10], 0x42e800
setne al
neg eax
and ebx, eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], edx
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
cmp eax, 0x20
jle 0x4034fb
jmp case.0x4016bc.65
xor eax, eax
call fcn.00401447
mov dword [esp], 0xffffffeb
mov ebx, eax
mov dword [esp + 4], eax
call fcn.00404690
push eax
push eax
mov dword [esp], ebx
call fcn.0040811c
mov ebx, eax
test eax, eax
push edi
je 0x4034fb
cmp dword [ebp - 0x34], 0
jne 0x4024e1
jmp 0x402535
mov dword [esp], 0xf
call fcn.0040725d
push esi
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0x102
push ecx
push ecx
je 0x4024d4
lea eax, [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetExitCodeProcess
cmp dword [ebp - 0x38], 0
push edx
push edx
js 0x40252a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00407551
push eax
push eax
jmp 0x402535
mov edi, 1
cmp dword [ebp - 0x1c], 0
jne 0x402537
xor edi, edi
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
jmp 0x402d03
mov eax, 2
call fcn.00401447
mov dword [esp], eax
call fcn.004072f6
test eax, eax
push edi
mov edi, eax
je 0x40257c
mov esi, dword [ebp - 0x18c]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407551
push esi
push esi
mov eax, dword [edi + 0x18]
jmp 0x4023cd
mov eax, dword [ebp - 0x194]
mov byte [esi + section..ndata], 0
mov byte [eax + section..ndata], 0
jmp 0x4034fb
mov eax, 0xffffffee
call fcn.00401447
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x190]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov byte [esi + section..ndata], 0
mov edi, eax
push ecx
push ecx
mov ecx, dword [ebp - 0x194]
test eax, eax
mov byte [ecx + section..ndata], 0
je 0x4034fb
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
test eax, eax
push edx
push edx
je 0x4034fb
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.VERSION.dll_GetFileVersionInfoA
sub esp, 0x10
test eax, eax
je 0x402672
lea eax, [ebp - 0x24]
mov dword [esp + 4], 0x40b000
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.VERSION.dll_VerQueryValueA
sub esp, 0x10
test eax, eax
je 0x402672
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407551
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18c]
push edi
push edi
mov eax, dword [eax + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00407551
xor edi, edi
push ebx
push ebx
jmp 0x402677
mov edi, 1
mov dword [esp], esi
call sub.KERNEL32.dll_GlobalFree
jmp 0x402d03
cmp dword [0x425c88], 0
js 0x40278d
mov eax, 0xfffffff0
call fcn.00401447
mov edi, eax
mov eax, 1
call fcn.00401447
cmp dword [ebp - 0x2c], 0
mov esi, eax
je 0x4026be
mov dword [esp], edi
call sub.KERNEL32.dll_GetModuleHandleA
mov ebx, eax
test eax, eax
push ecx
jne 0x4026e3
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.KERNEL32.dll_LoadLibraryExA
sub esp, 0xc
test eax, eax
je 0x402781
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
test eax, eax
push edx
push edx
je 0x402742
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x402713
mov dword [esp], eax
call fcn.00401428
push eax
call edi
test eax, eax
setne al
movzx edi, al
jmp 0x402759
mov ecx, dword [ebp - 0x190]
mov dword [esp + 0x10], 0x40a000
mov dword [esp + 0xc], 0x40c840
mov dword [esp + 8], 0x429000
mov dword [esp + 4], 0x400
mov dword [esp], ecx
call edi
xor edi, edi
jmp 0x402759
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.00404690
push edi
push edi
mov edi, 1
cmp dword [ebp - 0x30], 0
jne 0x403500
mov dword [esp], ebx
call fcn.004045bc
test eax, eax
push esi
je 0x403500
mov dword [esp], ebx
call sub.KERNEL32.dll_FreeLibrary
jmp 0x402d03
mov dword [esp], 0xfffffff6
jmp 0x40297d
mov dword [esp], 0xffffffe7
jmp 0x40297d
mov eax, 0xfffffff0
call fcn.00401447
mov dword [ebp - 0x194], eax
mov eax, 0xffffffdf
call fcn.00401447
mov edi, eax
mov eax, 2
call fcn.00401447
mov dword [ebp - 0x190], eax
mov eax, 0xffffffcd
call fcn.00401447
mov esi, eax
mov eax, 0x45
call fcn.00401447
mov dword [esp], edi
mov dword [ebp - 0x18c], eax
call fcn.00407170
test eax, eax
push ecx
jne 0x4027f5
mov al, 0x21
call fcn.00401447
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x40b6bc
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40b5ac
call sub.OLE32.dll_CoCreateInstance
sub esp, 0x14
test eax, eax
js 0x402976
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40ba9c
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x402966
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x50]
mov ebx, eax
mov eax, dword [ebp - 0x24]
push edx
push edx
mov edx, dword [eax]
mov dword [esp + 4], 0x42e800
mov dword [esp], eax
call dword [edx + 0x24]
movzx edx, byte [ebp - 0x2b]
push eax
test edx, edx
push eax
je 0x402892
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0x3c]
push edi
push edi
mov eax, dword [ebp - 0x24]
movzx ecx, word [ebp - 0x2a]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
push ecx
push ecx
cmp byte [esi], 0
je 0x4028c6
mov eax, dword [ebp - 0x24]
movzx ecx, byte [ebp - 0x2c]
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 - 0x24]
mov esi, dword [ebp - 0x190]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18c]
push edx
push edx
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 0x40295a
mov esi, dword [ebp - 0x194]
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x40c000
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_MultiByteToWideChar
mov ebx, 0x80004005
sub esp, 0x18
test eax, eax
je 0x40295a
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40c000
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push edi
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
test ebx, ebx
push esi
jns 0x402988
mov dword [esp], 0xfffffff0
call fcn.00401428
push ecx
jmp 0x4034fb
mov dword [esp], 0xfffffff4
jmp 0x401945
xor eax, eax
call fcn.00401447
mov ebx, eax
mov eax, 0x11
call fcn.00401447
mov esi, eax
mov eax, 0x23
call fcn.00401447
mov dword [esp], ebx
mov edi, eax
call fcn.004072f6
test eax, eax
push edx
je 0x402a39
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x17c], 2
mov dword [ebp - 0x180], eax
mov dword [esp], ebx
call fcn.004074a2
push ecx
mov byte [ebx + eax + 1], 0
mov dword [esp], esi
call fcn.004074a2
push edx
mov byte [esi + eax + 1], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x166], edi
mov word [ebp - 0x170], ax
mov dword [esp + 4], edi
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], esi
mov dword [esp], 0
call fcn.00404690
push eax
push eax
lea eax, [ebp - 0x180]
mov dword [esp], eax
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
push edi
je case.0x4016bc.65
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.00404690
push esi
push esi
jmp 0x4034fb
cmp eax, 0xbadf00d
je 0x402a88
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.0040761b
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00408071
push ecx
push ecx
jmp 0x4016f8
inc dword [0x425c5c]
jmp case.0x4016bc.65
xor ebx, ebx
test eax, eax
je 0x402aa2
xor eax, eax
call fcn.00401447
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x38], 0
je 0x402ab6
mov eax, 0x11
call fcn.00401447
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x402aca
mov eax, 0x22
call fcn.00401447
mov edi, eax
mov eax, 0xffffffcd
call fcn.00401447
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_WritePrivateProfileStringA
sub esp, 0x10
jmp 0x402f33
mov eax, 1
mov dword [ebp - 0x20], 0x7e4e21
call fcn.00401447
mov edi, eax
mov eax, 0x12
call fcn.00401447
mov edx, eax
mov eax, 0xffffffdd
mov dword [ebp - 0x198], edx
call fcn.00401447
mov edx, dword [ebp - 0x198]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov eax, dword [esi + section..ndata]
sub esp, 0x18
cmp eax, dword [ebp - 0x20]
jne case.0x4016bc.65
jmp 0x40314f
cmp dword [ebp - 0x2c], 0
jne 0x402b9e
mov eax, 2
call fcn.004014e6
mov ebx, eax
test eax, eax
je 0x4034fb
mov eax, 0x33
call fcn.00401447
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegDeleteValueA
mov esi, eax
push edx
push edx
mov dword [esp], ebx
call sub.ADVAPI32.DLL_RegCloseKey
push edi
jmp 0x402bc8
mov eax, 0x22
call fcn.00401447
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x402bbe
mov eax, dword [0x425c4c]
sub eax, 0x7fffffff
and ecx, 2
call fcn.0040154f
mov esi, eax
test esi, esi
je case.0x4016bc.65
jmp 0x4034fb
mov esi, eax
test eax, eax
jne 0x402be7
mov esi, dword [0x425c4c]
sub esi, 0x7fffffff
mov edx, dword [ebp - 0x28]
mov eax, 2
mov dword [ebp - 0x18c], edx
mov ebx, dword [ebp - 0x2c]
call fcn.00401447
mov edi, eax
mov eax, 0x11
call fcn.00401447
lea edx, [ebp - 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [0x425c78]
or edx, 2
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
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
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0x24
test eax, eax
jne 0x4034fb
cmp ebx, 1
jne 0x402c78
mov al, 0x23
call fcn.00401447
mov dword [esp], 0x40d050
call fcn.004074a2
inc eax
push esi
jmp 0x402cc0
cmp ebx, 4
jne 0x402c93
mov eax, 3
call fcn.00401496
mov dword [0x40d050], eax
mov eax, 4
jmp 0x402cc0
xor eax, eax
cmp ebx, 3
jne 0x402cc0
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], 0xc00
mov dword [esp + 8], 0x40d050
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403952
sub esp, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], edi
mov dword [esp + 0x10], 0x40d050
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
setne al
movzx edi, al
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
jmp 0x403500
mov eax, 0x20019
call fcn.004014e6
mov dword [ebp - 0x18c], eax
mov eax, 0x33
call fcn.00401447
mov byte [esi + section..ndata], 0
cmp dword [ebp - 0x18c], 0
je 0x4034fb
lea edx, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x20], 0x3ff
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x402d83
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x402db1
cmp eax, 4
je 0x402d91
cmp eax, 2
je 0x402db1
mov byte [esi + section..ndata], 0
mov edi, 1
jmp 0x402dbf
cmp dword [ebp - 0x2c], 0
sete al
movzx edi, al
mov eax, dword [esi + section..ndata]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407551
push ecx
push ecx
jmp 0x402dbf
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
mov byte [esi + eax + section..ndata], 0
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
jmp 0x402cfe
mov eax, 0x20019
call fcn.004014e6
mov edi, eax
mov eax, 3
call fcn.00401496
mov byte [esi + section..ndata], 0
test edi, edi
je 0x4034fb
mov dword [ebp - 0x24], 0x3ff
cmp dword [ebp - 0x2c], 0
je 0x402e1c
mov dword [esp + 0xc], 0x3ff
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.ADVAPI32.DLL_RegEnumKeyA
sub esp, 0x10
jmp 0x402e5e
lea edx, [ebp - 0x24]
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 sub.ADVAPI32.DLL_RegEnumValueA
sub esp, 0x20
test eax, eax
jne 0x4034fb
mov byte [ebx + 0x3ff], 0
mov dword [esp], edi
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x40194a
cmp byte [esi + section..ndata], 0
je case.0x4016bc.65
mov dword [esp], ebx
call fcn.004071c2
push edx
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x40194a
mov eax, 0xffffffed
call fcn.00401447
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407a12
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x4023cd
jmp 0x40314f
cmp dword [ebp - 0x34], 0
je 0x402ee2
mov eax, 1
mov edi, 1
call fcn.00401496
mov byte [0x40cc50], al
jmp 0x402ef7
mov eax, 0x11
call fcn.00401447
mov dword [esp], eax
call fcn.004074a2
push edi
mov edi, eax
cmp byte [esi + section..ndata], 0
je 0x4034fb
mov dword [esp], ebx
call fcn.004071c2
lea edx, [ebp - 0x24]
push esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x40cc50
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
jmp 0x401b97
mov eax, 2
call fcn.00401496
test eax, eax
jle case.0x4016bc.65
mov dword [ebp - 0x190], eax
cmp eax, 0x3ff
jle 0x402f63
mov dword [ebp - 0x190], 0x3ff
xor edi, edi
cmp byte [esi + section..ndata], 0
je 0x403060
mov dword [esp], ebx
call fcn.004071c2
mov esi, eax
lea edx, [ebp - 0x24]
push ebx
lea ecx, [ebp - 0x1c]
xor ebx, ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x19c], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp], esi
call sub.KERNEL32.dll_ReadFile
mov edx, dword [ebp - 0x198]
sub esp, 0x14
mov ecx, dword [ebp - 0x19c]
test eax, eax
je 0x403060
cmp dword [ebp - 0x24], 1
jne 0x403060
cmp dword [ebp - 0x30], 0
je 0x402ff5
movzx eax, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00407551
push ecx
push ecx
jmp 0x403506
cmp bl, 0xa
je 0x402fff
cmp bl, 0xd
jne 0x403043
mov al, byte [ebp - 0x1c]
cmp bl, al
je 0x40300e
cmp al, 0xa
je 0x403033
cmp al, 0xd
je 0x403033
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
jmp 0x403060
mov esi, dword [ebp - 0x194]
mov byte [edi + esi + section..ndata], al
inc edi
jmp 0x403060
mov eax, dword [ebp - 0x18c]
mov bl, byte [ebp - 0x1c]
mov byte [eax + edi], bl
inc edi
test bl, bl
je 0x403060
cmp edi, dword [ebp - 0x190]
jl 0x402f85
mov edx, dword [ebp - 0x194]
test edi, edi
mov byte [edi + edx + section..ndata], 0
jmp 0x401b97
cmp byte [esi + section..ndata], 0
je case.0x4016bc.65
mov eax, 2
mov edi, dword [ebp - 0x30]
call fcn.00401496
mov dword [esp], ebx
mov esi, eax
call fcn.004071c2
push edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
cmp dword [ebp - 0x38], 0
jns 0x4033af
jmp case.0x4016bc.65
cmp byte [esi + section..ndata], 0
je case.0x4016bc.65
mov dword [esp], ebx
call fcn.004071c2
push ebx
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
jmp 0x40194a
mov eax, dword [ebp - 0x194]
cmp byte [eax + section..ndata], 0
je 0x40314f
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
call fcn.004071c2
lea edx, [ebp - 0x180]
push ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
push edx
push edx
je 0x40314f
jmp 0x40316f
mov eax, 2
call fcn.00401447
lea edx, [ebp - 0x180]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
push edi
push edi
jne 0x40315b
mov ecx, dword [ebp - 0x194]
mov byte [ecx + section..ndata], 0
mov byte [esi + section..ndata], 0
jmp 0x4034fb
mov esi, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407551
push esi
push esi
lea eax, [ebp - 0x154]
mov dword [esp], ebx
mov dword [esp + 4], eax
jmp 0x4033a5
mov eax, 0xfffffff0
call fcn.00401447
mov esi, eax
mov dword [esp], eax
call fcn.00407170
test eax, eax
push ebx
jne 0x4031a4
mov eax, 0xffffffed
call fcn.00401447
mov dword [esp], esi
call fcn.00407a6d
push ecx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407a12
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x403347
mov eax, dword [0x425d28]
mov dword [esp], 0x40
mov dword [ebp - 0x18c], eax
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GlobalAlloc
mov ebx, eax
test eax, eax
push edx
push edx
mov edx, 0xfffffd66
je 0x403325
mov dword [esp], 0
call fcn.004035e0
mov edx, dword [ebp - 0x18c]
push eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00403611
mov eax, dword [ebp - 0x34]
push ecx
push ecx
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
test eax, eax
push edx
push edx
mov edx, eax
je 0x4032cf
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x198], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403952
mov edx, dword [ebp - 0x198]
sub esp, 0x10
mov eax, edx
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x194], esi
jmp 0x4032b5
mov edx, dword [eax]
lea ecx, [eax + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov esi, dword [eax + 4]
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x19c], ecx
lea eax, [ebx + esi]
mov dword [esp], eax
call fcn.0040719e
mov edx, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x19c]
sub esp, 0xc
lea eax, [ecx + edx]
cmp byte [eax], 0
jne 0x40327c
mov edx, dword [ebp - 0x190]
mov esi, dword [ebp - 0x194]
mov dword [esp], edx
call sub.KERNEL32.dll_GlobalFree
push eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalFree
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], 0xffffffff
call fcn.00403952
sub esp, 0x10
mov edx, eax
mov dword [ebp - 0x198], edx
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
push edx
mov edx, dword [ebp - 0x198]
test edx, edx
js 0x403347
mov eax, 0xfffffff3
xor edi, edi
jmp 0x40335a
mov dword [esp], esi
call sub.KERNEL32.dll_DeleteFileA
mov edi, 1
push eax
mov eax, 0xffffffef
mov dword [esp], eax
call fcn.00401428
jmp 0x402d03
xor eax, eax
call fcn.00401496
mov esi, eax
cmp eax, dword [0x425cc4]
jae 0x4034fb
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x34]
add ebx, dword [0x425cc0]
cmp eax, 0
jl 0x4033c1
mov eax, dword [ebx + eax*4]
jne 0x4033af
add ebx, 0x18
mov edx, dword [ebp - 0x18c]
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.0040752a
jmp 0x40346e
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov dword [esp], ecx
jmp 0x403469
not eax
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4033d9
mov eax, 1
call fcn.00401496
mov dword [ebp - 0x38], eax
jmp 0x4033f4
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
call fcn.0040761b
push edi
push edi
or dword [ebx + 8], 0x100
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x30], 0
je case.0x4016bc.65
mov dword [esp], esi
call fcn.0040123c
jmp 0x40194a
xor eax, eax
call fcn.00401496
cmp eax, 0x1f
ja 0x4034fb
cmp dword [ebp - 0x30], 0
je 0x403475
cmp dword [ebp - 0x34], 0
je 0x40344f
mov dword [esp], eax
call fcn.00401353
push esi
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004012a3
jmp 0x40346e
mov dword [esp], 0
call fcn.0040139c
mov esi, dword [ebp - 0x18c]
push ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407551
push ecx
push ecx
jmp case.0x4016bc.65
cmp dword [ebp - 0x34], 0
mov edx, dword [0x425ca8]
lea eax, [eax + 0x24]
je 0x40348d
mov ecx, dword [ebp - 0x38]
mov dword [edx + eax*4 + 4], ecx
jmp case.0x4016bc.65
mov eax, dword [edx + eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.0040761b
jmp 0x40346e
and eax, dword [0x422170]
mov edx, dword [ebp - 0x190]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xb
mov dword [esp], edx
call sub.USER32.dll_SendMessageA
sub esp, 0x10
cmp dword [ebp - 0x3c], 0
je case.0x4016bc.65
mov ecx, dword [ebp - 0x190]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ecx
call sub.USER32.dll_InvalidateRect
sub esp, 0xc
xor edi, edi
jmp 0x403500
mov edi, 1
add dword [0x425c50], edi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret