Function at 0x4016ee
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ecx, 7
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x174]
push ebx
sub esp, 0x1bc
mov eax, dword [0x7abe8c]
mov esi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x170]
mov dword [0x4180e0], eax
mov edx, dword [ebp - 0x170]
mov edi, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x174]
mov ebx, edx
mov esi, edi
sub eax, 2
shl ebx, 0xa
add ebx, dword [0x40b634]
shl esi, 0xa
add esi, dword [0x40b634]
cmp eax, 0x41
ja case.0x401754.66
jmp dword [eax*4 + 0x40b004]
xor eax, eax
mov dword [esp], edx
mov dword [esp + 4], eax
jmp 0x401d37
inc dword [0x7ac6dc]
cmp dword [ebp - 0x18c], 0
je 0x401784
xor esi, esi
mov dword [esp], esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push edi
mov edx, 0x7fffffff
jmp case.0x401754.2
mov dword [esp], edx
call fcn.004016ab
xor ecx, ecx
push edx
dec eax
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004038fc
mov edx, eax
push ebx
push ebx
jmp case.0x401754.2
xor eax, eax
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00406ef1
jmp 0x403437
xor eax, eax
call fcn.004014aa
mov edx, 1
test eax, eax
cmovle eax, edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4031df
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4031df
cmp dword [ebp - 0x168], 0
jg 0x401827
mov eax, dword [edx*4 + 0x418020]
je 0x40180e
mov dword [0x4180dc], eax
jmp 0x401815
mov dword [edx*4 + 0x418060], eax
mov eax, 1
call fcn.004014aa
mov edx, dword [ebp - 0x170]
jmp 0x401847
mov eax, dword [edx*4 + 0x418060]
cmp dword [ebp - 0x164], 0
mov dword [edx*4 + 0x418020], eax
jns case.0x401754.66
mov eax, dword [0x4180dc]
mov dword [edx*4 + 0x418020], eax
jmp case.0x401754.66
mov ecx, dword [ebp - 0x168]
xor edx, edx
mov eax, dword [ecx*4 + 0x418020]
test eax, eax
sete dl
and eax, dword [ebp - 0x164]
mov dword [ecx*4 + 0x418020], eax
mov edx, dword [ebp + edx*4 - 0x170]
jmp case.0x401754.2
mov eax, dword [edi*4 + 0x418020]
jmp 0x40261a
mov eax, dword [0x7ac6c8]
test eax, eax
je 0x4018a4
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov eax, dword [0x7ac6d0]
test eax, eax
je case.0x401754.66
mov edx, dword [ebp - 0x170]
mov dword [esp], eax
mov dword [esp + 4], edx
jmp 0x402649
mov dword [esp], 0xfffffff0
call fcn.00401458
push edi
mov edx, dword [ebp - 0x16c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x401b64
mov dword [esp], 0xfffffff0
xor edi, edi
call fcn.00401458
push ebx
mov ebx, eax
mov dword [esp], eax
call fcn.004077d7
push esi
test eax, eax
je 0x40197e
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call fcn.00407747
mov esi, eax
push ecx
push ecx
mov al, byte [eax]
mov byte [esi], 0
mov byte [ebp - 0x18c], al
test al, al
jne 0x401945
cmp dword [ebp - 0x168], 0
je 0x401945
call fcn.004081f2
test eax, eax
je 0x401945
mov dword [esp], ebx
call fcn.00407590
jmp 0x40194d
mov dword [esp], ebx
call fcn.004075f0
push edx
test eax, eax
je 0x40196f
cmp eax, 0xb7
je 0x40195c
inc edi
jmp 0x40196f
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
push ecx
cmp eax, 1
adc edi, 0
mov cl, byte [ebp - 0x18c]
lea eax, [esi + 1]
mov byte [esi], cl
test cl, cl
jmp 0x401904
cmp dword [ebp - 0x16c], 0
je 0x4019c1
mov dword [esp], 0xffffffe6
call fcn.004016cf
mov eax, dword [0x40b634]
push esi
add eax, 0x5800
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00407e43
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp eax, 1
push edx
adc edi, 0
jmp 0x4038e8
mov dword [esp], 0xfffffff5
jmp 0x403653
xor ecx, ecx
mov dword [esp], ecx
call fcn.00401458
push ebx
mov dword [esp], eax
call fcn.00408031
jmp 0x402385
mov dword [esp], 0xffffffd0
call fcn.00401458
push edx
mov ebx, eax
mov dword [esp], 0xffffffdf
call fcn.00401458
push ecx
mov esi, eax
mov dword [esp], 0x13
call fcn.00401458
push edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push edx
push edx
test eax, eax
je 0x401a2c
mov dword [esp], 0xffffffe3
jmp 0x401a5f
cmp dword [ebp - 0x168], 0
je 0x403827
mov dword [esp], ebx
call fcn.00408031
push edi
test eax, eax
je 0x403827
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408759
push esi
push esi
mov dword [esp], 0xffffffe4
call fcn.004016cf
jmp 0x4031df
xor ecx, ecx
mov dword [esp], ecx
call fcn.00401458
push ebx
mov ebx, eax
lea eax, [ebp - 0x158]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
sub esp, 0x10
test eax, eax
je 0x401ad5
mov eax, dword [ebp - 0x158]
cmp ebx, eax
jae 0x401aab
cmp byte [eax], 0
jne 0x401aaf
xor edi, edi
jmp 0x401add
mov dword [esp], ebx
call fcn.00408031
push edx
test eax, eax
je 0x401ad5
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
call fcn.00407e43
push eax
push eax
jmp 0x401aab
mov byte [esi], 0
mov edi, 1
cmp dword [ebp - 0x168], 0
jne 0x4038e8
mov dword [esp + 8], 0x400
mov dword [esp + 4], esi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0xc
jmp 0x4038e8
mov dword [esp], 0xffffffff
xor edi, edi
call fcn.00401458
lea edx, [ebp - 0x158]
push esi
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x400
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SearchPathA]
sub esp, 0x18
test eax, eax
jmp 0x402e6e
mov dword [esp], 0xffffffef
call fcn.00401458
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004079d4
push edx
push edx
jmp 0x402e04
mov dword [esp], 0x31
call fcn.00401458
push ebx
mov ebx, dword [ebp - 0x170]
mov esi, eax
and ebx, 7
mov dword [esp], eax
call fcn.004077aa
push edi
test eax, eax
je 0x401ba2
mov dword [esp + 4], esi
mov dword [esp], 0x418100
call fcn.00407e43
jmp 0x401bd3
mov eax, dword [0x40b634]
mov dword [esp], 0x418100
add eax, 0x5800
mov dword [esp + 4], eax
call fcn.00407e43
push edx
push edx
mov dword [esp], eax
call fcn.00407e77
push ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatA
push ecx
push ecx
mov dword [esp], 0x418100
call fcn.00407f68
push edi
cmp ebx, 2
jle 0x401c28
mov dword [esp], 0x418100
call fcn.00408031
push edx
xor edx, edx
test eax, eax
je 0x401c14
lea edx, [ebp - 0x164]
add eax, 0x14
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push edi
mov edx, eax
push edi
sub ebx, 3
or ebx, 0x80000000
test ebx, edx
jne 0x401c2c
mov ebx, 1
jmp 0x401c42
test ebx, ebx
jne 0x401c3d
mov dword [esp], 0x418100
call fcn.004078e7
push ebx
xor ebx, ebx
jmp 0x401c4e
cmp ebx, 1
jne 0x401c49
mov eax, 1
jmp 0x401c53
mov ebx, 2
mov eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x418100
call fcn.00407980
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x401d43
test ebx, ebx
je 0x401c97
mov dword [esp + 4], esi
mov dword [esp], 0xffffffe2
call fcn.00406ef1
cmp ebx, 2
push ecx
push ecx
jmp 0x40337f
mov eax, dword [0x40b634]
mov dword [esp], 0x418900
mov dword [esp + 4], eax
call fcn.00407e43
mov eax, dword [0x40b634]
push edi
push edi
mov dword [esp + 4], 0x418100
mov dword [esp], eax
call fcn.00407e43
push eax
push eax
mov eax, dword [ebp - 0x15c]
mov dword [esp], 0x418500
mov dword [esp + 4], eax
call fcn.00408218
push eax
push eax
mov eax, dword [0x40b634]
mov dword [esp + 4], 0x418900
mov dword [esp], eax
call fcn.00407e43
push eax
push eax
mov eax, dword [ebp - 0x170]
sar eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x418500
call fcn.004076db
push edx
push edx
cmp eax, 4
je 0x401c2c
cmp eax, 5
jne 0x401d28
inc dword [0x418028]
jmp 0x4038ee
mov dword [esp + 4], 0x418100
mov dword [esp], 0xfffffffa
call fcn.00406ef1
push esi
push esi
jmp 0x401784
mov dword [esp + 4], esi
xor ebx, ebx
mov dword [esp], 0xffffffea
call fcn.00406ef1
push ecx
push ecx
inc dword [0x418054]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
call fcn.00403b6b
dec dword [0x418054]
mov ebx, eax
mov eax, dword [ebp - 0x164]
and eax, dword [ebp - 0x160]
sub esp, 0x10
inc eax
je 0x401db1
lea eax, [ebp - 0x164]
xor edx, edx
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
test ebx, ebx
jns case.0x401754.66
cmp ebx, 0xfffffffe
jne 0x401df0
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x418100
call fcn.00408218
push edi
push edi
mov dword [esp + 4], esi
mov dword [esp], 0x418100
call sub.KERNEL32.dll_lstrcatA
jmp 0x401e04
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x418100
call fcn.00408218
push esi
push esi
mov dword [esp + 4], 0x200010
mov dword [esp], 0x418100
jmp 0x402165
xor ebx, ebx
mov dword [esp], ebx
jmp 0x401e74
mov dword [esp], 0x31
call fcn.00401458
push edx
mov edx, dword [ebp - 0x170]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004076db
push ecx
push ecx
test eax, eax
je 0x403827
cmp dword [ebp - 0x168], eax
je 0x402019
cmp dword [ebp - 0x160], eax
jne case.0x401754.66
mov edx, dword [ebp - 0x15c]
jmp case.0x401754.2
mov dword [esp], 0xfffffff0
call fcn.00401458
push edi
mov edx, dword [ebp - 0x16c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040879e
jmp 0x403437
mov dword [esp], 1
call fcn.00401458
push esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
jmp 0x402619
mov eax, 2
call fcn.004014aa
mov esi, eax
mov eax, 3
mov dword [ebp - 0x190], edx
call fcn.004014aa
mov dword [esp], 1
mov edi, eax
call fcn.00401458
push edx
mov dword [esp], eax
mov dword [ebp - 0x18c], eax
call sub.KERNEL32.dll_lstrlenA
push ecx
mov ecx, dword [ebp - 0x190]
mov byte [ebx], 0
test ecx, ecx
cmove esi, eax
test esi, esi
je case.0x401754.66
test edi, edi
mov edx, dword [ebp - 0x18c]
jns 0x401f0d
add edi, eax
js case.0x401754.66
cmp edi, eax
mov dword [esp], ebx
cmovg edi, eax
add edx, edi
mov dword [esp + 4], edx
call fcn.00407e43
push eax
push eax
test esi, esi
jns 0x401f33
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
push edi
add esi, eax
js 0x401f41
cmp esi, 0x3ff
jg case.0x401754.66
jmp 0x401f43
xor esi, esi
mov byte [ebx + esi], 0
jmp case.0x401754.66
mov dword [esp], 0x20
call fcn.00401458
push ecx
mov ebx, eax
mov dword [esp], 0x31
call fcn.00401458
push esi
cmp dword [ebp - 0x160], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x401f80
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x401f86
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edx
push edx
test eax, eax
jne 0x402019
jmp 0x402395
mov dword [esp], 1
call fcn.00401458
push edi
mov esi, eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
sub esp, 0xc
test eax, eax
jne 0x401fca
mov byte [ebx], 0
mov edi, 1
jmp 0x401fec
cmp dword [ebp - 0x168], 0
jne 0x401fd7
xor edi, edi
jmp 0x401fec
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push esi
push esi
test eax, eax
je 0x401fc0
jmp 0x401fd3
mov byte [ebx + 0x3ff], 0
jmp 0x4038e8
xor eax, eax
mov esi, dword [ebp - 0x15c]
call fcn.004014aa
mov ebx, eax
mov eax, 1
call fcn.004014aa
test esi, esi
jne 0x402035
cmp ebx, eax
jge 0x402024
mov edx, dword [ebp - 0x164]
jmp case.0x401754.2
jle 0x402395
mov edx, dword [ebp - 0x160]
jmp case.0x401754.2
cmp ebx, eax
jb 0x402019
cmp eax, ebx
jae 0x402395
jmp 0x40202a
mov eax, 1
call fcn.004014aa
mov esi, eax
mov eax, 2
call fcn.004014aa
mov edi, dword [ebp - 0x164]
mov ecx, eax
cmp edi, 0xd
ja case.default.0x402066
jmp dword [edi*4 + 0x40b10c]
lea eax, [eax + esi]
jmp 0x402362
sub esi, eax
jmp case.default.0x402066
imul ecx, esi
mov eax, ecx
jmp 0x4020e3
mov edi, 1
test eax, eax
je 0x402362
mov eax, esi
cdq
idiv ecx
jmp 0x4020e3
or esi, eax
jmp case.default.0x402066
and esi, eax
jmp case.default.0x402066
xor esi, eax
jmp case.default.0x402066
test esi, esi
sete al
jmp 0x4020ac
or ecx, esi
setne al
movzx eax, al
jmp 0x4020e3
test esi, esi
setne al
xor edx, edx
test ecx, ecx
setne dl
and edx, eax
jmp 0x4020d3
mov edi, 1
test eax, eax
je 0x402362
mov eax, esi
cdq
idiv ecx
mov eax, edx
jmp 0x4020e3
shl esi, cl
jmp case.default.0x402066
sar esi, cl
jmp case.default.0x402066
shr esi, cl
mov eax, esi
xor edi, edi
jmp 0x402362
mov dword [esp], 1
call fcn.00401458
push ecx
mov esi, eax
mov eax, 2
call fcn.004014aa
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
jmp case.0x401754.66
mov eax, dword [ebp - 0x168]
mov esi, dword [0x419500]
test eax, eax
je 0x4021b2
test esi, esi
je 0x402146
sub eax, 2
mov esi, dword [esi]
cmp eax, 0xffffffff
je 0x402142
dec eax
test esi, esi
jne 0x402134
jmp 0x402146
test esi, esi
jne 0x40216f
xor eax, eax
mov dword [esp + 4], 0xffffffe8
mov dword [esp], eax
call fcn.00408218
push edx
push edx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.004076db
jmp 0x401d3c
add esi, 4
mov dword [esp], 0x418100
mov dword [esp + 4], esi
call fcn.00407e43
push eax
push eax
mov eax, dword [0x419500]
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407e43
push eax
push eax
mov dword [esp + 4], 0x418100
mov eax, dword [0x419500]
add eax, 4
mov dword [esp], eax
jmp 0x403432
test edi, edi
je 0x4021e4
test esi, esi
je 0x403827
lea eax, [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407e43
push eax
push eax
mov eax, dword [esi]
mov dword [0x419500], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4031df
mov dword [esp + 4], 0x404
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov ebx, eax
push edi
mov eax, dword [ebp - 0x170]
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.00408218
push eax
push eax
mov eax, dword [0x419500]
mov dword [ebx], eax
mov dword [0x419500], ebx
jmp case.0x401754.66
mov eax, 3
call fcn.004014aa
mov esi, eax
mov eax, 4
call fcn.004014aa
mov edi, eax
test byte [ebp - 0x15c], 1
je 0x402256
mov dword [esp], 0x33
call fcn.00401458
push esi
mov esi, eax
test byte [ebp - 0x15c], 2
je 0x40226e
mov dword [esp], 0x44
call fcn.00401458
push ecx
mov edi, eax
cmp dword [ebp - 0x174], 0x21
jne 0x4022fb
mov eax, 1
call fcn.004014aa
mov dword [ebp - 0x18c], eax
mov eax, 2
call fcn.004014aa
mov ecx, dword [ebp - 0x15c]
sar ecx, 2
je 0x4022de
lea edx, [ebp - 0x158]
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
sub esp, 0x1c
test eax, eax
sete al
movzx eax, al
mov edi, eax
jmp 0x40234f
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402344
mov dword [esp], 1
call fcn.00401458
push edx
mov dword [ebp - 0x18c], eax
mov dword [esp], 0x12
call fcn.00401458
push ecx
cmp byte [eax], 0
mov edx, dword [ebp - 0x18c]
jne 0x402328
xor eax, eax
cmp byte [edx], 0
jne 0x40232f
xor edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x158], eax
sub esp, 0x10
xor edi, edi
cmp dword [ebp - 0x170], 0
js 0x4038e8
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407d5f
push eax
push eax
jmp 0x4038e8
xor eax, eax
call fcn.004014aa
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
push edi
test eax, eax
je 0x402395
mov edx, dword [ebp - 0x16c]
jmp case.0x401754.2
mov edx, dword [ebp - 0x168]
jmp case.0x401754.2
mov eax, 2
call fcn.004014aa
mov esi, eax
mov eax, 1
call fcn.004014aa
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
jmp 0x40261a
xor eax, eax
add edi, dword [0x419568]
call fcn.004014aa
mov dword [esp + 8], edi
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x4038e0
test byte [ebp - 0x163], 1
je 0x402406
mov eax, 2
call fcn.004014aa
jmp 0x402421
mov eax, dword [ebp - 0x168]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push ecx
mov esi, eax
mov eax, dword [ebp - 0x164]
mov ecx, eax
mov edx, eax
and ecx, 3
shr edx, 0x1e
mov dword [ebp - 0x18c], ecx
mov ecx, eax
and ecx, 4
mov dword [ebp - 0x190], ecx
mov ecx, eax
shr ecx, 0x1f
mov dword [ebp - 0x19c], ecx
mov ecx, edx
and ecx, 1
bt eax, 0x10
mov byte [ebp - 0x194], cl
jae 0x402471
mov dword [esp], 0x11
call fcn.00401458
mov edi, eax
push edx
jmp 0x402478
movzx edi, word [ebp - 0x16c]
lea eax, [ebp - 0x158]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_GetClientRect]
xor edx, edx
push eax
push eax
mov eax, dword [ebp - 0x164]
and eax, 0xfef0
cmp byte [ebp - 0x194], 0
cmovne edx, dword [ebp - 0x14c]
xor ecx, ecx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x19c]
imul eax, dword [ebp - 0x150]
cmp dword [ebp - 0x190], 0
mov dword [ebp - 0x194], eax
je 0x4024d2
mov ecx, dword [0x7abe88]
mov eax, dword [ebp - 0x198]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x194]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], edi
mov dword [esp], ecx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_LoadImageA]
sub esp, 0x18
mov edi, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], 0x172
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
test eax, eax
je 0x40253f
cmp dword [ebp - 0x18c], 0
jne 0x40253f
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push eax
cmp dword [ebp - 0x170], 0
js case.0x401754.66
mov dword [esp + 4], edi
jmp 0x40261e
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDC]
push ecx
mov esi, eax
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
push edi
mov edi, eax
mov eax, 2
call fcn.004014aa
mov dword [esp + 8], 0x48
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
sub esp, 0xc
neg eax
mov dword [0x4180a0], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push eax
push eax
mov eax, 3
call fcn.004014aa
mov byte [0x4180b7], 1
mov dword [0x4180b0], eax
mov eax, dword [ebp - 0x160]
mov edx, eax
and edx, 1
mov byte [0x4180b4], dl
mov edx, eax
and eax, 4
mov byte [0x4180b6], al
mov eax, dword [ebp - 0x16c]
and edx, 2
mov byte [0x4180b5], dl
mov dword [esp + 4], eax
mov dword [esp], 0x4180bc
call fcn.00408218
push eax
push eax
mov dword [esp], 0x4180a0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push edx
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x403886
xor eax, eax
call fcn.004014aa
mov ebx, eax
mov eax, 1
call fcn.004014aa
cmp dword [ebp - 0x164], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
jne 0x402654
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403437
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x403437
xor eax, eax
mov dword [esp], eax
call fcn.00401458
push edx
mov esi, eax
mov dword [esp], 0x31
call fcn.00401458
push ecx
mov edi, eax
mov dword [esp], 0x22
call fcn.00401458
push ebx
mov ebx, eax
mov dword [esp], 0x15
call fcn.00401458
push eax
mov dword [esp], 0xffffffec
call fcn.004016cf
push eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x13c], eax
cmp byte [esi], 0
jne 0x4026cf
xor esi, esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], edi
cmp byte [ebx], 0
jne 0x4026e2
xor ebx, ebx
mov eax, dword [0x40b634]
mov dword [ebp - 0x144], ebx
add eax, 0x5800
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.0040768c
push edi
mov edi, 1
test eax, eax
je 0x4038e8
test byte [ebp - 0x154], 0x40
je case.0x401754.66
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call fcn.00408a82
push esi
mov eax, dword [ebp - 0x120]
jmp 0x4031d6
xor eax, eax
mov dword [esp], eax
call fcn.00401458
push edx
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffeb
call fcn.00406ef1
push ecx
push ecx
mov dword [esp], ebx
call fcn.0040761c
push ebx
mov ebx, eax
test eax, eax
je 0x403827
cmp dword [ebp - 0x168], 0
je 0x402796
mov dword [esp], eax
call fcn.00408a82
push edi
cmp dword [ebp - 0x16c], 0
js 0x40279a
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407d5f
push ecx
push ecx
xor edi, edi
jmp 0x4027a4
test eax, eax
setne al
movzx eax, al
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40381e
mov dword [esp], 2
call fcn.00401458
push edi
mov dword [esp], eax
call fcn.00408031
mov edi, eax
push edx
test eax, eax
je 0x4027e7
mov eax, dword [eax + 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407d5f
push ecx
push ecx
mov eax, dword [edi + 0x18]
jmp 0x40261a
mov byte [ebx], 0
jmp 0x403824
mov dword [esp], 0xffffffee
call fcn.00401458
push ecx
mov dword [ebp - 0x190], eax
mov dword [esp], 0xb
call fcn.004081a6
lea edx, [ebp - 0x17c]
push edi
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x190]
mov dword [esp], ecx
call eax
mov edi, eax
push edx
push edx
mov byte [ebx], 0
mov byte [esi], 0
test eax, eax
je 0x403827
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edx
push edx
mov dword [ebp - 0x18c], eax
test eax, eax
je 0x403827
mov dword [esp], 0xc
call fcn.004081a6
push edx
mov dword [ebp - 0x194], eax
mov dword [esp], 0xd
call fcn.004081a6
push ecx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
mov eax, dword [ebp - 0x194]
call eax
mov edx, dword [ebp - 0x198]
sub esp, 0x10
test eax, eax
jne 0x4028b6
mov edi, 1
jmp 0x402922
lea eax, [ebp - 0x158]
mov dword [esp + 4], 0x40b000
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x178]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call edx
sub esp, 0x10
test eax, eax
je 0x4028af
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x178]
xor edi, edi
mov eax, dword [eax + edx*4 + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407d5f
push ecx
push ecx
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + edx*4 + 0xc]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407d5f
push ebx
push ebx
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40381e
cmp dword [section..bss], 0
js 0x402a59
mov dword [esp], 0xfffffff0
call fcn.00401458
push esi
mov edi, eax
mov dword [esp], 1
call fcn.00401458
push edx
cmp dword [ebp - 0x160], 0
mov esi, eax
jne 0x40298f
xor ebx, ebx
mov dword [esp + 8], 8
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x40299f
jmp 0x402a50
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
push ecx
test eax, eax
je 0x40296a
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
push edx
push edx
test eax, eax
je 0x402a0d
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x4029de
mov dword [ebp - 0x18c], eax
mov dword [esp], edi
call fcn.004016cf
push eax
mov eax, dword [ebp - 0x18c]
call eax
test eax, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x402a24
mov ecx, dword [0x40b634]
mov dword [esp + 0x10], 0x40a000
mov dword [esp + 0xc], 0x419500
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x400
mov ecx, dword [ebp - 0x18c]
mov dword [esp], ecx
call eax
jmp 0x402a24
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.00406ef1
push edi
push edi
mov edi, 1
cmp dword [ebp - 0x164], 0
jne 0x4038e8
mov dword [esp], ebx
call fcn.004049ae
push esi
test eax, eax
je 0x4038e8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40381e
mov dword [esp], 0xfffffff6
jmp 0x402a60
mov dword [esp], 0xffffffe7
call fcn.004016cf
push ecx
jmp 0x403827
mov dword [esp], 0xfffffff0
call fcn.00401458
push esi
mov dword [ebp - 0x190], eax
mov dword [esp], 0xffffffdf
call fcn.00401458
push edi
mov esi, eax
mov dword [esp], 2
call fcn.00401458
push edx
mov dword [ebp - 0x194], eax
mov dword [esp], 0xffffffcd
call fcn.00401458
push ecx
mov dword [ebp - 0x18c], eax
mov dword [esp], 0x45
call fcn.00401458
push ebx
mov edi, dword [ebp - 0x160]
mov dword [ebp - 0x198], eax
mov dword [esp], esi
call fcn.004077aa
push edx
test eax, eax
jne 0x402ae6
mov dword [esp], 0x21
call fcn.00401458
push ebx
lea eax, [ebp - 0x178]
xor ecx, ecx
mov dword [esp + 0xc], 0x411fec
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], 0x40cd0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jns 0x402b26
mov dword [esp], 0xfffffff0
jmp 0x402a60
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x41159c
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x402c92
mov eax, dword [ebp - 0x178]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x50]
bt edi, 0xf
mov ebx, eax
push edx
push edx
jb 0x402b8c
mov edx, dword [ebp - 0x178]
mov eax, dword [0x40b634]
mov ecx, dword [edx]
add eax, 0x5800
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0x24]
push eax
push eax
mov eax, edi
sar eax, 0xc
and eax, 7
je 0x402baa
mov edx, dword [ebp - 0x178]
mov ecx, dword [edx]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [ecx + 0x3c]
push eax
push eax
mov eax, dword [ebp - 0x178]
mov ecx, edi
shr ecx, 0x10
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
push eax
push eax
mov eax, dword [ebp - 0x18c]
cmp byte [eax], 0
je 0x402bf3
mov eax, dword [ebp - 0x178]
and edi, 0xfff
mov edx, dword [eax]
mov dword [esp + 8], edi
mov ecx, dword [ebp - 0x18c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x44]
sub esp, 0xc
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x194]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x2c]
push eax
push eax
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x198]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x1c]
push eax
push eax
test ebx, ebx
js 0x402c83
mov dword [esp + 0x14], 0x400
xor edi, edi
mov ebx, 0x80004005
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esp, 0x18
test eax, eax
je 0x402c83
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push esi
mov eax, dword [ebp - 0x178]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
test ebx, ebx
js 0x402b1a
mov dword [esp], 0xfffffff4
jmp 0x401a5f
xor eax, eax
mov dword [esp], eax
call fcn.00401458
push edx
mov ebx, eax
mov dword [esp], 0x11
call fcn.00401458
push ecx
mov esi, eax
mov dword [esp], 0x23
call fcn.00401458
push edi
mov edi, eax
mov dword [esp], ebx
call fcn.00408031
push edx
test eax, eax
je 0x402d68
mov dword [ebp - 0x154], 2
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x158], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
push edx
mov byte [ebx + eax + 1], 0
mov dword [esp], esi
call sub.KERNEL32.dll_lstrlenA
push ecx
mov byte [esi + eax + 1], 0
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x150], ebx
xor ebx, ebx
mov dword [ebp - 0x13e], edi
mov dword [ebp - 0x14c], esi
mov word [ebp - 0x148], ax
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00406ef1
lea eax, [ebp - 0x158]
push esi
push esi
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push edi
mov edi, eax
test eax, eax
je 0x4038e8
xor esi, esi
mov dword [esp], 0xfffffff9
mov dword [esp + 4], esi
call fcn.00406ef1
push edi
push edi
jmp 0x403827
cmp edx, 0xbadf00d
jne 0x402146
inc dword [0x418034]
jmp case.0x401754.66
xor ebx, ebx
test edx, edx
je 0x402dab
xor ecx, ecx
mov dword [esp], ecx
call fcn.00401458
push ebx
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x16c], 0
je 0x402dc5
mov dword [esp], 0x11
call fcn.00401458
push edx
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x160], 0
je 0x402ddf
mov dword [esp], 0x22
call fcn.00401458
push edi
mov edi, eax
mov dword [esp], 0xffffffcd
call fcn.00401458
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
sub esp, 0x10
test eax, eax
jmp 0x40337f
mov word [ebp - 0x158], 0xa
mov dword [esp], 1
call fcn.00401458
push edx
mov edi, eax
mov dword [esp], 0x12
call fcn.00401458
push ecx
mov esi, eax
mov dword [esp], 0xffffffdd
call fcn.00401458
push edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x158]
mov dword [esp], edi
xor edi, edi
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
sub esp, 0x18
cmp byte [ebx], 0xa
jne 0x4038e8
jmp 0x40346a
cmp dword [ebp - 0x160], 0
jne 0x402ec3
mov dword [esp], 2
call fcn.004014dd
mov esi, eax
push edi
test eax, eax
je 0x403827
mov dword [esp], 0x33
call fcn.00401458
push ecx
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ebx
push ebx
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
jmp 0x402f3b
mov dword [esp], 0x22
call fcn.00401458
mov ebx, eax
push edx
mov eax, dword [ebp - 0x160]
sar eax, 1
mov dword [ebp - 0x158], eax
cmp byte [ebx], 0
je 0x403827
or eax, 0x100020
mov dword [ebp - 0x158], eax
test edi, edi
js 0x402f04
add edi, dword [0x418024]
sub edi, 0x7fffffff
lea eax, [ebp - 0x158]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407b8b
push esi
push esi
test eax, eax
je 0x403827
mov edx, dword [ebp - 0x158]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.00401541
sub esp, 0xc
mov ebx, eax
test ebx, ebx
setne al
jmp 0x403382
mov dword [ebp - 0x190], edx
mov esi, dword [ebp - 0x160]
mov edi, dword [ebp - 0x15c]
mov dword [esp], 2
call fcn.00401458
push ecx
mov dword [ebp - 0x18c], eax
mov dword [esp], 0x11
call fcn.00401458
push ebx
mov edx, dword [ebp - 0x190]
test edx, edx
js 0x402f8d
add edx, dword [0x418024]
sub edx, 0x7fffffff
lea ecx, [ebp - 0x158]
mov dword [esp + 8], 0x100022
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00407c55
sub esp, 0x10
test eax, eax
jne 0x403827
mov ebx, dword [ebp - 0x158]
test ebx, ebx
je 0x403827
cmp esi, 1
jne 0x402fe6
mov dword [esp], 0x23
call fcn.00401458
push eax
mov dword [esp], 0x418900
call sub.KERNEL32.dll_lstrlenA
inc eax
push edx
jmp 0x40302f
cmp esi, 4
jne 0x403001
mov eax, 3
call fcn.004014aa
mov dword [0x418900], eax
mov eax, 4
jmp 0x40302f
xor eax, eax
cmp esi, 3
jne 0x40302f
xor eax, eax
mov dword [esp + 0xc], 0xc00
mov dword [esp + 8], 0x418900
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call fcn.00403b6b
sub esp, 0x10
xor esi, esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x418900
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x18c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
setne al
mov dword [esp], ebx
movzx eax, al
mov edi, eax
jmp 0x403124
mov dword [esp], 0x20019
call fcn.004014dd
push edx
mov esi, eax
mov dword [esp], 0x33
call fcn.00401458
push ecx
mov byte [ebx], 0
test esi, esi
je 0x403827
lea edx, [ebp - 0x178]
xor edi, edi
mov dword [ebp - 0x178], 0x400
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x158]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x4030e5
mov eax, dword [ebp - 0x158]
cmp eax, 4
je 0x4030f4
cmp eax, 1
je 0x4030ef
cmp eax, 2
je 0x403114
mov byte [ebx], 0
mov edi, 1
jmp 0x403121
cmp eax, 4
jne 0x403114
xor eax, eax
cmp dword [ebp - 0x160], 0
sete al
mov edi, eax
mov eax, dword [ebx]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407d5f
push ecx
push ecx
jmp 0x403121
mov edi, dword [ebp - 0x160]
mov byte [ebx + 0x3ff], 0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40381e
mov dword [esp], 0x20019
call fcn.004014dd
push edx
mov esi, eax
mov eax, 3
call fcn.004014aa
mov byte [ebx], 0
test esi, esi
je 0x403827
cmp dword [ebp - 0x160], 0
mov dword [ebp - 0x158], 0x3ff
je 0x403186
mov dword [esp + 0xc], 0x3ff
xor edi, edi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
sub esp, 0x10
jmp 0x40311a
xor edi, edi
lea edx, [ebp - 0x158]
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
sub esp, 0x20
test eax, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x40311a
mov dword [esp], ebx
call fcn.00407d84
push ebx
test eax, eax
je case.0x401754.66
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
jmp case.0x401754.66
mov dword [esp], 0xffffffed
call fcn.00401458
push edx
mov edx, dword [ebp - 0x168]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x16c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407980
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x40261a
jmp 0x40346a
cmp dword [ebp - 0x168], 0
je 0x40323e
mov eax, 1
mov esi, 1
call fcn.004014aa
mov byte [0x418500], al
jmp 0x403256
mov dword [esp], 0x11
call fcn.00401458
push esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
push edi
mov esi, eax
cmp byte [ebx], 0
je 0x403827
mov dword [esp], ebx
call fcn.00407d84
push ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x418500
mov dword [esp], eax
call fcn.00407a78
sub esp, 0xc
jmp 0x402e04
mov eax, 2
call fcn.004014aa
test eax, eax
jle case.0x401754.66
xor edi, edi
cmp byte [ebx], 0
je 0x403379
mov dword [esp], ebx
mov edi, 0x3ff
cmp eax, edi
cmovle edi, eax
xor ebx, ebx
call fcn.00407d84
push edx
mov ecx, eax
mov byte [ebp - 0x18c], 0
lea eax, [ebp - 0x158]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x190], ecx
call fcn.00407a34
sub esp, 0xc
test eax, eax
je 0x403377
cmp dword [ebp - 0x164], 0
movzx eax, byte [ebp - 0x158]
mov ecx, dword [ebp - 0x190]
je 0x403313
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407d5f
push eax
push eax
jmp 0x4038ee
cmp byte [ebp - 0x18c], 0xd
je 0x403325
cmp byte [ebp - 0x18c], 0xa
jne 0x40335f
cmp byte [ebp - 0x18c], al
je 0x403335
cmp al, 0xd
je 0x403359
cmp al, 0xa
je 0x403359
xor edi, edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], edi
mov dword [esp + 4], 0xffffffff
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x403377
mov byte [esi + ebx], al
inc ebx
jmp 0x403377
inc ebx
mov byte [esi + ebx - 1], al
test al, al
je 0x403377
cmp edi, ebx
je 0x403379
mov byte [ebp - 0x18c], al
jmp 0x4032bf
mov edi, ebx
mov byte [esi + edi], 0
test edi, edi
sete al
movzx eax, al
mov edi, eax
jmp 0x4038e8
cmp byte [ebx], 0
je case.0x401754.66
mov ecx, dword [ebp - 0x164]
mov eax, 2
mov dword [ebp - 0x18c], ecx
call fcn.004014aa
mov dword [esp], ebx
xor ebx, ebx
mov edi, eax
call fcn.00407d84
push ecx
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
cmp dword [ebp - 0x16c], 0
js case.0x401754.66
jmp 0x40387f
mov dword [esp], ebx
call fcn.00407d84
push edx
test eax, eax
je case.0x401754.66
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4031df
mov dword [esp], esi
call fcn.00407d84
push edi
test eax, eax
je 0x40346a
lea edx, [ebp - 0x158]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push esi
test eax, eax
je 0x40346a
lea eax, [ebp - 0x12c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407e43
push ecx
push ecx
xor edi, edi
jmp 0x4038e8
mov dword [esp], 2
call fcn.00401458
lea edx, [ebp - 0x158]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edx
push edx
cmp eax, 0xffffffff
jne 0x403472
mov byte [esi], 0
mov byte [ebx], 0
jmp 0x403827
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407d5f
push esi
push esi
jmp 0x403425
mov dword [esp], 0xfffffff0
call fcn.00401458
push edx
mov esi, eax
mov dword [esp], eax
call fcn.004077aa
push ecx
test eax, eax
jne 0x4034ab
mov dword [esp], 0xffffffed
call fcn.00401458
push eax
mov dword [esp], esi
call fcn.004078e7
push edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407980
mov dword [ebp - 0x18c], eax
sub esp, 0xc
inc eax
jne 0x4034f1
mov dword [esp], esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xffffffef
push ebx
jmp 0x403650
cmp dword [ebp - 0x168], 0
mov edx, dword [ebp - 0x16c]
je 0x403610
mov eax, dword [0x419528]
mov dword [ebp - 0x194], edx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x190], eax
mov dword [esp + 4], eax
mov dword [esp], 0x40
call edi
test eax, eax
push ecx
mov ebx, eax
push ecx
mov edx, dword [ebp - 0x194]
je 0x403610
xor eax, eax
mov dword [esp], eax
call fcn.00403b3f
push eax
mov eax, dword [ebp - 0x190]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403b17
push eax
push eax
mov eax, dword [ebp - 0x168]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call edi
mov edi, eax
push edx
push edx
test eax, eax
je 0x4035e4
mov eax, dword [ebp - 0x168]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x16c]
mov dword [esp], eax
call fcn.00403b6b
mov eax, edi
sub esp, 0x10
cmp byte [eax], 0
je 0x4035da
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [esp + 8], ecx
mov dword [ebp - 0x198], ecx
mov dword [esp + 4], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x194], edx
add ecx, ebx
mov dword [esp], ecx
call fcn.004078ca
mov edx, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x198]
sub esp, 0xc
lea eax, [edx + ecx]
jmp 0x40359b
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ecx
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.00407a78
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
or edx, 0xffffffff
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00403b6b
mov ebx, eax
mov eax, dword [ebp - 0x18c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
test ebx, ebx
js 0x4034d8
mov eax, 0xfffffff3
xor edi, edi
mov dword [esp], eax
call fcn.004016cf
jmp 0x40381e
xor eax, eax
call fcn.004014aa
mov edi, eax
cmp eax, dword [0x41954c]
jae 0x403827
imul ebx, eax, 0x418
mov eax, dword [ebp - 0x168]
add ebx, dword [0x419548]
test eax, eax
js 0x4036a0
mov eax, dword [ebx + eax*4]
jne 0x40387f
add ebx, 0x18
mov dword [esp], esi
mov dword [esp + 4], ebx
jmp 0x403432
not eax
mov dword [ebp - 0x168], eax
test eax, eax
je 0x4036be
mov eax, 1
call fcn.004014aa
mov dword [ebp - 0x16c], eax
jmp 0x4036dc
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
call fcn.00408218
push eax
push eax
or dword [ebx + 8], 0x100
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x168]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x164], 0
je case.0x401754.66
mov dword [esp], edi
call fcn.00401258
jmp 0x4031df
xor eax, eax
call fcn.004014aa
cmp eax, 0x1f
ja 0x403827
cmp dword [ebp - 0x164], 0
mov ecx, dword [ebp - 0x168]
je 0x403754
test ecx, ecx
je 0x403744
mov dword [esp], eax
call fcn.0040137c
push eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.004012c9
jmp 0x403437
xor ebx, ebx
mov dword [esp], ebx
call fcn.004013d5
push edi
jmp 0x40387f
test ecx, ecx
mov edx, dword [0x419530]
lea eax, [eax + 0x24]
je 0x403770
mov ecx, dword [ebp - 0x16c]
mov dword [edx + eax*4 + 4], ecx
jmp case.0x401754.66
mov eax, dword [edx + eax*4 + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00408218
jmp 0x403437
mov edi, dword [ebp - 0x164]
test edi, edi
je 0x40379b
dec edi
je 0x403831
jmp case.0x401754.66
mov dword [esp], 5
call fcn.004081a6
push edx
mov ebx, eax
mov dword [esp], 0x22
call fcn.00401458
push ecx
test ebx, ebx
je 0x403824
lea edx, [ebp - 0x158]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407f1f
test eax, eax
js 0x403824
lea eax, [ebp - 0x178]
lea edx, [ebp - 0x158]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x164]
mov dword [esp], edx
mov dword [esp + 4], eax
call ebx
sub esp, 0x10
test eax, eax
js 0x403824
mov eax, dword [ebp - 0x178]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407efd
mov eax, dword [ebp - 0x178]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push eax
jmp 0x4038e8
mov byte [esi], 0
mov edi, 1
jmp 0x4038e8
mov eax, 2
xor edi, edi
call fcn.004014aa
mov ebx, eax
mov eax, 4
call fcn.004014aa
mov dword [ebp - 0x158], edi
movzx edx, al
shr eax, 0x18
test ebx, ebx
jne 0x40385e
mov ebx, 0x418020
add ebx, eax
lea eax, [ebp - 0x158]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004078ca
mov eax, dword [ebp - 0x158]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407d5f
jmp 0x403437
xor ecx, ecx
mov dword [esp + 0xc], ecx
and edx, dword [0x7ac6e0]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xb
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
cmp dword [ebp - 0x170], 0
je case.0x401754.66
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
sub esp, 0xc
jmp case.0x401754.66
add dword [0x418028], edi
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 4