Function at 0x401635
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 ebp, esp
push edi
push esi
push ebx
sub esp, 0x1cc
mov edx, dword [0x425ba0]
mov dword [ebp - 0x190], edx
lea edi, [ebp - 0x40]
mov ecx, 7
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x3c]
mov ebx, esi
shl ebx, 0xa
lea edi, [ebx + section..ndata]
mov eax, dword [ebp - 0x38]
mov edx, eax
shl edx, 0xa
mov dword [ebp - 0x194], edx
add edx, section..ndata
mov dword [ebp - 0x18c], edx
lea edx, [ebp - 0x3c]
mov dword [section..bss], edx
mov edx, dword [ebp - 0x40]
sub edx, 2
cmp edx, 0x41
ja case.0x401699.65
jmp dword [edx*4 + 0x40b004]
mov dword [esp + 4], 0
mov dword [esp], esi
jmp 0x401c77
inc dword [0x4263a8]
mov esi, 0x7fffffff
cmp dword [ebp - 0x190], 0
je case.0x401699.2
mov dword [esp], 0
call sub.USER32.dll_PostQuitMessage
push ebx
jmp case.0x401699.2
mov dword [esp], esi
call fcn.004015f5
push edx
mov dword [esp + 4], 0
dec eax
mov dword [esp], eax
call fcn.00403776
push ecx
push ecx
mov esi, eax
jmp case.0x401699.2
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00406cb9
push eax
push eax
xor esi, esi
jmp 0x403764
xor eax, eax
call fcn.0040145b
test eax, eax
jg 0x401726
mov eax, 1
mov dword [esp], eax
call sub.KERNEL32.dll_Sleep
push eax
xor esi, esi
jmp 0x403764
mov ebx, dword [ebp - 0x190]
mov dword [esp], ebx
call sub.USER32.dll_SetForegroundWindow
push eax
xor esi, esi
jmp 0x403764
cmp dword [ebp - 0x34], 0
jne 0x401778
mov eax, dword [esi*4 + 0x425b08]
mov dword [esi*4 + 0x425ad0], eax
mov eax, 1
call fcn.0040145b
mov dword [esi*4 + 0x425b08], eax
xor esi, esi
jmp 0x403764
mov eax, dword [esi*4 + 0x425ad0]
mov dword [esi*4 + 0x425b08], eax
xor esi, esi
jmp 0x403764
mov eax, dword [ebp - 0x34]
mov edx, dword [eax*4 + 0x425b08]
xor ecx, ecx
test edx, edx
sete cl
mov esi, dword [ebp + ecx*4 - 0x3c]
and edx, dword [ebp - 0x30]
mov dword [eax*4 + 0x425b08], edx
jmp case.0x401699.2
mov eax, dword [eax*4 + 0x425b08]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push eax
push eax
xor esi, esi
jmp 0x403764
mov edx, dword [0x4263ac]
test edx, edx
je 0x4017e5
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.USER32.dll_ShowWindow
push eax
push eax
mov eax, dword [0x4263b0]
xor esi, esi
test eax, eax
je 0x403764
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
push edi
push edi
jmp 0x403764
mov eax, 0xfffffff0
call fcn.0040140c
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileAttributesA
push ebx
push ebx
test eax, eax
sete al
movzx eax, al
mov esi, eax
jmp 0x403764
mov eax, 0xfffffff0
call fcn.0040140c
mov ebx, eax
mov dword [esp], eax
call fcn.00407555
push ecx
xor esi, esi
test eax, eax
je 0x4018c0
mov dword [ebp - 0x18c], ebx
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call fcn.004074c7
push ecx
push ecx
mov edi, eax
mov bl, byte [eax]
mov byte [eax], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateDirectoryA
push edx
push edx
test eax, eax
jne 0x4018b1
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x401899
inc esi
jmp 0x4018b1
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileAttributesA
push edx
and eax, 0x10
cmp eax, 1
adc esi, 0
mov byte [edi], bl
lea eax, [edi + 1]
test bl, bl
jne 0x401855
mov ebx, dword [ebp - 0x18c]
cmp dword [ebp - 0x38], 0
je 0x4018f3
mov dword [esp], 0xffffffe6
call fcn.00401616
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x42e800
call fcn.004078bf
push eax
push eax
mov dword [esp], ebx
call sub.KERNEL32.dll_SetCurrentDirectoryA
push eax
jmp 0x403764
mov dword [esp], 0xfffffff5
call fcn.00401616
push edi
jmp 0x403764
xor eax, eax
call fcn.0040140c
mov dword [esp], eax
call fcn.00407c98
jmp 0x4022e6
mov eax, 0xffffffd0
call fcn.0040140c
mov ebx, eax
mov eax, 0xffffffdf
call fcn.0040140c
mov edi, eax
mov eax, 0x13
call fcn.0040140c
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.KERNEL32.dll_MoveFileA
push esi
push esi
test eax, eax
je 0x401961
mov dword [esp], 0xffffffe3
call fcn.00401616
push ecx
xor esi, esi
jmp 0x403764
mov esi, 1
cmp dword [ebp - 0x34], 0
je 0x403764
mov dword [esp], ebx
call fcn.00407c98
push edx
test eax, eax
je 0x403764
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00407dce
push ecx
push ecx
mov dword [esp], 0xffffffe4
call fcn.00401616
push ebx
xor si, si
jmp 0x403764
xor eax, eax
call fcn.0040140c
mov ebx, eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x18c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFullPathNameA
sub esp, 0x10
test eax, eax
jne 0x4019e4
mov ecx, dword [ebp - 0x194]
mov byte [ecx + section..ndata], 0
jmp 0x401a22
mov eax, dword [ebp - 0x24]
xor esi, esi
cmp eax, ebx
jbe 0x401a27
cmp byte [eax], 0
je 0x401a27
mov dword [esp], ebx
call fcn.00407c98
push edx
test eax, eax
je 0x401a15
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004078bf
push eax
push eax
jmp 0x401a27
mov ebx, dword [ebp - 0x194]
mov byte [ebx + section..ndata], 0
mov esi, 1
cmp dword [ebp - 0x34], 0
jne 0x403764
mov dword [esp + 8], 0x400
mov edx, dword [ebp - 0x18c]
mov dword [esp + 4], edx
mov dword [esp], edx
call sub.KERNEL32.dll_GetShortPathNameA
sub esp, 0xc
jmp 0x403764
or eax, 0xffffffff
call fcn.0040140c
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 + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_SearchPathA
sub esp, 0x18
xor esi, esi
test eax, eax
jne 0x403764
mov byte [ebx + section..ndata], 0
mov si, 1
jmp 0x403764
mov eax, 0xffffffef
call fcn.0040140c
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004076ef
push edi
push edi
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
jmp 0x403764
mov eax, 0x31
call fcn.0040140c
mov edi, eax
mov ebx, dword [ebp - 0x3c]
and ebx, 7
mov dword [esp], eax
call fcn.00407527
push esi
test eax, eax
je 0x401afa
mov dword [esp + 4], edi
mov dword [esp], 0x40c004
call fcn.004078bf
jmp 0x401b25
mov dword [esp + 4], 0x42e800
mov dword [esp], 0x40c004
call fcn.004078bf
push edx
push edx
mov dword [esp], eax
call fcn.00407484
push ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004078ef
push esi
push esi
mov dword [esp], 0x40c004
call fcn.004078f8
push eax
cmp ebx, 2
jle 0x401b73
mov dword [esp], 0x40c004
call fcn.00407c98
push ecx
xor edx, edx
test eax, eax
je 0x401b62
lea edx, [ebp - 0x30]
mov dword [esp + 4], edx
add eax, 0x14
mov dword [esp], eax
call sub.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 0x401b8b
mov dword [esp], 0x40c004
call fcn.00407664
push esi
mov eax, 2
jmp 0x401b94
xor eax, eax
cmp ebx, 1
setne al
inc eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x40c004
call fcn.00407694
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
jne 0x401c88
test ebx, ebx
je 0x401be0
mov dword [esp + 4], edi
mov dword [esp], 0xffffffe2
call fcn.00406cb9
push ecx
push ecx
cmp ebx, 2
sete bl
movzx ebx, bl
mov esi, ebx
jmp 0x403764
mov dword [esp + 4], section..ndata
mov dword [esp], 0x40c804
call fcn.004078bf
push edx
push edx
mov dword [esp + 4], 0x40c004
mov dword [esp], section..ndata
call fcn.004078bf
push ecx
push ecx
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0x40c404
call fcn.004079bf
push esi
push esi
mov dword [esp + 4], 0x40c804
mov dword [esp], section..ndata
call fcn.004078bf
push eax
push eax
mov eax, dword [ebp - 0x3c]
sar eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x40c404
call fcn.00407415
push edx
push edx
cmp eax, 4
je 0x401b77
cmp eax, 5
jne 0x401c68
inc dword [0x425b10]
jmp 0x40376a
mov dword [esp + 4], 0x40c004
mov dword [esp], 0xfffffffa
call fcn.00406cb9
push eax
push eax
mov esi, 0x7fffffff
jmp case.0x401699.2
mov dword [esp + 4], edi
mov dword [esp], 0xffffffea
call fcn.00406cb9
push eax
push eax
inc dword [0x425b3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.00403c64
sub esp, 0x10
mov ebx, eax
dec dword [0x425b3c]
cmp dword [ebp - 0x30], 0xffffffff
jne 0x401cd6
cmp dword [ebp - 0x2c], 0xffffffff
je 0x401cf4
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
push eax
xor esi, esi
test ebx, ebx
jns 0x403764
cmp ebx, 0xfffffffe
jne 0x401d34
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x40c004
call fcn.004079bf
push eax
push eax
mov dword [esp + 4], edi
mov dword [esp], 0x40c004
call fcn.004078ef
jmp 0x401d48
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x40c004
call fcn.004079bf
push eax
push eax
mov dword [esp + 4], 0x200010
mov dword [esp], 0x40c004
jmp 0x402bdb
xor eax, eax
call fcn.0040140c
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408064
push eax
push eax
xor esi, esi
jmp 0x403764
mov eax, 0x31
call fcn.0040140c
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407415
push edi
push edi
mov esi, 1
test eax, eax
je 0x403764
cmp eax, dword [ebp - 0x34]
je 0x401fcd
xor esi, esi
cmp eax, dword [ebp - 0x2c]
jne 0x403764
mov esi, dword [ebp - 0x28]
jmp case.0x401699.2
mov eax, 0xfffffff0
call fcn.0040140c
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408064
push esi
push esi
xor esi, esi
jmp 0x403764
mov eax, 1
call fcn.0040140c
mov dword [esp], eax
call fcn.004078e6
push ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push ebx
push ebx
xor esi, esi
jmp 0x403764
mov eax, 2
call fcn.0040145b
mov dword [ebp - 0x18c], eax
mov eax, 3
call fcn.0040145b
mov ecx, eax
mov eax, 1
mov dword [ebp - 0x19c], ecx
call fcn.0040140c
mov edx, eax
mov byte [ebx + section..ndata], 0
cmp dword [ebp - 0x18c], 0
setne byte [ebp - 0x190]
mov ecx, dword [ebp - 0x19c]
jne 0x401e62
xor esi, esi
cmp dword [ebp - 0x34], 0
jne 0x403764
mov dword [esp], edx
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x19c], ecx
call fcn.004078e6
push edx
mov ecx, dword [ebp - 0x19c]
test ecx, ecx
mov edx, dword [ebp - 0x198]
jns 0x401e91
xor esi, esi
add ecx, eax
js 0x403764
cmp ecx, eax
jle 0x401e97
mov ecx, eax
add edx, ecx
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.004078bf
push eax
push eax
xor esi, esi
cmp byte [ebp - 0x190], 0
je 0x403764
cmp dword [ebp - 0x18c], 0
jns 0x401ed0
mov dword [esp], edi
call fcn.004078e6
push esi
add dword [ebp - 0x18c], eax
js 0x401ee4
xor esi, esi
cmp dword [ebp - 0x18c], 0x3ff
jg 0x403764
jmp 0x401eee
mov dword [ebp - 0x18c], 0
mov eax, dword [ebp - 0x18c]
mov byte [eax + ebx + section..ndata], 0
xor esi, esi
jmp 0x403764
mov eax, 0x20
call fcn.0040140c
mov ebx, eax
mov eax, 0x31
call fcn.0040140c
cmp dword [ebp - 0x2c], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x401f2d
call sub.KERNEL32.dll_lstrcmpiA
jmp 0x401f32
call sub.KERNEL32.dll_lstrcmpA
push ecx
push ecx
test eax, eax
jne 0x401fcd
jmp 0x4022f3
mov eax, 1
call fcn.0040140c
mov dword [esp + 8], 0x400
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x198], eax
call sub.KERNEL32.dll_ExpandEnvironmentStringsA
sub esp, 0xc
test eax, eax
mov edx, dword [ebp - 0x198]
je 0x401f8c
xor esi, esi
cmp dword [ebp - 0x34], 0
je 0x401f98
mov dword [esp + 4], edi
mov dword [esp], edx
call sub.KERNEL32.dll_lstrcmpA
push edx
push edx
test eax, eax
jne 0x401f98
mov byte [ebx + section..ndata], 0
mov esi, 1
mov byte [edi + 0x3ff], 0
jmp 0x403764
xor eax, eax
call fcn.0040145b
mov ebx, eax
mov eax, 1
call fcn.0040145b
cmp dword [ebp - 0x28], 0
jne 0x401fc9
cmp ebx, eax
jl 0x401fcd
jle 0x4022f3
jmp 0x401fdb
cmp ebx, eax
jae 0x401fd5
mov esi, dword [ebp - 0x30]
jmp case.0x401699.2
jbe 0x4022f3
mov esi, dword [ebp - 0x2c]
jmp case.0x401699.2
mov eax, 1
call fcn.0040145b
mov ebx, eax
mov eax, 2
call fcn.0040145b
mov ecx, eax
xor esi, esi
cmp dword [ebp - 0x30], 0xc
ja case.default.0x402006
mov eax, dword [ebp - 0x30]
jmp dword [eax*4 + 0x40b10c]
add ebx, ecx
jmp 0x402069
sub ebx, ecx
jmp 0x402069
imul ebx, ecx
jmp 0x402069
test ecx, ecx
je 0x40206d
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
jmp 0x402069
or ebx, ecx
jmp 0x402069
and ebx, ecx
jmp 0x402069
xor ebx, ecx
jmp 0x402069
test ebx, ebx
sete bl
jmp 0x40203f
or ecx, ebx
setne bl
movzx ebx, bl
jmp 0x402069
xor eax, eax
test ebx, ebx
setne al
xor ebx, ebx
test ecx, ecx
setne bl
and ebx, eax
jmp 0x402069
test ecx, ecx
je 0x40206d
mov eax, ebx
cdq
idiv ecx
mov ebx, edx
jmp 0x402069
shl ebx, cl
jmp 0x402069
sar ebx, cl
xor esi, esi
jmp case.default.0x402006
xor ebx, ebx
mov esi, 1
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.004077fc
push eax
push eax
jmp 0x403764
mov eax, 1
call fcn.0040140c
mov ebx, eax
mov eax, 2
call fcn.0040145b
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.USER32.dll_wsprintfA
xor esi, esi
jmp 0x403764
mov ebx, dword [0x40d404]
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x402129
mov eax, edx
jmp 0x4020cb
mov ebx, dword [ebx]
test eax, eax
je 0x4020d5
dec eax
test ebx, ebx
jne 0x4020c5
jmp 0x402bba
test ebx, ebx
je 0x402bba
add ebx, 4
mov dword [esp + 4], ebx
mov dword [esp], 0x40c004
call fcn.004078bf
push eax
push eax
mov eax, dword [0x40d404]
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004078bf
push eax
push eax
mov dword [esp + 4], 0x40c004
mov eax, dword [0x40d404]
add eax, 4
mov dword [esp], eax
call fcn.004078bf
push eax
push eax
xor esi, esi
jmp 0x403764
test eax, eax
je 0x402163
mov esi, 1
test ebx, ebx
je 0x403764
lea eax, [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004078bf
push edi
push edi
mov eax, dword [ebx]
mov dword [0x40d404], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalFree
push eax
xor si, si
jmp 0x403764
mov dword [esp + 4], 0x404
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
push edx
push edx
mov ebx, eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.004079bf
push ecx
push ecx
mov eax, dword [0x40d404]
mov dword [ebx], eax
mov dword [0x40d404], ebx
xor esi, esi
jmp 0x403764
mov eax, 3
call fcn.0040145b
mov ebx, eax
mov eax, 4
call fcn.0040145b
mov esi, eax
test byte [ebp - 0x28], 1
je 0x4021cd
mov eax, 0x33
call fcn.0040140c
mov ebx, eax
test byte [ebp - 0x28], 2
je 0x4021df
mov eax, 0x44
call fcn.0040140c
mov esi, eax
mov eax, 1
cmp dword [ebp - 0x40], 0x21
jne 0x402266
call fcn.0040145b
mov edx, eax
mov eax, 2
mov dword [ebp - 0x198], edx
call fcn.0040145b
mov ecx, dword [ebp - 0x28]
sar ecx, 2
mov dword [ebp - 0x18c], ecx
mov edx, dword [ebp - 0x198]
je 0x402250
lea ecx, [ebp - 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.USER32.dll_SendMessageTimeoutA
sub esp, 0x1c
xor ebx, ebx
test eax, eax
sete bl
mov esi, ebx
jmp 0x4022b7
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.USER32.dll_SendMessageA
jmp 0x4022af
call fcn.0040140c
mov edx, eax
mov eax, 0x12
mov dword [ebp - 0x198], edx
call fcn.0040140c
xor ecx, ecx
cmp byte [eax], 0
setne cl
neg ecx
and eax, ecx
mov edx, dword [ebp - 0x198]
xor ecx, ecx
cmp byte [edx], 0
setne cl
neg ecx
and edx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.USER32.dll_FindWindowExA
sub esp, 0x10
mov dword [ebp - 0x24], eax
xor esi, esi
cmp dword [ebp - 0x3c], 0
js 0x403764
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push eax
push eax
jmp 0x403764
xor eax, eax
call fcn.0040145b
mov dword [esp], eax
call sub.USER32.dll_IsWindow
push edi
test eax, eax
je 0x4022f3
mov esi, dword [ebp - 0x38]
jmp case.0x401699.2
mov esi, dword [ebp - 0x34]
jmp case.0x401699.2
mov eax, 2
call fcn.0040145b
mov ebx, eax
mov eax, 1
call fcn.0040145b
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
push ebx
push ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push esi
push esi
xor esi, esi
jmp 0x403764
mov ebx, dword [0x425b74]
add ebx, eax
xor eax, eax
call fcn.0040145b
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call sub.USER32.dll_SetWindowLongA
sub esp, 0xc
xor esi, esi
jmp 0x403764
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x190]
mov dword [esp], edx
call sub.USER32.dll_GetDlgItem
push edx
push edx
mov ebx, eax
lea eax, [ebp - 0x180]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.USER32.dll_GetClientRect
push ecx
push ecx
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x174]
imul edi, esi
imul esi, dword [ebp - 0x178]
xor eax, eax
call fcn.0040140c
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
xor esi, esi
test eax, eax
je 0x403764
mov dword [esp], eax
call sub.GDI32.dll_DeleteObject
push eax
jmp 0x403764
mov ebx, dword [ebp - 0x190]
mov dword [esp], ebx
call sub.USER32.dll_GetDC
push edx
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call sub.GDI32.dll_GetDeviceCaps
push ecx
push ecx
mov ebx, eax
mov eax, 2
call fcn.0040145b
mov dword [esp + 8], 0x48
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_MulDiv
sub esp, 0xc
neg eax
mov dword [0x40d408], eax
mov eax, 3
call fcn.0040145b
mov dword [0x40d418], eax
mov al, byte [ebp - 0x2c]
mov dl, al
and edx, 1
mov byte [0x40d41c], dl
mov dl, al
and edx, 2
mov byte [0x40d41d], dl
and eax, 4
mov byte [0x40d41e], al
mov byte [0x40d41f], 1
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], 0x40d424
call fcn.004079bf
push ebx
push ebx
mov dword [esp], 0x40d408
call sub.GDI32.dll_CreateFontIndirectA
push esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push edi
push edi
xor esi, esi
jmp 0x403764
xor eax, eax
call fcn.0040145b
mov ebx, eax
mov eax, 1
call fcn.0040145b
cmp dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x4024ee
call sub.USER32.dll_ShowWindow
push eax
push eax
xor esi, esi
jmp 0x403764
call sub.USER32.dll_EnableWindow
push eax
push eax
xor esi, esi
jmp 0x403764
xor eax, eax
call fcn.0040140c
mov ebx, eax
mov eax, 0x31
call fcn.0040140c
mov edi, eax
mov eax, 0x22
call fcn.0040140c
mov esi, eax
mov eax, 0x15
call fcn.0040140c
mov dword [esp], 0xffffffec
call fcn.00401616
push eax
xor eax, eax
cmp byte [esi], 0
setne al
neg eax
and esi, eax
xor eax, eax
cmp byte [ebx], 0
setne al
neg eax
and ebx, eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x42e800
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x190]
mov dword [esp], edx
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
xor ecx, ecx
cmp eax, 0x21
setl cl
mov esi, ecx
jmp 0x403764
xor eax, eax
call fcn.0040140c
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffeb
call fcn.00406cb9
push esi
push esi
mov dword [esp], ebx
call fcn.0040735c
push edi
mov ebx, eax
mov esi, 1
test eax, eax
je 0x403764
xor si, si
cmp dword [ebp - 0x34], 0
je 0x402628
jmp 0x4025d2
mov dword [esp], 0xf
call fcn.00408308
push ecx
mov dword [esp + 4], 0x64
mov dword [esp], ebx
call sub.KERNEL32.dll_WaitForSingleObject
push edx
push edx
cmp eax, 0x102
je 0x4025c5
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetExitCodeProcess
push edi
push edi
cmp dword [ebp - 0x38], 0
js 0x40261d
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov esi, dword [ebp - 0x18c]
mov dword [esp], esi
call fcn.004077fc
push esi
push esi
xor esi, esi
jmp 0x402628
xor eax, eax
cmp dword [ebp - 0x24], 0
setne al
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
push ecx
jmp 0x403764
mov eax, 2
call fcn.0040140c
mov dword [esp], eax
call fcn.00407c98
push edx
mov esi, eax
test eax, eax
je 0x40267e
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
call fcn.004077fc
push ebx
push ebx
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push esi
push esi
xor esi, esi
jmp 0x403764
mov byte [ebx + section..ndata], 0
mov ecx, dword [ebp - 0x194]
mov byte [ecx + section..ndata], 0
mov esi, 1
jmp 0x403764
mov eax, 0xffffffee
call fcn.0040140c
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
push ecx
push ecx
mov byte [ebx + section..ndata], 0
mov ecx, dword [ebp - 0x194]
mov byte [ecx + section..ndata], 0
mov esi, 1
test eax, eax
je 0x403764
mov dword [esp + 4], eax
mov dword [esp], 0x40
mov dword [ebp - 0x198], eax
call sub.KERNEL32.dll_GlobalAlloc
push edx
push edx
mov ebx, eax
test eax, eax
mov edx, dword [ebp - 0x198]
je 0x403764
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call sub.VERSION.dll_GetFileVersionInfoA
sub esp, 0x10
test eax, eax
je 0x402787
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 0x402787
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push edi
push edi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
call fcn.004077fc
push eax
push eax
xor si, si
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalFree
push ecx
jmp 0x403764
cmp dword [0x425b40], 0
js 0x4028ab
mov eax, 0xfffffff0
call fcn.0040140c
mov edi, eax
mov eax, 1
call fcn.0040140c
mov esi, eax
cmp dword [ebp - 0x2c], 0
je 0x4027cf
mov dword [esp], edi
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov ebx, eax
test eax, eax
jne 0x4027f4
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.KERNEL32.dll_LoadLibraryExA
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x402894
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
push edi
push edi
mov edi, eax
test eax, eax
je 0x402854
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x402825
mov dword [esp], eax
call fcn.00401616
push esi
call edi
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
jmp 0x40286b
mov dword [esp + 0x10], section..data
mov dword [esp + 0xc], 0x40d404
mov dword [esp + 8], 0x429000
mov dword [esp + 4], 0x400
mov edx, dword [ebp - 0x190]
mov dword [esp], edx
call edi
xor esi, esi
jmp 0x40286b
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.00406cb9
push ecx
push ecx
mov esi, 1
cmp dword [ebp - 0x30], 0
jne 0x403764
mov dword [esp], ebx
call fcn.00404857
push edx
test eax, eax
je 0x403764
mov dword [esp], ebx
call sub.KERNEL32.dll_FreeLibrary
push eax
jmp 0x403764
mov dword [esp], 0xfffffff6
call fcn.00401616
push edi
mov esi, 1
jmp 0x403764
mov dword [esp], 0xffffffe7
call fcn.00401616
push esi
mov esi, 1
jmp 0x403764
mov eax, 0xfffffff0
call fcn.0040140c
mov dword [ebp - 0x18c], eax
mov eax, 0xffffffdf
call fcn.0040140c
mov edi, eax
mov eax, 2
call fcn.0040140c
mov dword [ebp - 0x190], eax
mov eax, 0xffffffcd
call fcn.0040140c
mov esi, eax
mov eax, 0x45
call fcn.0040140c
mov dword [ebp - 0x194], eax
mov dword [esp], edi
call fcn.00407527
push ebx
test eax, eax
jne 0x40291e
mov al, 0x21
call fcn.0040140c
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40b92c
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40ba3c
call sub.OLE32.dll_CoCreateInstance
sub esp, 0x14
test eax, eax
js 0x402aa1
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
lea ecx, [ebp - 0x20]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x40bc2c
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x402a91
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x50]
push edx
push edx
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp + 4], 0x42e800
mov dword [esp], eax
call dword [edx + 0x24]
push ecx
push ecx
mov edx, dword [ebp - 0x2c]
movzx edx, dh
test edx, edx
je 0x4029bd
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]
mov edx, dword [eax]
movzx ecx, word [ebp - 0x2a]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
push eax
push eax
cmp byte [esi], 0
je 0x4029f1
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
movzx ecx, byte [ebp - 0x2c]
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 edx, dword [eax]
mov ecx, dword [ebp - 0x190]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x2c]
push eax
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov esi, dword [ebp - 0x194]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x1c]
push eax
push eax
test ebx, ebx
js 0x402a85
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x40d444
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp - 0x18c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov ebx, 0x80004005
test eax, eax
je 0x402a85
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40d444
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]
push esi
test ebx, ebx
jns 0x402ab8
mov dword [esp], 0xfffffff0
call fcn.00401616
push ebx
mov esi, 1
jmp 0x403764
mov dword [esp], 0xfffffff4
call fcn.00401616
push ecx
xor esi, esi
jmp 0x403764
xor eax, eax
call fcn.0040140c
mov ebx, eax
mov eax, 0x11
call fcn.0040140c
mov esi, eax
mov eax, 0x23
call fcn.0040140c
mov edi, eax
mov dword [esp], ebx
call fcn.00407c98
push edx
test eax, eax
jne 0x402b1a
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.00406cb9
push edi
push edi
mov esi, 1
jmp 0x403764
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x17c], 2
mov dword [esp], ebx
call fcn.004078e6
push edx
mov byte [ebx + eax + 1], 0
mov dword [esp], esi
call fcn.004078e6
push ecx
mov byte [esi + eax + 1], 0
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x166], edi
mov eax, dword [ebp - 0x34]
mov word [ebp - 0x170], ax
mov dword [esp + 4], edi
mov dword [esp], 0
call fcn.00406cb9
push ebx
push ebx
lea eax, [ebp - 0x180]
mov dword [esp], eax
call sub.SHELL32.DLL_SHFileOperationA
push esi
xor esi, esi
test eax, eax
je 0x403764
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.00406cb9
push edi
push edi
mov si, 1
jmp 0x403764
cmp esi, 0xbadf00d
je 0x402be5
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.004079bf
push esi
push esi
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00407415
jmp 0x401c7c
inc dword [0x425b1c]
xor esi, esi
jmp 0x403764
xor ebx, ebx
test esi, esi
je 0x402c01
xor eax, eax
call fcn.0040140c
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x38], 0
je 0x402c15
mov eax, 0x11
call fcn.0040140c
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x2c], 0
je 0x402c29
mov eax, 0x22
call fcn.0040140c
mov edi, eax
mov eax, 0xffffffcd
call fcn.0040140c
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_WritePrivateProfileStringA
sub esp, 0x10
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
jmp 0x403764
mov dword [ebp - 0x20], 0x7e4e21
mov eax, 1
call fcn.0040140c
mov esi, eax
mov eax, 0x12
call fcn.0040140c
mov edx, eax
mov eax, 0xffffffdd
mov dword [ebp - 0x198], edx
call fcn.0040140c
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], edi
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x198]
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
sub esp, 0x18
xor esi, esi
mov eax, dword [ebp - 0x20]
cmp dword [ebx + section..ndata], eax
jne 0x403764
mov byte [ebx + section..ndata], 0
mov si, 1
jmp 0x403764
cmp dword [ebp - 0x2c], 0
jne 0x402d0f
mov eax, 2
call fcn.00401487
mov ebx, eax
test eax, eax
je 0x402d43
mov eax, 0x33
call fcn.0040140c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.ADVAPI32.DLL_RegDeleteValueA
push ecx
push ecx
mov edi, eax
mov dword [esp], ebx
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
jmp 0x402d39
mov eax, 0x22
call fcn.0040140c
mov edx, eax
mov ecx, dword [ebp - 0x2c]
and ecx, 2
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x402d32
mov eax, dword [0x425b0c]
sub eax, 0x7fffffff
call fcn.004014eb
mov edi, eax
xor esi, esi
test edi, edi
je 0x403764
mov esi, 1
jmp 0x403764
test esi, esi
jne 0x402d5d
mov esi, dword [0x425b0c]
sub esi, 0x7fffffff
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18c], edx
mov eax, 2
call fcn.0040140c
mov edi, eax
mov eax, 0x11
call fcn.0040140c
mov dword [esp + 0x20], 0
lea edx, [ebp - 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov edx, dword [0x425b38]
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
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0x24
mov esi, 1
test eax, eax
jne 0x403764
cmp ebx, 1
jne 0x402df3
mov al, 0x23
call fcn.0040140c
mov dword [esp], 0x40c804
call fcn.004078e6
push edx
inc eax
jmp 0x402e3b
cmp ebx, 4
jne 0x402e0e
mov eax, 3
call fcn.0040145b
mov dword [0x40c804], eax
mov eax, 4
jmp 0x402e3b
xor eax, eax
cmp ebx, 3
jne 0x402e3b
mov dword [esp + 0xc], 0xc00
mov dword [esp + 8], 0x40c804
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00403c64
sub esp, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x40c804
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
xor ebx, ebx
test eax, eax
setne bl
mov esi, ebx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
jmp 0x403764
mov eax, 0x20019
call fcn.00401487
mov dword [ebp - 0x18c], eax
mov eax, 0x33
call fcn.0040140c
mov byte [ebx + section..ndata], 0
mov esi, 1
cmp dword [ebp - 0x18c], 0
je 0x403764
mov dword [ebp - 0x20], 0x3ff
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x402f04
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x402f12
cmp eax, 4
je 0x402f12
cmp eax, 2
je 0x402f38
mov byte [ebx + section..ndata], 0
mov esi, 1
jmp 0x402f46
cmp eax, 4
jne 0x402f38
xor edx, edx
cmp dword [ebp - 0x2c], 0
sete dl
mov esi, edx
mov eax, dword [ebx + section..ndata]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push eax
push eax
jmp 0x402f46
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov byte [ebx + eax + section..ndata], 0
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
jmp 0x403764
mov eax, 0x20019
call fcn.00401487
mov dword [ebp - 0x18c], eax
mov eax, 3
call fcn.0040145b
mov byte [ebx + section..ndata], 0
mov esi, 1
cmp dword [ebp - 0x18c], 0
je 0x403764
mov dword [ebp - 0x1c], 0x3ff
cmp dword [ebp - 0x2c], 0
je 0x402fbd
mov dword [esp + 0xc], 0x3ff
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumKeyA
sub esp, 0x10
jmp 0x403005
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegEnumValueA
sub esp, 0x20
test eax, eax
jne 0x403764
mov byte [edi + 0x3ff], 0
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
push eax
xor esi, esi
jmp 0x403764
xor esi, esi
cmp byte [ebx + section..ndata], 0
je 0x403764
mov dword [esp], edi
call fcn.00407820
push ebx
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edi
jmp 0x403764
mov eax, 0xffffffed
call fcn.0040140c
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.00407694
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x403081
mov byte [ebx + section..ndata], 0
mov esi, 1
jmp 0x403764
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004077fc
push ecx
push ecx
xor esi, esi
jmp 0x403764
cmp dword [ebp - 0x34], 0
je 0x4030b2
mov eax, 1
call fcn.0040145b
mov byte [0x40c404], al
mov edx, 1
jmp 0x4030c7
mov eax, 0x11
call fcn.0040140c
mov dword [esp], eax
call fcn.004078e6
push edx
mov edx, eax
mov esi, 1
cmp byte [ebx + section..ndata], 0
je 0x403764
mov dword [esp], edi
mov dword [ebp - 0x198], edx
call fcn.00407820
push esi
mov dword [esp + 0x10], 0
lea ecx, [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x198]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x40c404
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
xor edx, edx
test eax, eax
sete dl
mov esi, edx
jmp 0x403764
mov eax, 2
call fcn.0040145b
test eax, eax
jle 0x403762
mov dword [ebp - 0x190], eax
cmp eax, 0x3ff
jle 0x40314b
mov dword [ebp - 0x190], 0x3ff
xor esi, esi
cmp byte [ebx + section..ndata], 0
je 0x403247
mov dword [esp], edi
call fcn.00407820
push ebx
mov edi, eax
xor ebx, ebx
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x19c], ecx
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
mov edx, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x19c]
je 0x403247
cmp dword [ebp - 0x1c], 1
jne 0x403247
cmp dword [ebp - 0x30], 0
je 0x4031dd
movzx eax, byte [ebp - 0x20]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x18c]
mov dword [esp], ecx
call fcn.004077fc
push ecx
push ecx
jmp 0x40376a
cmp bl, 0xa
mov al, byte [ebp - 0x20]
je 0x4031ea
cmp bl, 0xd
jne 0x40322b
cmp bl, al
je 0x4031f6
cmp al, 0xa
je 0x40321b
cmp al, 0xd
je 0x40321b
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
jmp 0x403247
mov ebx, dword [ebp - 0x194]
mov byte [esi + ebx + section..ndata], al
inc esi
jmp 0x403247
mov ebx, dword [ebp - 0x18c]
mov byte [ebx + esi], al
inc esi
mov bl, al
test al, al
je 0x403247
cmp esi, dword [ebp - 0x190]
jl 0x40316d
mov edx, dword [ebp - 0x194]
mov byte [esi + edx + section..ndata], 0
xor ecx, ecx
test esi, esi
sete cl
mov esi, ecx
jmp 0x403764
xor esi, esi
cmp byte [ebx + section..ndata], 0
je 0x403764
mov ebx, dword [ebp - 0x30]
mov eax, 2
call fcn.0040145b
mov dword [esp], edi
mov dword [ebp - 0x198], eax
call fcn.00407820
push edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x198]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
cmp dword [ebp - 0x38], 0
js 0x403764
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x18c]
mov dword [esp], ebx
call fcn.004077fc
push edi
push edi
jmp 0x403764
xor esi, esi
cmp byte [ebx + section..ndata], 0
je 0x403764
mov dword [esp], edi
call fcn.00407820
push ecx
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
push ebx
jmp 0x403764
mov esi, dword [ebp - 0x194]
cmp byte [esi + section..ndata], 0
je 0x403349
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
call fcn.00407820
push esi
lea edx, [ebp - 0x180]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
push edx
push edx
test eax, eax
je 0x403349
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004078bf
push ecx
push ecx
xor esi, esi
jmp 0x403764
mov byte [ebx + section..ndata], 0
mov esi, 1
jmp 0x403764
mov eax, 2
call fcn.0040140c
lea edx, [ebp - 0x180]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
push edx
push edx
cmp eax, 0xffffffff
jne 0x40339b
mov ecx, dword [ebp - 0x194]
mov byte [ecx + section..ndata], 0
mov byte [ebx + section..ndata], 0
mov esi, 1
jmp 0x403764
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x18c]
mov dword [esp], ebx
call fcn.004077fc
push eax
push eax
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004078bf
push eax
push eax
xor esi, esi
jmp 0x403764
mov eax, 0xfffffff0
call fcn.0040140c
mov esi, eax
mov dword [esp], eax
call fcn.00407527
push edi
test eax, eax
jne 0x4033ed
mov eax, 0xffffffed
call fcn.0040140c
mov dword [esp], esi
call fcn.00407664
push ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407694
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x40357b
mov edx, dword [0x425b98]
mov dword [ebp - 0x18c], edx
mov dword [esp + 4], edx
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
push ecx
push ecx
mov ebx, eax
mov edx, 0xfffffd66
test eax, eax
je 0x403562
mov dword [esp], 0
call fcn.00403a49
push eax
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.004039fe
push eax
push eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov dword [esp], 0x40
call sub.KERNEL32.dll_GlobalAlloc
push edx
push edx
mov edx, eax
test eax, eax
je 0x40350c
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x198], edx
call fcn.00403c64
sub esp, 0x10
mov edx, dword [ebp - 0x198]
mov eax, edx
mov dword [ebp - 0x190], edx
jmp 0x4034f8
mov edx, dword [eax]
lea ecx, [eax + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword [eax + 4]
add eax, ebx
mov dword [esp], eax
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x19c], ecx
call fcn.0040763b
sub esp, 0xc
mov edx, dword [ebp - 0x198]
mov ecx, dword [ebp - 0x19c]
lea eax, [ecx + edx]
cmp byte [eax], 0
jne 0x4034c0
mov edx, dword [ebp - 0x190]
mov dword [esp], edx
call sub.KERNEL32.dll_GlobalFree
push eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x18c]
mov dword [esp + 8], edx
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.00403c64
sub esp, 0x10
mov edx, eax
mov dword [esp], edi
mov dword [ebp - 0x198], edx
call sub.KERNEL32.dll_CloseHandle
push edx
mov edx, dword [ebp - 0x198]
test edx, edx
jns 0x403590
mov dword [esp], esi
call sub.KERNEL32.dll_DeleteFileA
push eax
mov eax, 0xffffffef
mov esi, 1
jmp 0x403597
mov eax, 0xfffffff3
xor esi, esi
mov dword [esp], eax
call fcn.00401616
push eax
jmp 0x403764
xor eax, eax
call fcn.0040145b
mov edi, eax
mov esi, 1
cmp eax, dword [0x425b58]
jae 0x403764
imul ebx, eax, 0x418
add ebx, dword [0x425b54]
mov eax, dword [ebp - 0x34]
cmp eax, 0
jl 0x403612
mov eax, dword [ebx + eax*4]
jne 0x4035f7
add ebx, 0x18
mov dword [esp + 4], ebx
mov ecx, dword [ebp - 0x18c]
mov dword [esp], ecx
call fcn.004078bf
push eax
push eax
xor si, si
jmp 0x403764
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x18c]
mov dword [esp], ebx
call fcn.004077fc
push eax
push eax
xor esi, esi
jmp 0x403764
not eax
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40362a
mov eax, 1
call fcn.0040145b
mov dword [ebp - 0x38], eax
jmp 0x403645
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
call fcn.004079bf
push eax
push eax
or dword [ebx + 8], 0x100
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebx + eax*4], edx
xor esi, esi
cmp dword [ebp - 0x30], 0
je 0x403764
mov dword [esp], edi
call fcn.00401218
push eax
jmp 0x403764
xor eax, eax
call fcn.0040145b
mov esi, 1
cmp eax, 0x1f
ja 0x403764
cmp dword [ebp - 0x30], 0
je 0x4036d8
cmp dword [ebp - 0x34], 0
je 0x4036b0
mov dword [esp], eax
call fcn.00401337
push ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00401287
push edi
push edi
xor si, si
jmp 0x403764
mov dword [esp], 0
call fcn.00401380
push edx
mov dword [esp + 4], eax
mov esi, dword [ebp - 0x18c]
mov dword [esp], esi
call fcn.004077fc
push ecx
push ecx
xor esi, esi
jmp 0x403764
cmp dword [ebp - 0x34], 0
mov edx, dword [0x425b48]
lea eax, [eax + 0x24]
je 0x4036f2
mov ecx, dword [ebp - 0x38]
mov dword [edx + eax*4 + 4], ecx
xor esi, esi
jmp 0x403764
mov eax, dword [edx + eax*4 + 4]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
call fcn.004079bf
push eax
push eax
xor esi, esi
jmp 0x403764
mov dword [esp + 0xc], 0
and esi, dword [0x4220ec]
mov dword [esp + 8], esi
mov dword [esp + 4], 0xb
mov ebx, dword [ebp - 0x190]
mov dword [esp], ebx
call sub.USER32.dll_SendMessageA
sub esp, 0x10
xor esi, esi
cmp dword [ebp - 0x3c], 0
je 0x403764
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.USER32.dll_InvalidateRect
sub esp, 0xc
jmp 0x403764
xor esi, esi
jmp 0x403764
xor esi, esi
add dword [0x425b10], esi
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret