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
mov esi, eax
push ebx
sub esp, 0x1cc
mov eax, dword [0x4308d4]
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
shl ecx, 0xa
mov esi, eax
mov dword [ebp - 0x194], ecx
add ecx, section..ndata
mov dword [ebp - 0x18c], ecx
lea ecx, [ebp - 0x3c]
mov dword [0x40dc40], ecx
mov ecx, dword [ebp - 0x40]
shl esi, 0xa
lea ebx, [esi + section..ndata]
sub ecx, 2
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 [0x4310f4]
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.0040350c
push edx
push edx
jmp case.0x4016bc.2
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004046b8
jmp 0x40346a
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 eax, dword [ebp - 0x190]
mov dword [esp], eax
call sub.USER32.dll_SetForegroundWindow
jmp 0x40194a
cmp dword [ebp - 0x34], 0
jne 0x401795
mov edx, dword [eax*4 + 0x4307d4]
mov ebx, dword [ebp - 0x3c]
mov dword [eax*4 + 0x430794], edx
mov eax, 1
call fcn.00401496
mov dword [ebx*4 + 0x4307d4], eax
jmp case.0x4016bc.65
mov edx, dword [eax*4 + 0x430794]
mov dword [eax*4 + 0x4307d4], edx
jmp case.0x4016bc.65
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx*4 + 0x4307d4]
cmp ecx, 1
sbb eax, eax
and ecx, dword [ebp - 0x30]
and eax, 4
mov eax, dword [ebp + eax - 0x3c]
mov dword [edx*4 + 0x4307d4], ecx
jmp case.0x4016bc.2
mov eax, dword [edx*4 + 0x4307d4]
jmp 0x4023cd
mov eax, dword [0x431104]
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 [0x431114]
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.00407395
test eax, eax
push esi
je 0x4018b8
mov dword [ebp - 0x18c], ebx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call fcn.0040736c
push ebx
mov esi, eax
push ebx
mov bl, byte [eax]
mov byte [eax], 0
mov edx, dword [ebp - 0x18c]
mov dword [esp + 4], 0
mov dword [esp], edx
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 ecx, dword [ebp - 0x18c]
mov dword [esp], ecx
call sub.KERNEL32.dll_GetFileAttributesA
and eax, 0x10
cmp eax, 1
push edx
adc edi, 0
test bl, bl
mov byte [esi], 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], 0x439800
call fcn.0040756a
push ecx
push ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_SetCurrentDirectoryA
jmp 0x402d0a
mov dword [esp], 0xfffffff5
jmp 0x403359
xor eax, eax
call fcn.00401447
mov dword [esp], eax
call fcn.00407336
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 0x4034f7
mov dword [esp], ebx
call fcn.00407336
test eax, eax
push edi
je 0x4034f7
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00407b44
push esi
push esi
mov dword [esp], 0xffffffe4
jmp 0x401945
xor eax, eax
call fcn.00401447
mov dword [esp + 4], 0x400
mov ebx, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.KERNEL32.dll_GetFullPathNameA
sub esp, 0x10
test eax, eax
jne 0x4019c2
mov edx, dword [ebp - 0x194]
mov byte [edx + 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.00407336
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.0040756a
push ecx
push ecx
jmp 0x401a05
mov ecx, dword [ebp - 0x194]
mov byte [ecx + section..ndata], 0
mov edi, 1
jmp 0x401a07
xor edi, edi
cmp dword [ebp - 0x34], 0
jne 0x4034fc
mov eax, dword [ebp - 0x18c]
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
mov dword [esp], eax
call sub.KERNEL32.dll_GetShortPathNameA
sub esp, 0xc
jmp 0x4034fc
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], 0
mov dword [esp + 4], eax
call sub.KERNEL32.dll_SearchPathA
sub esp, 0x18
test eax, eax
jmp 0x402b5b
mov eax, 0xffffffef
call fcn.00401447
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407930
push edx
push edx
jmp 0x402f3a
mov eax, 0x31
call fcn.00401447
mov ebx, dword [ebp - 0x3c]
and ebx, 7
mov esi, eax
mov dword [esp], eax
call fcn.004071b0
test eax, eax
push edi
je 0x401abe
mov dword [esp + 4], esi
mov dword [esp], 0x40c840
call fcn.0040756a
jmp 0x401ae9
mov dword [esp + 4], 0x439800
mov dword [esp], 0x40c840
call fcn.0040756a
push ecx
push ecx
mov dword [esp], eax
call fcn.00407526
push edx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004074d6
push eax
push eax
mov dword [esp], 0x40c840
call fcn.00407407
cmp ebx, 2
push edi
jle 0x401b37
mov dword [esp], 0x40c840
call fcn.00407336
mov edx, eax
xor eax, eax
test edx, edx
push ecx
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], 0x40c840
call fcn.00407aa9
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], 0x40c840
call fcn.00407a4e
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
jne 0x401c45
test ebx, ebx
je 0x401ba2
mov dword [esp + 4], esi
mov dword [esp], 0xffffffe2
call fcn.004046b8
cmp ebx, 2
push esi
push esi
jne case.0x4016bc.65
jmp 0x4034f7
mov dword [esp + 4], section..ndata
mov dword [esp], 0x40d040
call fcn.0040756a
push ecx
push ecx
mov dword [esp + 4], 0x40c840
mov dword [esp], section..ndata
call fcn.0040756a
mov eax, dword [ebp - 0x28]
push edx
push edx
mov dword [esp + 4], eax
mov dword [esp], 0x40cc40
call fcn.0040765b
push eax
push eax
mov dword [esp + 4], 0x40d040
mov dword [esp], section..ndata
call fcn.0040756a
mov eax, dword [ebp - 0x3c]
sar eax, 3
push edi
push edi
mov dword [esp + 4], eax
mov dword [esp], 0x40cc40
call fcn.004080a7
cmp eax, 4
push ecx
push ecx
je 0x401b3b
cmp eax, 5
jne 0x401c2c
inc dword [0x4307dc]
xor al, al
jmp case.0x4016bc.2
mov dword [esp + 4], 0x40c840
mov dword [esp], 0xfffffffa
call fcn.004046b8
jmp 0x402a88
mov dword [esp + 4], esi
mov dword [esp], 0xffffffea
call fcn.004046b8
mov eax, dword [ebp - 0x34]
inc dword [0x430808]
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.0040394b
dec dword [0x430808]
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 + 0xc], eax
mov dword [esp + 8], 0
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], 0x40c840
call fcn.0040765b
push edi
push edi
mov dword [esp + 4], esi
mov dword [esp], 0x40c840
call fcn.004074d6
jmp 0x401d03
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x40c840
call fcn.0040765b
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], 0x40c840
jmp 0x402a83
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.004080a7
test eax, eax
push ecx
push ecx
je 0x4034f7
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.00407de5
jmp 0x40346a
mov eax, 1
call fcn.00401447
mov dword [esp], eax
call fcn.004074e2
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 ecx, dword [ebp - 0x19c]
mov byte [esi + section..ndata], 0
setne byte [ebp - 0x18c]
mov edx, eax
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.004074e2
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
push edx
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 + 4], edx
mov dword [esp], ebx
call fcn.0040756a
cmp byte [ebp - 0x18c], 0
push eax
push eax
je case.0x4016bc.65
test edi, edi
jns 0x401e40
mov dword [esp], ebx
call fcn.004074e2
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 dword [esp + 4], ebx
mov edi, eax
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 0x4034fc
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], ebx
mov dword [esp + 8], eax
call sub.USER32.dll_wsprintfA
jmp case.0x4016bc.65
mov eax, dword [ebp - 0x34]
mov esi, dword [0x40c83c]
test eax, eax
jne 0x40200d
jmp 0x402066
mov esi, dword [esi]
test eax, eax
je 0x40201b
dec eax
test esi, esi
jne 0x40200b
jmp 0x402a62
test esi, esi
je 0x402a62
add esi, 4
mov dword [esp + 4], esi
mov dword [esp], 0x40c840
call fcn.0040756a
mov eax, dword [0x40c83c]
add eax, 4
push edi
push edi
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040756a
mov eax, dword [0x40c83c]
add eax, 4
push esi
push esi
mov dword [esp + 4], 0x40c840
mov dword [esp], eax
jmp 0x4033a1
test edx, edx
je 0x402097
test esi, esi
je 0x4034f7
lea eax, [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040756a
push ebx
push ebx
mov eax, dword [esi]
mov dword [esp], esi
mov dword [0x40c83c], 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.0040765b
mov eax, dword [0x40c83c]
push edx
push edx
mov dword [ebx], eax
mov dword [0x40c83c], 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 + 0x18], ecx
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 0x14], ecx
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
mov dword [esp + 4], edi
setne cl
neg ecx
and edx, ecx
mov dword [esp + 8], edx
mov dword [esp], esi
call sub.USER32.dll_FindWindowExA
sub esp, 0x10
xor edi, edi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x3c], 0
js 0x4034fc
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407591
push eax
push eax
jmp 0x4034fc
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 [0x43086c]
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 0x4034f0
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], edx
mov dword [esp], eax
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]
xor eax, eax
mov edi, dword [ebp - 0x174]
imul edi, esi
push ecx
push ecx
imul esi, dword [ebp - 0x178]
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], 0
mov dword [esp + 4], eax
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 edx, dword [ebp - 0x190]
mov dword [esp], edx
call sub.USER32.dll_GetDC
push edx
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call sub.GDI32.dll_GetDeviceCaps
push edi
mov esi, eax
push edi
mov eax, 2
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 [esp], 0x40c81c
mov dword [0x40c810], eax
mov eax, dword [ebp - 0x2c]
mov dl, al
and edx, 1
mov byte [0x40c814], dl
mov dl, al
and eax, 4
mov byte [0x40c816], al
mov eax, dword [ebp - 0x38]
and edx, 2
mov byte [0x40c815], dl
mov dword [esp + 4], eax
call fcn.0040765b
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 0x403465
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 0x40346a
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.USER32.dll_EnableWindow
jmp 0x40346a
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
mov ecx, dword [ebp - 0x190]
push edx
cmp byte [esi], 0
setne al
neg eax
and esi, eax
xor eax, eax
cmp byte [ebx], 0
mov dword [esp + 0x10], 0x439800
mov dword [esp + 0xc], esi
setne al
neg eax
and ebx, eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov dword [esp + 0x14], eax
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
cmp eax, 0x20
jle 0x4034f7
jmp case.0x4016bc.65
xor eax, eax
call fcn.00401447
mov dword [esp], 0xffffffeb
mov ebx, eax
mov dword [esp + 4], eax
call fcn.004046b8
push eax
push eax
mov dword [esp], ebx
call fcn.00408152
test eax, eax
mov ebx, eax
push edi
je 0x4034f7
cmp dword [ebp - 0x34], 0
jne 0x4024e1
jmp 0x402535
mov dword [esp], 0xf
call fcn.0040729d
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 + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetExitCodeProcess
cmp dword [ebp - 0x38], 0
push edx
push edx
js 0x40252a
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.00407591
push eax
push eax
jmp 0x402535
cmp dword [ebp - 0x1c], 0
mov edi, 1
jne 0x402537
xor edi, edi
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
jmp 0x402d0a
mov eax, 2
call fcn.00401447
mov dword [esp], eax
call fcn.00407336
test eax, eax
push edi
mov edi, eax
je 0x40257c
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00407591
push esi
push esi
mov eax, dword [edi + 0x18]
jmp 0x4023cd
mov ecx, dword [ebp - 0x194]
mov byte [esi + section..ndata], 0
mov byte [ecx + section..ndata], 0
jmp 0x4034f7
mov eax, 0xffffffee
call fcn.00401447
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edx, dword [ebp - 0x194]
mov byte [esi + section..ndata], 0
mov byte [edx + section..ndata], 0
push ecx
test eax, eax
push ecx
mov edi, eax
je 0x4034f7
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
test eax, eax
mov esi, eax
push edx
push edx
je 0x4034f7
mov ecx, dword [ebp - 0x190]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], ecx
call sub.VERSION.dll_GetFileVersionInfoA
sub esp, 0x10
test eax, eax
je 0x402672
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1c]
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 0x402672
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407591
mov eax, dword [ebp - 0x1c]
push edi
push edi
mov eax, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.00407591
push ebx
push ebx
jmp 0x402677
mov edi, 1
mov dword [esp], esi
call sub.KERNEL32.dll_GlobalFree
jmp 0x402d0a
cmp dword [0x430814], 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
test eax, eax
mov ebx, 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
test eax, eax
mov edi, 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 edx, dword [ebp - 0x190]
mov dword [esp + 0x10], 0x40a000
mov dword [esp + 0xc], 0x40c83c
mov dword [esp + 8], 0x434000
mov dword [esp + 4], 0x400
mov dword [esp], edx
call edi
xor edi, edi
jmp 0x402759
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.004046b8
push edi
push edi
mov edi, 1
cmp dword [ebp - 0x30], 0
jne 0x4034fc
mov dword [esp], ebx
call fcn.004045e4
test eax, eax
push esi
je 0x4034fc
mov dword [esp], ebx
call sub.KERNEL32.dll_FreeLibrary
jmp 0x402d0a
mov dword [esp], 0xfffffff6
jmp 0x402984
mov dword [esp], 0xffffffe7
jmp 0x402984
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.004071b0
test eax, eax
push ecx
jne 0x4027f5
mov al, 0x21
call fcn.00401447
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40b7b8
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40b6a8
call sub.OLE32.dll_CoCreateInstance
sub esp, 0x14
test eax, eax
js 0x40297d
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40bb98
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
mov ebx, eax
js 0x40296d
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], 0x439800
mov dword [esp], eax
call dword [edx + 0x24]
mov edx, dword [ebp - 0x2c]
movzx edx, dh
test edx, edx
push eax
push eax
je 0x402894
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 0x4028cd
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax]
and ecx, 0xff
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 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 - 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 0x402961
mov eax, dword [ebp - 0x194]
mov ebx, 0x80004005
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x40c000
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
test eax, eax
je 0x402961
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 0x40298f
mov dword [esp], 0xfffffff0
call fcn.00401428
push ecx
jmp 0x4034f7
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.00407336
test eax, eax
push edx
je 0x402a40
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x17c], 2
mov dword [esp], ebx
mov dword [ebp - 0x180], edx
call fcn.004074e2
push ecx
mov byte [ebx + eax + 1], 0
mov dword [esp], esi
call fcn.004074e2
push edx
mov byte [esi + eax + 1], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x166], edi
mov dword [esp + 4], edi
mov dword [ebp - 0x178], ebx
mov word [ebp - 0x170], ax
mov dword [ebp - 0x174], esi
mov dword [esp], 0
call fcn.004046b8
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.004046b8
push esi
push esi
jmp 0x4034f7
cmp eax, 0xbadf00d
je 0x402a8f
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.0040765b
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.004080a7
push ecx
push ecx
jmp 0x4016f8
inc dword [0x4307e8]
jmp case.0x4016bc.65
xor ebx, ebx
test eax, eax
je 0x402aa9
xor eax, eax
call fcn.00401447
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x38], 0
je 0x402abd
mov eax, 0x11
call fcn.00401447
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x402ad1
mov eax, 0x22
call fcn.00401447
mov edi, eax
mov eax, 0xffffffcd
call fcn.00401447
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_WritePrivateProfileStringA
sub esp, 0x10
jmp 0x402f3a
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 + 0x10], 0x3ff
mov dword [esp + 0xc], ebx
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov eax, dword [esi + section..ndata]
sub esp, 0x18
cmp eax, dword [ebp - 0x20]
jne case.0x4016bc.65
jmp 0x403156
cmp dword [ebp - 0x2c], 0
jne 0x402ba5
mov eax, 2
call fcn.004014e6
test eax, eax
mov ebx, eax
je 0x4034f7
mov eax, 0x33
call fcn.00401447
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegDeleteValueA
push edx
mov esi, eax
push edx
mov dword [esp], ebx
call sub.ADVAPI32.DLL_RegCloseKey
push edi
jmp 0x402bcf
mov eax, 0x22
call fcn.00401447
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x402bc5
mov eax, dword [0x4307d8]
sub eax, 0x7fffffff
and ecx, 2
call fcn.0040154f
mov esi, eax
test esi, esi
je case.0x4016bc.65
jmp 0x4034f7
test eax, eax
mov esi, eax
jne 0x402bee
mov esi, dword [0x4307d8]
sub esi, 0x7fffffff
mov ecx, dword [ebp - 0x28]
mov eax, 2
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x18c], ecx
call fcn.00401447
mov edi, eax
mov eax, 0x11
call fcn.00401447
lea edx, [ebp - 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [0x430804]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
or edx, 2
mov dword [esp + 0x14], edx
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 0x4034f7
cmp ebx, 1
jne 0x402c7f
mov al, 0x23
call fcn.00401447
mov dword [esp], 0x40d040
call fcn.004074e2
inc eax
push esi
jmp 0x402cc7
cmp ebx, 4
jne 0x402c9a
mov eax, 3
call fcn.00401496
mov dword [0x40d040], eax
mov eax, 4
jmp 0x402cc7
xor eax, eax
cmp ebx, 3
jne 0x402cc7
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], 0xc00
mov dword [esp + 8], 0x40d040
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040394b
sub esp, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], edi
mov dword [esp + 0x10], 0x40d040
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
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 0x4034fc
mov eax, 0x20019
call fcn.004014e6
mov dword [ebp - 0x18c], eax
mov eax, 0x33
call fcn.00401447
cmp dword [ebp - 0x18c], 0
mov byte [esi + section..ndata], 0
je 0x4034f7
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x24]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x20], 0x3ff
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x402d8a
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x402db8
cmp eax, 4
je 0x402d98
cmp eax, 2
je 0x402db8
mov byte [esi + section..ndata], 0
mov edi, 1
jmp 0x402dc6
cmp dword [ebp - 0x2c], 0
mov dword [esp], ebx
sete al
movzx edi, al
mov eax, dword [esi + section..ndata]
mov dword [esp + 4], eax
call fcn.00407591
push ecx
push ecx
jmp 0x402dc6
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
mov byte [esi + eax + section..ndata], 0
mov ecx, dword [ebp - 0x18c]
mov dword [esp], ecx
jmp 0x402d05
mov eax, 0x20019
call fcn.004014e6
mov edi, eax
mov eax, 3
call fcn.00401496
test edi, edi
mov byte [esi + section..ndata], 0
je 0x4034f7
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x3ff
je 0x402e23
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 0x402e65
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 0x4034f7
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.00407202
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], eax
mov dword [esp + 4], edx
call fcn.00407a4e
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x4023cd
jmp 0x403156
cmp dword [ebp - 0x34], 0
je 0x402ee9
mov eax, 1
mov edi, 1
call fcn.00401496
mov byte [0x40cc40], al
jmp 0x402efe
mov eax, 0x11
call fcn.00401447
mov dword [esp], eax
call fcn.004074e2
push edi
mov edi, eax
cmp byte [esi + section..ndata], 0
je 0x4034f7
mov dword [esp], ebx
call fcn.00407202
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], 0x40cc40
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
cmp eax, 0x3ff
mov dword [ebp - 0x190], eax
jle 0x402f6a
mov dword [ebp - 0x190], 0x3ff
xor edi, edi
cmp byte [esi + section..ndata], 0
je 0x403067
mov dword [esp], ebx
call fcn.00407202
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push ebx
mov esi, eax
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]
mov ecx, dword [ebp - 0x19c]
sub esp, 0x14
test eax, eax
je 0x403067
cmp dword [ebp - 0x24], 1
jne 0x403067
cmp dword [ebp - 0x30], 0
je 0x402ffc
movzx eax, byte [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.00407591
push ecx
push ecx
jmp 0x403502
cmp bl, 0xa
je 0x403006
cmp bl, 0xd
jne 0x40304a
mov al, byte [ebp - 0x1c]
cmp bl, al
je 0x403015
cmp al, 0xa
je 0x40303a
cmp al, 0xd
je 0x40303a
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 0x403067
mov edx, dword [ebp - 0x194]
mov byte [edi + edx + section..ndata], al
inc edi
jmp 0x403067
mov bl, byte [ebp - 0x1c]
mov eax, dword [ebp - 0x18c]
mov byte [eax + edi], bl
inc edi
test bl, bl
je 0x403067
cmp edi, dword [ebp - 0x190]
jl 0x402f8c
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.00407202
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 0x4033ab
jmp case.0x4016bc.65
cmp byte [esi + section..ndata], 0
je case.0x4016bc.65
mov dword [esp], ebx
call fcn.00407202
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 0x403156
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
call fcn.00407202
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 0x403156
jmp 0x403176
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 0x403162
mov ecx, dword [ebp - 0x194]
mov byte [ecx + section..ndata], 0
mov byte [esi + section..ndata], 0
jmp 0x4034f7
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.00407591
push esi
push esi
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x4033a1
mov eax, 0xfffffff0
call fcn.00401447
mov esi, eax
mov dword [esp], eax
call fcn.004071b0
test eax, eax
push ebx
jne 0x4031ab
mov eax, 0xffffffed
call fcn.00401447
mov dword [esp], esi
call fcn.00407aa9
push ecx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407a4e
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x403343
mov edx, dword [0x4308b4]
mov dword [esp], 0x40
mov dword [ebp - 0x18c], edx
mov dword [esp + 4], edx
call sub.KERNEL32.dll_GlobalAlloc
test eax, eax
mov ebx, eax
push edx
push edx
mov edx, 0xfffffd66
je 0x403321
mov dword [esp], 0
call fcn.004035dc
mov ecx, dword [ebp - 0x18c]
push eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.0040360d
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 0x4032cb
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [ebp - 0x198], edx
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.0040394b
mov edx, dword [ebp - 0x198]
mov eax, edx
mov dword [ebp - 0x190], edx
sub esp, 0x10
jmp 0x4032b7
mov edx, dword [eax]
lea ecx, [eax + 8]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x19c], ecx
lea eax, [ebx + eax]
mov dword [esp], eax
call fcn.004071de
mov edx, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x19c]
lea eax, [ecx + edx]
sub esp, 0xc
cmp byte [eax], 0
jne 0x40327e
mov edx, dword [ebp - 0x190]
mov dword [esp], edx
call sub.KERNEL32.dll_GlobalFree
push eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
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.0040394b
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 0x403343
mov eax, 0xfffffff3
xor edi, edi
jmp 0x403356
mov dword [esp], esi
mov edi, 1
call sub.KERNEL32.dll_DeleteFileA
push eax
mov eax, 0xffffffef
mov dword [esp], eax
call fcn.00401428
jmp 0x402d0a
xor eax, eax
call fcn.00401496
cmp eax, dword [0x430850]
mov esi, eax
jae 0x4034f7
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x34]
add ebx, dword [0x43084c]
cmp eax, 0
jl 0x4033bd
mov eax, dword [ebx + eax*4]
jne 0x4033ab
mov edx, dword [ebp - 0x18c]
add ebx, 0x18
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.0040756a
jmp 0x40346a
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov dword [esp], ecx
jmp 0x403465
not eax
test eax, eax
mov dword [ebp - 0x34], eax
je 0x4033d5
mov eax, 1
call fcn.00401496
mov dword [ebp - 0x38], eax
jmp 0x4033f0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
call fcn.0040765b
push edi
push edi
or dword [ebx + 8], 0x100
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
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 0x4034f7
cmp dword [ebp - 0x30], 0
je 0x403471
cmp dword [ebp - 0x34], 0
je 0x40344b
mov dword [esp], eax
call fcn.00401353
push esi
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004012a3
jmp 0x40346a
mov dword [esp], 0
call fcn.0040139c
push ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.00407591
push ecx
push ecx
jmp case.0x4016bc.65
cmp dword [ebp - 0x34], 0
mov edx, dword [0x430834]
lea eax, [eax + 0x24]
je 0x403489
mov ecx, dword [ebp - 0x38]
mov dword [edx + eax*4 + 4], ecx
jmp case.0x4016bc.65
mov eax, dword [edx + eax*4 + 4]
mov edx, dword [ebp - 0x18c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040765b
jmp 0x40346a
mov ecx, dword [ebp - 0x190]
and eax, dword [0x42bc24]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xb
mov dword [esp + 8], eax
mov dword [esp], ecx
call sub.USER32.dll_SendMessageA
sub esp, 0x10
cmp dword [ebp - 0x3c], 0
je case.0x4016bc.65
mov eax, dword [ebp - 0x190]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_InvalidateRect
sub esp, 0xc
xor edi, edi
jmp 0x4034fc
mov edi, 1
add dword [0x4307dc], edi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret