Function at 0x40164f
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
mov esi, eax
push ebx
sub esp, 0x1cc
mov edx, dword [0x432864]
lea edi, [ebp - 0x40]
mov dword [ebp - 0x194], edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov edx, eax
shl edx, 0xa
mov ebx, esi
mov dword [ebp - 0x198], edx
add edx, section..ndata
mov dword [ebp - 0x190], edx
lea edx, [ebp - 0x3c]
mov dword [section..bss], edx
mov edx, dword [ebp - 0x40]
shl ebx, 0xa
lea edi, [ebx + section..ndata]
sub edx, 2
cmp edx, 0x41
ja case.0x4016b3.65
jmp dword [edx*4 + 0x40b004]
mov dword [esp + 4], 0
mov dword [esp], esi
jmp 0x401caf
inc dword [0x43306c]
mov esi, 0x7fffffff
cmp dword [ebp - 0x194], 0
je case.0x4016b3.2
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
jmp case.0x4016b3.2
mov dword [esp], esi
call fcn.0040160f
dec eax
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004037f0
push ecx
mov esi, eax
push ecx
jmp case.0x4016b3.2
mov dword [esp], esi
xor esi, esi
mov dword [esp + 4], 0
call fcn.00406dde
push eax
push eax
jmp 0x4037de
xor eax, eax
call fcn.00401463
mov edx, 1
test eax, eax
cmovg edx, eax
xor esi, esi
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
jmp 0x4037de
mov edx, dword [ebp - 0x194]
xor esi, esi
mov dword [esp], edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push eax
jmp 0x4037de
cmp dword [ebp - 0x34], 0
jne 0x401796
mov eax, dword [esi*4 + 0x4327cc]
mov dword [esi*4 + 0x432794], eax
mov eax, 1
call fcn.00401463
mov dword [esi*4 + 0x4327cc], eax
xor esi, esi
jmp 0x4037de
mov eax, dword [esi*4 + 0x432794]
mov dword [esi*4 + 0x4327cc], eax
xor esi, esi
jmp 0x4037de
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, dword [eax*4 + 0x4327cc]
test edx, edx
sete cl
and edx, dword [ebp - 0x30]
mov esi, dword [ebp + ecx*4 - 0x3c]
mov dword [eax*4 + 0x4327cc], edx
jmp case.0x4016b3.2
mov eax, dword [eax*4 + 0x4327cc]
xor esi, esi
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407979
push eax
push eax
jmp 0x4037de
mov edx, dword [0x433070]
test edx, edx
je 0x401804
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov eax, dword [0x433074]
xor esi, esi
test eax, eax
je 0x4037de
mov edx, dword [ebp - 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push edi
jmp 0x4037de
mov eax, 0xfffffff0
call fcn.00401414
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ecx, ecx
test eax, eax
push ebx
sete cl
push ebx
mov esi, ecx
jmp 0x4037de
mov eax, 0xfffffff0
xor esi, esi
call fcn.00401414
mov ebx, eax
mov dword [esp], eax
call fcn.004076b8
test eax, eax
push ecx
je 0x4018f3
mov edx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], edx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call fcn.0040761c
push ecx
mov edi, eax
push ecx
mov bl, byte [eax]
mov byte [eax], 0
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x18c]
test eax, eax
push edx
push edx
jne 0x4018e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4018cb
inc esi
jmp 0x4018e4
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 1
push edx
adc esi, 0
test bl, bl
mov byte [edi], bl
lea eax, [edi + 1]
jne 0x401885
mov ebx, dword [ebp - 0x190]
cmp dword [ebp - 0x38], 0
je 0x401927
mov dword [esp], 0xffffffe6
call fcn.00401630
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x43b800
call fcn.00407a3d
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
jmp 0x4037de
mov dword [esp], 0xfffffff5
call fcn.00401630
push edi
jmp 0x4037de
xor eax, eax
call fcn.00401414
mov dword [esp], eax
call fcn.00407e30
jmp 0x402321
mov eax, 0xffffffd0
call fcn.00401414
mov ebx, eax
mov eax, 0xffffffdf
call fcn.00401414
mov edi, eax
mov eax, 0x13
call fcn.00401414
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
push esi
push esi
je 0x401996
mov dword [esp], 0xffffffe3
xor esi, esi
call fcn.00401630
push ecx
jmp 0x4037de
cmp dword [ebp - 0x34], 0
mov esi, 1
je 0x4037de
mov dword [esp], ebx
call fcn.00407e30
test eax, eax
push edx
je 0x4037de
mov dword [esp], ebx
xor si, si
mov dword [esp + 4], edi
call fcn.00407f72
push ecx
push ecx
mov dword [esp], 0xffffffe4
call fcn.00401630
push ebx
jmp 0x4037de
xor eax, eax
call fcn.00401414
mov edx, dword [ebp - 0x190]
mov dword [esp + 4], 0x400
mov dword [esp + 8], edx
mov ebx, eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
sub esp, 0x10
test eax, eax
jne 0x401a1a
mov ecx, dword [ebp - 0x198]
mov byte [ecx + section..ndata], 0
jmp 0x401a58
mov eax, dword [ebp - 0x24]
xor esi, esi
cmp eax, ebx
jbe 0x401a5d
cmp byte [eax], 0
je 0x401a5d
mov dword [esp], ebx
call fcn.00407e30
test eax, eax
push edx
je 0x401a4b
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00407a3d
push eax
push eax
jmp 0x401a5d
mov esi, dword [ebp - 0x198]
mov byte [esi + section..ndata], 0
mov esi, 1
cmp dword [ebp - 0x34], 0
jne 0x4037de
mov edx, dword [ebp - 0x190]
mov dword [esp + 8], 0x400
mov dword [esp + 4], edx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0xc
jmp 0x4037de
or eax, 0xffffffff
xor esi, esi
call fcn.00401414
lea edx, [ebp - 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
sub esp, 0x18
test eax, eax
jne 0x4037de
mov byte [ebx + section..ndata], 0
mov si, 1
jmp 0x4037de
mov eax, 0xffffffef
call fcn.00401414
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.0040785e
xor ecx, ecx
test eax, eax
push edi
sete cl
push edi
mov esi, ecx
jmp 0x4037de
mov eax, 0x31
call fcn.00401414
mov ebx, dword [ebp - 0x3c]
and ebx, 7
mov edi, eax
mov dword [esp], eax
call fcn.0040768a
test eax, eax
push esi
je 0x401b32
mov dword [esp + 4], edi
mov dword [esp], 0x40e004
call fcn.00407a3d
jmp 0x401b5d
mov dword [esp + 4], 0x43b800
mov dword [esp], 0x40e004
call fcn.00407a3d
push edx
push edx
mov dword [esp], eax
call fcn.004075d6
push ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00407a70
push esi
push esi
mov dword [esp], 0x40e004
call fcn.00407a7b
cmp ebx, 2
push eax
jle 0x401bac
mov dword [esp], 0x40e004
call fcn.00407e30
xor edx, edx
test eax, eax
push ecx
je 0x401b9b
lea edx, [ebp - 0x30]
add eax, 0x14
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push edx
push edx
mov edx, eax
sub ebx, 3
or ebx, 0x80000000
test edx, ebx
sete bl
movzx ebx, bl
test ebx, ebx
jne 0x401bc4
mov dword [esp], 0x40e004
call fcn.004077d0
mov eax, 2
push esi
jmp 0x401bcd
xor eax, eax
cmp ebx, 1
setne al
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x40e004
call fcn.00407802
sub esp, 0xc
cmp eax, 0xffffffff
mov esi, eax
jne 0x401cc0
test ebx, ebx
je 0x401c18
mov dword [esp + 4], edi
mov dword [esp], 0xffffffe2
call fcn.00406dde
xor eax, eax
cmp ebx, 2
sete al
mov esi, eax
push ecx
push ecx
jmp 0x4037de
mov dword [esp + 4], section..ndata
mov dword [esp], 0x40e804
call fcn.00407a3d
push edx
push edx
mov dword [esp + 4], 0x40e004
mov dword [esp], section..ndata
call fcn.00407a3d
mov eax, dword [ebp - 0x28]
push ecx
push ecx
mov dword [esp + 4], eax
mov dword [esp], 0x40e404
call fcn.00407b4f
push esi
push esi
mov dword [esp + 4], 0x40e804
mov dword [esp], section..ndata
call fcn.00407a3d
push eax
push eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], 0x40e404
sar eax, 3
mov dword [esp + 4], eax
call fcn.00407562
cmp eax, 4
push edx
push edx
je 0x401bb0
cmp eax, 5
jne 0x401ca0
inc dword [0x4327d4]
jmp 0x4037e4
mov dword [esp + 4], 0x40e004
mov dword [esp], 0xfffffffa
call fcn.00406dde
push eax
mov esi, 0x7fffffff
push eax
jmp case.0x4016b3.2
mov dword [esp + 4], edi
mov dword [esp], 0xffffffea
call fcn.00406dde
inc dword [0x432800]
push eax
push eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00403cef
dec dword [0x432800]
sub esp, 0x10
mov ebx, eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x401d0e
cmp dword [ebp - 0x2c], 0xffffffff
je 0x401d2d
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
sub esp, 0x10
mov dword [esp], esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
push eax
jns 0x4037de
cmp ebx, 0xfffffffe
jne 0x401d6e
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x40e004
call fcn.00407b4f
push eax
push eax
mov dword [esp + 4], edi
mov dword [esp], 0x40e004
call fcn.00407a70
jmp 0x401d82
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x40e004
call fcn.00407b4f
push eax
push eax
mov dword [esp + 4], 0x200010
mov dword [esp], 0x40e004
jmp 0x402c25
xor eax, eax
xor esi, esi
call fcn.00401414
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408213
push eax
push eax
jmp 0x4037de
mov eax, 0x31
mov esi, 1
call fcn.00401414
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407562
test eax, eax
push edi
push edi
je 0x4037de
cmp eax, dword [ebp - 0x34]
je 0x40200a
xor esi, esi
cmp eax, dword [ebp - 0x2c]
jne 0x4037de
mov esi, dword [ebp - 0x28]
jmp case.0x4016b3.2
mov eax, 0xfffffff0
call fcn.00401414
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408213
push esi
push esi
xor esi, esi
jmp 0x4037de
mov eax, 1
xor esi, esi
call fcn.00401414
mov dword [esp], eax
call fcn.00407a65
push ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407979
push ebx
push ebx
jmp 0x4037de
mov eax, 2
call fcn.00401463
mov dword [ebp - 0x190], eax
mov eax, 3
call fcn.00401463
mov edx, eax
mov eax, 1
mov dword [ebp - 0x19c], edx
call fcn.00401414
mov edx, dword [ebp - 0x19c]
cmp dword [ebp - 0x190], 0
mov byte [ebx + section..ndata], 0
setne byte [ebp - 0x194]
mov ecx, eax
jne 0x401e9c
xor esi, esi
cmp dword [ebp - 0x34], 0
jne 0x4037de
mov dword [ebp - 0x19c], edx
mov dword [esp], ecx
mov dword [ebp - 0x1a0], ecx
call fcn.00407a65
mov ecx, dword [ebp - 0x1a0]
push edx
mov edx, dword [ebp - 0x19c]
test edx, edx
jns 0x401ecb
xor esi, esi
add edx, eax
js 0x4037de
cmp edx, eax
cmovg edx, eax
xor esi, esi
add ecx, edx
mov dword [esp + 4], ecx
mov dword [esp], edi
call fcn.00407a3d
cmp byte [ebp - 0x194], 0
push eax
push eax
je 0x4037de
cmp dword [ebp - 0x190], 0
jns 0x401f09
mov dword [esp], edi
call fcn.00407a65
add dword [ebp - 0x190], eax
push esi
js 0x401f1d
xor esi, esi
cmp dword [ebp - 0x190], 0x3ff
jg 0x4037de
jmp 0x401f27
mov dword [ebp - 0x190], 0
mov eax, dword [ebp - 0x190]
xor esi, esi
mov byte [eax + ebx + section..ndata], 0
jmp 0x4037de
mov eax, 0x20
call fcn.00401414
mov ebx, eax
mov eax, 0x31
call fcn.00401414
cmp dword [ebp - 0x2c], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
jne 0x401f67
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x401f6d
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
push ecx
push ecx
jne 0x40200a
jmp 0x40232e
mov eax, 1
call fcn.00401414
mov dword [esp + 8], 0x400
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x19c], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edx, dword [ebp - 0x19c]
sub esp, 0xc
test eax, eax
je 0x401fc9
xor esi, esi
cmp dword [ebp - 0x34], 0
je 0x401fd5
mov dword [esp], edx
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
push edx
push edx
jne 0x401fd5
mov byte [ebx + section..ndata], 0
mov esi, 1
mov byte [edi + 0x3ff], 0
jmp 0x4037de
xor eax, eax
call fcn.00401463
mov ebx, eax
mov eax, 1
call fcn.00401463
cmp dword [ebp - 0x28], 0
jne 0x402006
cmp ebx, eax
jl 0x40200a
jle 0x40232e
jmp 0x402018
cmp ebx, eax
jae 0x402012
mov esi, dword [ebp - 0x30]
jmp case.0x4016b3.2
jbe 0x40232e
mov esi, dword [ebp - 0x2c]
jmp case.0x4016b3.2
mov eax, 1
xor esi, esi
call fcn.00401463
mov ebx, eax
mov eax, 2
call fcn.00401463
cmp dword [ebp - 0x30], 0xc
mov ecx, eax
ja case.default.0x402043
mov eax, dword [ebp - 0x30]
jmp dword [eax*4 + 0x40b10c]
add ebx, ecx
jmp 0x4020a6
sub ebx, ecx
jmp 0x4020a6
imul ebx, ecx
jmp 0x4020a6
test ecx, ecx
je 0x4020aa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
jmp 0x4020a6
or ebx, ecx
jmp 0x4020a6
and ebx, ecx
jmp 0x4020a6
xor ebx, ecx
jmp 0x4020a6
test ebx, ebx
sete bl
jmp 0x40207c
or ecx, ebx
setne bl
movzx ebx, bl
jmp 0x4020a6
xor eax, eax
test ebx, ebx
setne al
xor ebx, ebx
test ecx, ecx
setne bl
and ebx, eax
jmp 0x4020a6
test ecx, ecx
je 0x4020aa
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
jmp 0x4020a6
shl ebx, cl
jmp 0x4020a6
sar ebx, cl
xor esi, esi
jmp case.default.0x402043
xor ebx, ebx
mov esi, 1
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00407979
push eax
push eax
jmp 0x4037de
mov eax, 1
xor esi, esi
call fcn.00401414
mov ebx, eax
mov eax, 2
call fcn.00401463
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x4037de
mov edx, dword [ebp - 0x34]
mov ebx, dword [0x40f404]
test edx, edx
je 0x402167
mov eax, edx
jmp 0x402109
test eax, eax
mov ebx, dword [ebx]
je 0x402113
dec eax
test ebx, ebx
jne 0x402103
jmp 0x402c04
test ebx, ebx
je 0x402c04
add ebx, 4
xor esi, esi
mov dword [esp + 4], ebx
mov dword [esp], 0x40e004
call fcn.00407a3d
push eax
push eax
mov eax, dword [0x40f404]
mov dword [esp], ebx
add eax, 4
mov dword [esp + 4], eax
call fcn.00407a3d
push eax
push eax
mov eax, dword [0x40f404]
mov dword [esp + 4], 0x40e004
add eax, 4
mov dword [esp], eax
call fcn.00407a3d
push eax
push eax
jmp 0x4037de
test eax, eax
je 0x4021a2
test ebx, ebx
mov esi, 1
je 0x4037de
lea eax, [ebx + 4]
xor si, si
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407a3d
push edi
push edi
mov eax, dword [ebx]
mov dword [esp], ebx
mov dword [0x40f404], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
jmp 0x4037de
mov dword [esp + 4], 0x404
xor esi, esi
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x3c]
push edx
push edx
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.00407b4f
mov eax, dword [0x40f404]
push ecx
push ecx
mov dword [ebx], eax
mov dword [0x40f404], ebx
jmp 0x4037de
mov eax, 3
call fcn.00401463
mov ebx, eax
mov eax, 4
call fcn.00401463
test byte [ebp - 0x28], 1
mov esi, eax
je 0x40220d
mov eax, 0x33
call fcn.00401414
mov ebx, eax
test byte [ebp - 0x28], 2
je 0x40221f
mov eax, 0x44
call fcn.00401414
mov esi, eax
cmp dword [ebp - 0x40], 0x21
mov eax, 1
jne 0x4022a9
call fcn.00401463
mov edx, eax
mov eax, 2
mov dword [ebp - 0x19c], edx
call fcn.00401463
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x19c]
sar ecx, 2
mov dword [ebp - 0x190], ecx
je 0x402292
lea ecx, [ebp - 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x190]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
sub esp, 0x1c
test eax, eax
sete al
movzx eax, al
mov esi, eax
jmp 0x4022f1
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4022e9
call fcn.00401414
mov edx, eax
mov eax, 0x12
mov dword [ebp - 0x19c], edx
call fcn.00401414
mov edx, dword [ebp - 0x19c]
xor ecx, ecx
cmp byte [eax], 0
cmove eax, ecx
cmp byte [edx], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
cmove edx, ecx
mov dword [esp + 8], edx
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_FindWindowExA]
sub esp, 0x10
xor esi, esi
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x3c], 0
js 0x4037de
mov eax, dword [ebp - 0x24]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407979
push eax
push eax
jmp 0x4037de
xor eax, eax
call fcn.00401463
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
push edi
je 0x40232e
mov esi, dword [ebp - 0x38]
jmp case.0x4016b3.2
mov esi, dword [ebp - 0x34]
jmp case.0x4016b3.2
mov eax, 2
call fcn.00401463
mov ebx, eax
mov eax, 1
call fcn.00401463
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407979
push esi
push esi
xor esi, esi
jmp 0x4037de
mov ebx, dword [0x432838]
xor esi, esi
add ebx, eax
xor eax, eax
call fcn.00401463
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
sub esp, 0xc
jmp 0x4037de
mov edx, dword [ebp - 0x194]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push edx
mov ebx, eax
push edx
lea eax, [ebp - 0x180]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.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.00401414
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
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 0x4037de
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push eax
jmp 0x4037de
mov edx, dword [ebp - 0x194]
mov dword [esp], edx
call dword [sym.imp.USER32.dll_GetDC]
push edx
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ecx
mov ebx, eax
push ecx
mov eax, 2
call fcn.00401463
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x48
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
sub esp, 0xc
mov dword [0x40f408], eax
mov eax, 3
call fcn.00401463
mov byte [0x40f41f], 1
mov dword [esp], 0x40f424
mov dword [0x40f418], eax
mov al, byte [ebp - 0x2c]
mov dl, al
and edx, 1
mov byte [0x40f41c], dl
mov dl, al
and eax, 4
mov byte [0x40f41e], al
mov eax, dword [ebp - 0x38]
and edx, 2
mov byte [0x40f41d], dl
mov dword [esp + 4], eax
call fcn.00407b4f
push ebx
push ebx
mov dword [esp], 0x40f408
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push esi
xor esi, esi
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407979
push edi
push edi
jmp 0x4037de
xor eax, eax
call fcn.00401463
mov ebx, eax
mov eax, 1
call fcn.00401463
cmp dword [ebp - 0x30], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
jne 0x402535
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
push eax
push eax
jmp 0x4037de
call dword [sym.imp.USER32.dll_EnableWindow]
xor esi, esi
push eax
push eax
jmp 0x4037de
xor eax, eax
call fcn.00401414
mov ebx, eax
mov eax, 0x31
call fcn.00401414
mov edi, eax
mov eax, 0x22
call fcn.00401414
mov esi, eax
mov eax, 0x15
call fcn.00401414
mov dword [esp], 0xffffffec
call fcn.00401630
mov edx, dword [ebp - 0x194]
push eax
xor eax, eax
cmp byte [esi], 0
cmove esi, eax
cmp byte [ebx], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x43b800
cmove ebx, eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 0x14], eax
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
xor ecx, ecx
sub esp, 0x18
cmp eax, 0x21
setl cl
mov esi, ecx
jmp 0x4037de
xor eax, eax
call fcn.00401414
mov dword [esp], 0xffffffeb
mov ebx, eax
mov dword [esp + 4], eax
call fcn.00406dde
push esi
push esi
mov esi, 1
mov dword [esp], ebx
call fcn.004074a4
test eax, eax
mov ebx, eax
push edi
je 0x4037de
cmp dword [ebp - 0x34], 0
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jne 0x402614
jmp 0x402659
mov dword [esp], 0xf
call fcn.004084c0
push ecx
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call esi
cmp eax, 0x102
push edx
push edx
je 0x402607
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x38], 0
push edi
push edi
js 0x40265d
mov esi, dword [ebp - 0x190]
mov eax, dword [ebp - 0x24]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407979
push esi
push esi
xor esi, esi
jmp 0x402668
xor eax, eax
cmp dword [ebp - 0x24], 0
setne al
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
jmp 0x4037de
mov eax, 2
call fcn.00401414
mov dword [esp], eax
call fcn.00407e30
test eax, eax
mov esi, eax
push edx
je 0x4026bf
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x190]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00407979
push ebx
push ebx
mov eax, dword [esi + 0x18]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407979
push esi
push esi
xor esi, esi
jmp 0x4037de
mov ecx, dword [ebp - 0x198]
mov esi, 1
mov byte [ebx + section..ndata], 0
mov byte [ecx + section..ndata], 0
jmp 0x4037de
mov eax, 0xffffffee
mov esi, 1
call fcn.00401414
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x194]
mov dword [esp], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov byte [ebx + section..ndata], 0
push ecx
test eax, eax
push ecx
mov ecx, dword [ebp - 0x198]
mov byte [ecx + section..ndata], 0
je 0x4037de
mov dword [esp + 4], eax
mov dword [esp], 0x40
mov dword [ebp - 0x19c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov ebx, eax
push edx
push edx
mov edx, dword [ebp - 0x19c]
je 0x4037de
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x194]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.VERSION.dll_GetFileVersionInfoA
sub esp, 0x10
test eax, eax
je 0x4027c9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40b000
mov dword [esp], ebx
call sub.VERSION.dll_VerQueryValueA
sub esp, 0x10
test eax, eax
je 0x4027c9
mov eax, dword [ebp - 0x24]
xor si, si
mov eax, dword [eax + 8]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407979
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x190]
push edi
push edi
mov eax, dword [eax + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00407979
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ecx
jmp 0x4037de
cmp dword [0x432804], 0
js 0x4028f2
mov eax, 0xfffffff0
call fcn.00401414
mov edi, eax
mov eax, 1
call fcn.00401414
cmp dword [ebp - 0x2c], 0
mov esi, eax
je 0x402813
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov ebx, eax
push edx
jne 0x402839
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 0x4028db
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
push edi
push edi
mov edi, eax
je 0x40289a
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40286b
mov dword [esp], eax
call fcn.00401630
push esi
call edi
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
jmp 0x4028b1
mov edx, dword [ebp - 0x194]
xor esi, esi
mov dword [esp + 0x10], 0x40a000
mov dword [esp + 0xc], 0x40f404
mov dword [esp + 8], 0x436000
mov dword [esp + 4], 0x400
mov dword [esp], edx
call edi
jmp 0x4028b1
mov dword [esp + 4], esi
mov esi, 1
mov dword [esp], 0xfffffff7
call fcn.00406dde
push ecx
push ecx
cmp dword [ebp - 0x30], 0
jne 0x4037de
mov dword [esp], ebx
call fcn.0040494f
test eax, eax
push edx
je 0x4037de
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
jmp 0x4037de
mov dword [esp], 0xfffffff6
mov esi, 1
call fcn.00401630
push edi
jmp 0x4037de
mov dword [esp], 0xffffffe7
call fcn.00401630
push esi
mov esi, 1
jmp 0x4037de
mov eax, 0xfffffff0
call fcn.00401414
mov dword [ebp - 0x190], eax
mov eax, 0xffffffdf
call fcn.00401414
mov edi, eax
mov eax, 2
call fcn.00401414
mov dword [ebp - 0x194], eax
mov eax, 0xffffffcd
call fcn.00401414
mov esi, eax
mov eax, 0x45
call fcn.00401414
mov dword [esp], edi
mov dword [ebp - 0x198], eax
call fcn.0040768a
test eax, eax
push ebx
jne 0x402965
mov al, 0x21
call fcn.00401414
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40ce18
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40bb38
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x402aea
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40c8d8
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
mov ebx, eax
js 0x402ada
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x50]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push edx
push edx
mov edx, dword [eax]
mov dword [esp + 4], 0x43b800
mov dword [esp], eax
call dword [edx + 0x24]
mov edx, dword [ebp - 0x2c]
movzx edx, dh
test edx, edx
push ecx
push ecx
je 0x402a05
mov eax, dword [ebp - 0x1c]
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 - 0x1c]
movzx ecx, word [ebp - 0x2a]
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 0x402a39
mov eax, dword [ebp - 0x1c]
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 - 0x1c]
mov ecx, dword [ebp - 0x194]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x2c]
mov esi, dword [ebp - 0x198]
push eax
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x1c]
test ebx, ebx
push eax
push eax
js 0x402ace
mov eax, dword [ebp - 0x190]
mov ebx, 0x80004005
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x40f444
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 0x402ace
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40f444
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 - 0x1c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
test ebx, ebx
push esi
jns 0x402b01
mov dword [esp], 0xfffffff0
mov esi, 1
call fcn.00401630
push ebx
jmp 0x4037de
mov dword [esp], 0xfffffff4
xor esi, esi
call fcn.00401630
push ecx
jmp 0x4037de
xor eax, eax
call fcn.00401414
mov ebx, eax
mov eax, 0x11
call fcn.00401414
mov esi, eax
mov eax, 0x23
call fcn.00401414
mov dword [esp], ebx
mov edi, eax
call fcn.00407e30
test eax, eax
push edx
jne 0x402b63
mov dword [esp + 4], 0
mov esi, 1
mov dword [esp], 0xfffffff9
call fcn.00406dde
push edi
push edi
jmp 0x4037de
mov edx, dword [ebp - 0x194]
mov dword [esp], ebx
mov dword [ebp - 0x17c], 2
mov dword [ebp - 0x180], edx
call fcn.00407a65
push edx
mov byte [ebx + eax + 1], 0
mov dword [esp], esi
call fcn.00407a65
push ecx
mov byte [esi + eax + 1], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x166], edi
mov word [ebp - 0x170], ax
mov dword [esp + 4], edi
mov dword [esp], 0
call fcn.00406dde
lea eax, [ebp - 0x180]
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.DLL_SHFileOperationA]
push esi
xor esi, esi
test eax, eax
je 0x4037de
mov dword [esp + 4], 0
mov si, 1
mov dword [esp], 0xfffffff9
call fcn.00406dde
push edi
push edi
jmp 0x4037de
cmp esi, 0xbadf00d
je 0x402c2f
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.00407b4f
push esi
push esi
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00407562
jmp 0x401cb4
inc dword [0x4327e0]
xor esi, esi
jmp 0x4037de
xor ebx, ebx
test esi, esi
je 0x402c4b
xor eax, eax
call fcn.00401414
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x38], 0
je 0x402c5f
mov eax, 0x11
call fcn.00401414
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x402c73
mov eax, 0x22
call fcn.00401414
mov edi, eax
mov eax, 0xffffffcd
call fcn.00401414
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor ecx, ecx
sub esp, 0x10
test eax, eax
sete cl
mov esi, ecx
jmp 0x4037de
mov eax, 1
mov dword [ebp - 0x20], 0x7e4e21
call fcn.00401414
mov esi, eax
mov eax, 0x12
call fcn.00401414
mov edx, eax
mov eax, 0xffffffdd
mov dword [ebp - 0x19c], edx
call fcn.00401414
mov edx, dword [ebp - 0x19c]
mov dword [esp], esi
xor esi, esi
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], edi
mov dword [esp + 4], edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x20]
sub esp, 0x18
cmp dword [ebx + section..ndata], eax
jne 0x4037de
mov byte [ebx + section..ndata], 0
mov si, 1
jmp 0x4037de
cmp dword [ebp - 0x2c], 0
jne 0x402d5d
mov eax, 2
call fcn.0040148f
test eax, eax
mov ebx, eax
je 0x402d91
mov eax, 0x33
call fcn.00401414
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ecx
mov edi, eax
push ecx
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
jmp 0x402d87
mov eax, 0x22
call fcn.00401414
mov ecx, dword [ebp - 0x2c]
and ecx, 2
mov edx, eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x402d80
mov eax, dword [0x4327d0]
sub eax, 0x7fffffff
call fcn.004014f3
mov edi, eax
xor esi, esi
test edi, edi
je 0x4037de
mov esi, 1
jmp 0x4037de
test esi, esi
jne 0x402dab
mov esi, dword [0x4327d0]
sub esi, 0x7fffffff
mov edx, dword [ebp - 0x28]
mov eax, 2
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x190], edx
call fcn.00401414
mov edi, eax
mov eax, 0x11
call fcn.00401414
lea edx, [ebp - 0x20]
mov dword [esp + 0x1c], edx
mov edx, dword [0x4327fc]
mov dword [esp], esi
mov esi, 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 0x4037de
cmp ebx, 1
jne 0x402e42
mov al, 0x23
call fcn.00401414
mov dword [esp], 0x40e804
call fcn.00407a65
inc eax
push edx
jmp 0x402e8a
cmp ebx, 4
jne 0x402e5d
mov eax, 3
call fcn.00401463
mov dword [0x40e804], eax
mov eax, 4
jmp 0x402e8a
xor eax, eax
cmp ebx, 3
jne 0x402e8a
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], 0xc00
mov dword [esp + 8], 0x40e804
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403cef
sub esp, 0x10
mov ecx, dword [ebp - 0x190]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], 0x40e804
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
setne al
movzx eax, al
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
jmp 0x4037de
mov eax, 0x20019
mov esi, 1
call fcn.0040148f
mov dword [ebp - 0x190], eax
mov eax, 0x33
call fcn.00401414
cmp dword [ebp - 0x190], 0
mov byte [ebx + section..ndata], 0
je 0x4037de
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0x3ff
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x402f57
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x402f65
cmp eax, 4
je 0x402f65
cmp eax, 2
je 0x402f8b
mov byte [ebx + section..ndata], 0
mov esi, 1
jmp 0x402f99
cmp eax, 4
jne 0x402f8b
mov eax, dword [ebx + section..ndata]
xor edx, edx
cmp dword [ebp - 0x2c], 0
mov dword [esp], edi
sete dl
mov dword [esp + 4], eax
mov esi, edx
call fcn.00407979
push eax
push eax
jmp 0x402f99
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
mov byte [ebx + eax + section..ndata], 0
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
jmp 0x4037de
mov eax, 0x20019
mov esi, 1
call fcn.0040148f
mov dword [ebp - 0x190], eax
mov eax, 3
call fcn.00401463
cmp dword [ebp - 0x190], 0
mov byte [ebx + section..ndata], 0
je 0x4037de
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0x3ff
je 0x403012
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 0xc], 0x3ff
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
sub esp, 0x10
jmp 0x40305b
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x1c]
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], edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
sub esp, 0x20
test eax, eax
jne 0x4037de
mov eax, dword [ebp - 0x190]
xor esi, esi
mov byte [edi + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
jmp 0x4037de
xor esi, esi
cmp byte [ebx + section..ndata], 0
je 0x4037de
mov dword [esp], edi
call fcn.0040799e
push ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
jmp 0x4037de
mov eax, 0xffffffed
call fcn.00401414
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.00407802
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x4030d9
mov byte [ebx + section..ndata], 0
mov esi, 1
jmp 0x4037de
mov dword [esp + 4], eax
xor esi, esi
mov dword [esp], edi
call fcn.00407979
push ecx
push ecx
jmp 0x4037de
cmp dword [ebp - 0x34], 0
je 0x40310a
mov eax, 1
call fcn.00401463
mov edx, 1
mov byte [0x40e404], al
jmp 0x40311f
mov eax, 0x11
call fcn.00401414
mov dword [esp], eax
call fcn.00407a65
push edx
mov edx, eax
cmp byte [ebx + section..ndata], 0
mov esi, 1
je 0x4037de
mov dword [ebp - 0x19c], edx
mov dword [esp], edi
call fcn.0040799e
mov edx, dword [ebp - 0x19c]
lea ecx, [ebp - 0x1c]
push esi
mov dword [esp + 8], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x40e404
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
sub esp, 0x14
test eax, eax
sete dl
mov esi, edx
jmp 0x4037de
mov eax, 2
call fcn.00401463
test eax, eax
jle 0x4037dc
cmp eax, 0x3ff
mov dword [ebp - 0x194], 0x3ff
cmovg eax, dword [ebp - 0x194]
xor esi, esi
cmp byte [ebx + section..ndata], 0
mov dword [ebp - 0x194], eax
je 0x4032a7
mov dword [esp], edi
call fcn.0040799e
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push ebx
mov edi, eax
xor ebx, ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x19c], edx
mov dword [ebp - 0x1a0], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x1a0]
sub esp, 0x14
test eax, eax
je 0x4032a7
cmp dword [ebp - 0x1c], 1
jne 0x4032a7
cmp dword [ebp - 0x30], 0
je 0x40323c
mov ecx, dword [ebp - 0x190]
movzx eax, byte [ebp - 0x20]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00407979
push ecx
push ecx
jmp 0x4037e4
cmp bl, 0xa
mov al, byte [ebp - 0x20]
je 0x403249
cmp bl, 0xd
jne 0x40328b
cmp bl, al
je 0x403255
cmp al, 0xa
je 0x40327b
cmp al, 0xd
je 0x40327b
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x4032a7
mov edx, dword [ebp - 0x198]
mov byte [esi + edx + section..ndata], al
inc esi
jmp 0x4032a7
mov bl, al
mov eax, dword [ebp - 0x190]
mov byte [eax + esi], bl
inc esi
test bl, bl
je 0x4032a7
cmp esi, dword [ebp - 0x194]
jl 0x4031cb
mov edx, dword [ebp - 0x198]
xor ecx, ecx
test esi, esi
sete cl
mov byte [esi + edx + section..ndata], 0
mov esi, ecx
jmp 0x4037de
xor esi, esi
cmp byte [ebx + section..ndata], 0
je 0x4037de
mov eax, 2
mov ebx, dword [ebp - 0x30]
call fcn.00401463
mov dword [esp], edi
mov dword [ebp - 0x19c], eax
call fcn.0040799e
push edx
mov edx, dword [ebp - 0x19c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
cmp dword [ebp - 0x38], 0
js 0x4037de
mov edx, dword [ebp - 0x190]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00407979
push edi
push edi
jmp 0x4037de
xor esi, esi
cmp byte [ebx + section..ndata], 0
je 0x4037de
mov dword [esp], edi
call fcn.0040799e
push ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
jmp 0x4037de
mov ecx, dword [ebp - 0x198]
cmp byte [ecx + section..ndata], 0
je 0x4033ac
mov esi, dword [ebp - 0x190]
mov dword [esp], esi
call fcn.0040799e
lea edx, [ebp - 0x180]
push esi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
push edx
push edx
je 0x4033ac
lea eax, [ebp - 0x154]
xor esi, esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407a3d
push ecx
push ecx
jmp 0x4037de
mov byte [ebx + section..ndata], 0
mov esi, 1
jmp 0x4037de
mov eax, 2
call fcn.00401414
lea edx, [ebp - 0x180]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
push edx
push edx
jne 0x4033ff
mov edx, dword [ebp - 0x198]
mov esi, 1
mov byte [edx + section..ndata], 0
mov byte [ebx + section..ndata], 0
jmp 0x4037de
mov ecx, dword [ebp - 0x190]
xor esi, esi
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00407979
push eax
push eax
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407a3d
push eax
push eax
jmp 0x4037de
mov eax, 0xfffffff0
call fcn.00401414
mov esi, eax
mov dword [esp], eax
call fcn.0040768a
test eax, eax
push edi
jne 0x403451
mov eax, 0xffffffed
call fcn.00401414
mov dword [esp], esi
call fcn.004077d0
push ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407802
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x4035ed
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [0x43285c]
mov dword [esp], 0x40
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x190], edx
mov dword [esp + 4], edx
call ecx
mov edx, 0xfffffd66
push ecx
test eax, eax
push ecx
mov ebx, eax
je 0x4035d3
mov dword [esp], 0
call fcn.00403ad1
mov edx, dword [ebp - 0x190]
push eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00403a85
push eax
push eax
mov eax, dword [ebp - 0x34]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call dword [ebp - 0x18c]
test eax, eax
push edx
push edx
mov edx, eax
je 0x40357b
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [ebp - 0x19c], edx
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.00403cef
mov edx, dword [ebp - 0x19c]
mov eax, edx
mov dword [ebp - 0x194], edx
sub esp, 0x10
jmp 0x403566
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 - 0x19c], edx
mov dword [ebp - 0x1a0], ecx
add eax, ebx
mov dword [esp], eax
call fcn.004077a7
mov edx, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x1a0]
lea eax, [ecx + edx]
sub esp, 0xc
cmp byte [eax], 0
jne 0x40352e
mov edx, dword [ebp - 0x194]
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.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.00403cef
sub esp, 0x10
mov edx, eax
mov dword [ebp - 0x19c], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov edx, dword [ebp - 0x19c]
test edx, edx
jns 0x403603
mov dword [esp], esi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
mov eax, 0xffffffef
jmp 0x40360a
mov eax, 0xfffffff3
xor esi, esi
mov dword [esp], eax
call fcn.00401630
push eax
jmp 0x4037de
xor eax, eax
mov esi, 1
call fcn.00401463
cmp eax, dword [0x43281c]
mov edi, eax
jae 0x4037de
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x34]
add ebx, dword [0x432818]
cmp eax, 0
jl 0x403684
mov eax, dword [ebx + eax*4]
jne 0x403669
mov esi, dword [ebp - 0x190]
add ebx, 0x18
mov dword [esp + 4], ebx
mov dword [esp], esi
xor esi, esi
call fcn.00407a3d
push eax
push eax
jmp 0x4037de
mov edx, dword [ebp - 0x190]
xor esi, esi
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00407979
push eax
push eax
jmp 0x4037de
not eax
test eax, eax
mov dword [ebp - 0x34], eax
je 0x40369c
mov eax, 1
call fcn.00401463
mov dword [ebp - 0x38], eax
jmp 0x4036b7
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
call fcn.00407b4f
push eax
push eax
or dword [ebx + 8], 0x100
mov eax, dword [ebp - 0x34]
xor esi, esi
mov edx, dword [ebp - 0x38]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x30], 0
je 0x4037de
mov dword [esp], edi
call fcn.00401220
push eax
jmp 0x4037de
xor eax, eax
mov esi, 1
call fcn.00401463
cmp eax, 0x1f
ja 0x4037de
cmp dword [ebp - 0x30], 0
je 0x40374a
cmp dword [ebp - 0x34], 0
je 0x403722
mov dword [esp], eax
xor si, si
call fcn.0040133f
push ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040128f
push edi
push edi
jmp 0x4037de
mov dword [esp], 0
xor esi, esi
call fcn.00401388
mov ecx, dword [ebp - 0x190]
push edx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00407979
push ecx
push ecx
jmp 0x4037de
cmp dword [ebp - 0x34], 0
mov edx, dword [0x43280c]
lea eax, [eax + 0x24]
je 0x403764
mov ecx, dword [ebp - 0x38]
xor esi, esi
mov dword [edx + eax*4 + 4], ecx
jmp 0x4037de
mov eax, dword [edx + eax*4 + 4]
mov esi, dword [ebp - 0x190]
mov dword [esp + 4], eax
mov dword [esp], esi
xor esi, esi
call fcn.00407b4f
push eax
push eax
jmp 0x4037de
mov edx, dword [ebp - 0x194]
and esi, dword [0x42dc24]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xb
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp], edx
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
cmp dword [ebp - 0x3c], 0
je 0x4037de
mov edx, dword [ebp - 0x194]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edx
call dword [sym.imp.USER32.dll_InvalidateRect]
sub esp, 0xc
jmp 0x4037de
xor esi, esi
jmp 0x4037de
xor esi, esi
add dword [0x4327d4], esi
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret