Function at 0x4016e8
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, 0x1ac
mov esi, dword [ebp + 8]
mov eax, dword [0x42a62c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x190], eax
mov edi, dword [ebp - 0x170]
mov esi, dword [ebp - 0x16c]
mov eax, edi
mov ebx, esi
shl eax, 0xa
add eax, dword [0x40c694]
shl ebx, 0xa
add ebx, dword [0x40c694]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x170]
mov dword [0x4150dc], eax
mov eax, dword [ebp - 0x174]
sub eax, 2
cmp eax, 0x41
ja case.0x401754.66
jmp dword [eax*4 + 0x40c004]
mov dword [esp + 4], 0
mov dword [esp], edi
jmp 0x401d97
inc dword [0x42ae7c]
cmp dword [ebp - 0x190], 0
mov edi, 0x7fffffff
je case.0x401754.2
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
jmp case.0x401754.2
mov dword [esp], edi
call fcn.004016a5
push edx
dec eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403a28
mov edi, eax
push ecx
push ecx
jmp case.0x401754.2
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.004072c2
jmp 0x4038ca
xor eax, eax
call fcn.00401434
mov edx, 1
test eax, eax
cmovle eax, edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403884
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x403884
mov ecx, dword [ebp - 0x168]
test ecx, ecx
jne 0x40183b
mov eax, dword [edi*4 + 0x415060]
mov dword [ebp - 0x18c], ecx
mov dword [edi*4 + 0x415020], eax
mov eax, 1
call fcn.00401434
mov edx, dword [ebp - 0x170]
mov dword [edx*4 + 0x415060], eax
jmp 0x4037be
mov eax, dword [edi*4 + 0x415020]
mov dword [edi*4 + 0x415060], eax
jmp case.0x401754.66
mov ecx, dword [ebp - 0x168]
xor edx, edx
mov eax, dword [ecx*4 + 0x415060]
test eax, eax
sete dl
and eax, dword [ebp - 0x164]
mov dword [ecx*4 + 0x415060], eax
mov edi, dword [ebp + edx*4 - 0x170]
jmp case.0x401754.2
mov eax, dword [esi*4 + 0x415060]
jmp 0x402882
mov eax, dword [0x42ae68]
test eax, eax
je 0x40189f
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov eax, dword [0x42ae70]
test eax, eax
je case.0x401754.66
mov edx, dword [ebp - 0x170]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4038ca
mov dword [esp], 0xfffffff0
call fcn.00401469
mov edx, dword [ebp - 0x16c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x401bc9
mov dword [esp], 0xfffffff0
call fcn.00401469
push ebx
mov ebx, eax
mov dword [esp], eax
call fcn.00407bf9
xor ecx, ecx
push esi
test eax, eax
je 0x4019a9
mov dword [esp + 4], 0x5c
mov dword [esp], eax
mov dword [ebp - 0x18c], ecx
call fcn.00407b69
push ecx
mov esi, eax
push ecx
movzx edi, byte [eax]
mov byte [eax], 0
mov ecx, dword [ebp - 0x18c]
mov eax, edi
test al, al
jne 0x401959
cmp dword [ebp - 0x168], 0
je 0x401959
call fcn.00408e99
mov ecx, dword [ebp - 0x18c]
test eax, eax
je 0x401959
mov dword [esp], ebx
call fcn.00407998
jmp 0x401967
mov dword [esp], ebx
mov dword [ebp - 0x18c], ecx
call fcn.004079fc
mov ecx, dword [ebp - 0x18c]
push edx
test eax, eax
je 0x40199b
cmp eax, 0xb7
je 0x40197c
inc ecx
jmp 0x40199b
mov dword [ebp - 0x18c], ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
push ecx
mov ecx, dword [ebp - 0x18c]
cmp eax, 1
adc ecx, 0
mov edx, edi
lea eax, [esi + 1]
mov byte [esi], dl
test dl, dl
jmp 0x401905
cmp dword [ebp - 0x16c], 0
mov dword [ebp - 0x18c], ecx
je 0x4019f8
mov dword [esp], 0xffffffe6
call fcn.004016c9
mov eax, dword [0x40c694]
push esi
add eax, 0x5800
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004082b3
push edi
push edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0x18c]
cmp eax, 1
push edx
adc ecx, 0
jmp 0x403a14
mov dword [esp], 0xfffffff5
jmp 0x4037b8
mov dword [esp], 0
call fcn.00401469
push ecx
mov dword [esp], eax
call fcn.00408a3b
jmp 0x402446
mov dword [esp], 0xffffffd0
call fcn.00401469
push edx
mov ebx, eax
mov dword [esp], 0xffffffdf
call fcn.00401469
push ecx
mov esi, eax
mov dword [esp], 0x13
call fcn.00401469
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 0x401a68
mov dword [esp], 0xffffffe3
jmp 0x402d6a
cmp dword [ebp - 0x168], 0
je 0x4039b2
mov dword [esp], ebx
mov dword [ebp - 0x18c], eax
call fcn.00408a3b
push edi
test eax, eax
je 0x4039b2
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004089f6
push ecx
push ecx
mov dword [esp], 0xffffffe4
jmp 0x4037b8
mov dword [esp], 0
call fcn.00401469
push edx
mov esi, eax
lea eax, [ebp - 0x158]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x400
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
sub esp, 0x10
test eax, eax
je 0x401b1e
mov eax, dword [ebp - 0x158]
xor ecx, ecx
cmp eax, esi
jbe 0x401b26
cmp byte [eax], 0
je 0x401b26
mov dword [esp], esi
mov dword [ebp - 0x18c], ecx
call fcn.00408a3b
push edi
test eax, eax
je 0x401b1e
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
call fcn.004082b3
mov ecx, dword [ebp - 0x18c]
push esi
push esi
jmp 0x401b26
mov byte [ebx], 0
mov ecx, 1
cmp dword [ebp - 0x168], 0
jne 0x403a14
mov dword [ebp - 0x18c], ecx
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0xc
jmp 0x4037be
mov dword [esp], 0xffffffff
call fcn.00401469
lea edx, [ebp - 0x158]
push ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x18c]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
xor ecx, ecx
sub esp, 0x18
test eax, eax
jne 0x403a14
jmp 0x4035ab
mov dword [esp], 0xffffffef
call fcn.00401469
push edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.00407e04
push edi
push edi
jmp 0x4033c1
mov dword [esp], 0x31
call fcn.00401469
mov edi, dword [ebp - 0x170]
push ebx
mov ebx, eax
and edi, 7
mov dword [esp], eax
call fcn.00407bcc
push esi
test eax, eax
je 0x401c07
mov dword [esp + 4], ebx
mov dword [esp], 0x4150e0
call fcn.004082b3
jmp 0x401c38
mov eax, dword [0x40c694]
mov dword [esp], 0x4150e0
add eax, 0x5800
mov dword [esp + 4], eax
call fcn.004082b3
push edx
push edx
mov dword [esp], eax
call fcn.004082e7
push ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatA
push esi
push esi
mov dword [esp], 0x4150e0
call fcn.004083e4
push eax
cmp edi, 2
jle 0x401c88
mov dword [esp], 0x4150e0
call fcn.00408a3b
push ecx
xor ecx, ecx
test eax, eax
je 0x401c79
lea ecx, [ebp - 0x164]
add eax, 0x14
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push edx
mov ecx, eax
push edx
lea edx, [edi - 3]
or edx, 0x80000000
test edx, ecx
je 0x401ca9
jmp 0x401c8c
test edi, edi
jne 0x401c9d
mov dword [esp], 0x4150e0
xor edi, edi
call fcn.00407d09
push eax
jmp 0x401ca2
cmp edi, 1
je 0x401ca9
mov eax, 2
jmp 0x401cb3
mov edi, 1
mov eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x4150e0
call fcn.00407dac
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
jne 0x401da8
test edi, edi
je 0x401cf7
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe2
call fcn.004072c2
cmp edi, 2
push eax
push eax
jmp 0x4034cb
mov eax, dword [0x40c694]
mov dword [esp], 0x4158e0
mov dword [esp + 4], eax
call fcn.004082b3
push eax
push eax
mov eax, dword [0x40c694]
mov dword [esp + 4], 0x4150e0
mov dword [esp], eax
call fcn.004082b3
push eax
push eax
mov eax, dword [ebp - 0x15c]
mov dword [esp], 0x4154e0
mov dword [esp + 4], eax
call fcn.004084ad
mov eax, dword [0x40c694]
push edx
push edx
mov dword [esp + 4], 0x4158e0
mov dword [esp], eax
call fcn.004082b3
mov eax, dword [ebp - 0x170]
push ecx
push ecx
sar eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x4154e0
call fcn.00407afd
push esi
push esi
cmp eax, 4
je 0x401c8c
cmp eax, 5
jne 0x401d88
inc dword [0x415068]
jmp case.0x401754.2
mov dword [esp + 4], 0x4150e0
mov dword [esp], 0xfffffffa
call fcn.004072c2
mov edi, 0x7fffffff
push eax
push eax
jmp case.0x401754.2
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffea
call fcn.004072c2
inc dword [0x415094]
push eax
push eax
mov eax, dword [ebp - 0x168]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00403f08
dec dword [0x415094]
mov edi, eax
mov eax, dword [ebp - 0x164]
and eax, dword [ebp - 0x160]
sub esp, 0x10
inc eax
je 0x401e1e
lea eax, [ebp - 0x164]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
test edi, edi
jns case.0x401754.66
cmp edi, 0xfffffffe
jne 0x401e5d
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x4150e0
call fcn.004084ad
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x4150e0
call sub.KERNEL32.dll_lstrcatA
jmp 0x401e71
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x4150e0
call fcn.004084ad
push ecx
push ecx
mov dword [esp + 4], 0x200010
mov dword [esp], 0x4150e0
jmp 0x40220b
mov dword [esp], 0
jmp 0x401ee3
mov dword [esp], 0x31
call fcn.00401469
mov edx, dword [ebp - 0x170]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00407afd
push edx
push edx
test eax, eax
je 0x4039b2
cmp dword [ebp - 0x168], eax
je 0x4020ae
cmp dword [ebp - 0x160], eax
jne case.0x401754.66
mov edi, dword [ebp - 0x15c]
jmp case.0x401754.2
mov dword [esp], 0xfffffff0
call fcn.00401469
mov edx, dword [ebp - 0x16c]
push esi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408b27
jmp 0x4038ca
mov dword [esp], 1
call fcn.00401469
push ebx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
jmp 0x4026a9
mov eax, 2
call fcn.00401434
mov ebx, eax
mov eax, 3
mov edi, edx
call fcn.00401434
mov dword [esp], 1
mov esi, eax
call fcn.00401469
push edx
mov dword [ebp - 0x190], eax
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
test edi, edi
mov edx, dword [ebp - 0x18c]
cmove ebx, eax
push ecx
mov byte [edx], 0
test ebx, ebx
je case.0x401754.66
test esi, esi
mov edx, dword [ebp - 0x190]
jns 0x401f78
add esi, eax
js case.0x401754.66
cmp eax, esi
cmovle esi, eax
mov eax, dword [ebp - 0x18c]
add esi, edx
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.004082b3
push edi
push edi
test ebx, ebx
jns 0x401faa
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
push esi
add ebx, eax
js 0x401fb8
cmp ebx, 0x3ff
jg case.0x401754.66
jmp 0x401fba
xor ebx, ebx
mov eax, dword [ebp - 0x18c]
mov byte [eax + ebx], 0
jmp case.0x401754.66
mov dword [esp], 0x20
call fcn.00401469
push edx
mov ebx, eax
mov dword [esp], 0x31
call fcn.00401469
cmp dword [ebp - 0x160], 0
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x401ffd
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x402003
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
push edi
test eax, eax
jne 0x4020ae
jmp 0x402456
mov dword [esp], 1
call fcn.00401469
push esi
mov ebx, eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
sub esp, 0xc
test eax, eax
jne 0x402053
mov eax, dword [ebp - 0x18c]
mov ecx, 1
mov byte [eax], 0
jmp 0x40207b
cmp dword [ebp - 0x168], 0
jne 0x402060
xor ecx, ecx
jmp 0x40207b
mov eax, dword [ebp - 0x18c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebx
push ebx
test eax, eax
je 0x402043
jmp 0x40205c
mov eax, dword [ebp - 0x18c]
mov byte [eax + 0x3ff], 0
jmp 0x403a14
xor eax, eax
mov esi, dword [ebp - 0x15c]
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
test esi, esi
jne 0x4020ca
cmp ebx, eax
jge 0x4020b9
mov edi, dword [ebp - 0x164]
jmp case.0x401754.2
jle 0x402456
mov edi, dword [ebp - 0x160]
jmp case.0x401754.2
cmp ebx, eax
jb 0x4020ae
jbe 0x402456
jmp 0x4020bf
mov eax, 1
call fcn.00401434
mov ebx, eax
mov eax, 2
call fcn.00401434
mov ecx, dword [ebp - 0x164]
mov esi, eax
mov edi, eax
cmp ecx, 0xd
ja case.default.0x4020ff
jmp dword [ecx*4 + 0x40c10c]
lea esi, [eax + ebx]
jmp 0x402187
mov esi, ebx
sub esi, eax
jmp 0x402185
imul edi, ebx
jmp 0x40212c
mov ecx, 1
test eax, eax
je 0x402187
mov eax, ebx
cdq
idiv esi
jmp 0x402145
or edi, ebx
jmp 0x40212c
and edi, ebx
mov esi, edi
jmp 0x402185
mov esi, eax
xor esi, ebx
jmp 0x402185
test ebx, ebx
sete al
jmp 0x402142
or ebx, eax
setne al
movzx eax, al
mov esi, eax
jmp 0x402185
test ebx, ebx
setne al
xor edx, edx
test esi, esi
setne dl
and edx, eax
jmp 0x402167
mov ecx, 1
test eax, eax
je 0x402187
mov eax, ebx
cdq
idiv esi
mov esi, edx
jmp 0x402185
mov esi, ebx
mov ecx, eax
shl esi, cl
jmp 0x402185
mov esi, ebx
mov ecx, eax
sar esi, cl
jmp 0x402185
mov esi, ebx
mov ecx, eax
shr esi, cl
jmp 0x402185
mov esi, ebx
xor ecx, ecx
mov dword [ebp - 0x190], ecx
mov dword [esp + 4], esi
jmp 0x40241b
mov dword [esp], 1
call fcn.00401469
push ecx
mov ebx, eax
mov eax, 2
call fcn.00401434
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
jmp case.0x401754.66
mov ecx, dword [ebp - 0x168]
mov ebx, dword [0x4164e0]
test ecx, ecx
je 0x402255
dec ecx
test ebx, ebx
je 0x4021ea
mov ebx, dword [ebx]
test ecx, ecx
jne 0x4021db
test ebx, ebx
jne 0x402215
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.004084ad
push edx
push edx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00407afd
jmp 0x401d9c
add ebx, 4
mov dword [esp], 0x4150e0
mov dword [esp + 4], ebx
call fcn.004082b3
mov eax, dword [0x4164e0]
push edi
push edi
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004082b3
push eax
push eax
mov eax, dword [0x4164e0]
add eax, 4
mov dword [esp + 4], 0x4150e0
jmp 0x4035d7
test esi, esi
je 0x402293
mov dword [ebp - 0x190], ecx
test ebx, ebx
je 0x4039b2
lea eax, [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004082b3
push esi
push esi
mov eax, dword [ebx]
mov dword [0x4164e0], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4032f6
mov dword [ebp - 0x18c], ecx
mov dword [esp + 4], 0x404
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edx
mov ebx, eax
mov eax, dword [ebp - 0x170]
push edx
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.004084ad
mov eax, dword [0x4164e0]
push ecx
push ecx
mov dword [ebx], eax
mov dword [0x4164e0], ebx
jmp 0x4037be
mov eax, 3
call fcn.00401434
mov ebx, eax
mov eax, 4
call fcn.00401434
mov esi, eax
test byte [ebp - 0x15c], 1
je 0x40230b
mov dword [esp], 0x33
call fcn.00401469
push edi
mov ebx, eax
test byte [ebp - 0x15c], 2
je 0x402323
mov dword [esp], 0x44
call fcn.00401469
push esi
mov esi, eax
cmp dword [ebp - 0x174], 0x21
jne 0x4023b4
mov eax, 1
call fcn.00401434
mov edi, eax
mov eax, 2
call fcn.00401434
mov ecx, dword [ebp - 0x15c]
sar ecx, 2
je 0x402388
lea edx, [ebp - 0x158]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
xor ecx, ecx
sub esp, 0x1c
test eax, eax
sete cl
jmp 0x4023fe
mov dword [ebp - 0x190], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x158], eax
sub esp, 0x10
jmp 0x4023fe
mov dword [esp], 1
call fcn.00401469
push edx
mov edi, eax
mov dword [esp], 0x12
call fcn.00401469
push ecx
cmp byte [eax], 0
jne 0x4023d7
xor eax, eax
cmp byte [edi], 0
jne 0x4023de
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_FindWindowExA]
xor ecx, ecx
mov dword [ebp - 0x158], eax
sub esp, 0x10
cmp dword [ebp - 0x170], 0
js 0x403a14
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x190], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004081cb
push edi
push edi
mov ecx, dword [ebp - 0x190]
jmp 0x403a14
xor eax, eax
call fcn.00401434
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
push esi
test eax, eax
je 0x402456
mov edi, dword [ebp - 0x16c]
jmp case.0x401754.2
mov edi, dword [ebp - 0x168]
jmp case.0x401754.2
mov eax, 2
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push ebx
jmp 0x402882
xor eax, eax
add esi, dword [0x416548]
call fcn.00401434
mov dword [esp + 8], esi
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x403a0f
test byte [ebp - 0x163], 1
je 0x4024c7
mov eax, 2
call fcn.00401434
jmp 0x4024e2
mov eax, dword [ebp - 0x168]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push ecx
mov ebx, eax
mov eax, dword [ebp - 0x164]
mov edx, eax
mov edi, eax
and edx, 4
and edi, 3
mov dword [ebp - 0x194], edx
mov edx, eax
shr edx, 0x1f
mov dword [ebp - 0x198], edx
mov edx, eax
shr edx, 0x1e
and edx, 1
bt eax, 0x10
mov esi, edx
jae 0x402524
mov dword [esp], 0x11
call fcn.00401469
push edx
jmp 0x40252b
movzx eax, word [ebp - 0x16c]
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 0x14c]
push eax
imul edx, esi
push eax
and ecx, 0xfef0
mov eax, dword [ebp - 0x198]
xor esi, esi
imul eax, dword [ebp - 0x150]
cmp dword [ebp - 0x194], 0
je 0x402579
mov esi, dword [0x42a628]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_LoadImageA]
sub esp, 0x18
mov esi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0x172
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
test eax, eax
je 0x4025cf
test edi, edi
jne 0x4025cf
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], esi
jmp 0x402886
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDC]
push ecx
mov ebx, eax
mov dword [esp + 4], 0x5a
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push esi
mov esi, eax
mov eax, 2
call fcn.00401434
mov dword [esp + 8], 0x48
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
sub esp, 0xc
mov dword [0x4150a0], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 3
push edi
push edi
call fcn.00401434
mov dword [esp], 0x4150bc
mov dword [0x4150b0], eax
mov eax, dword [ebp - 0x160]
mov byte [0x4150b7], 1
mov edx, eax
and edx, 1
mov byte [0x4150b4], dl
mov edx, eax
and eax, 4
mov byte [0x4150b6], al
mov eax, dword [ebp - 0x16c]
and edx, 2
mov byte [0x4150b5], dl
mov dword [esp + 4], eax
call fcn.004084ad
push eax
push eax
mov dword [esp], 0x4150a0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push edx
jmp 0x402882
xor eax, eax
call fcn.00401434
mov ebx, eax
mov eax, 1
call fcn.00401434
mov ecx, dword [ebp - 0x164]
mov dword [esp], ebx
mov dword [esp + 4], eax
test ecx, ecx
mov dword [ebp - 0x18c], ecx
jne 0x4026e4
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403924
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x4038ca
mov dword [esp], 0
call fcn.00401469
push esi
mov esi, eax
mov dword [esp], 0x31
call fcn.00401469
push edi
mov edi, eax
mov dword [esp], 0x22
call fcn.00401469
push edx
mov ebx, eax
mov dword [esp], 0x15
call fcn.00401469
push ecx
mov dword [esp], 0xffffffec
call fcn.004016c9
push eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x13c], eax
cmp byte [esi], 0
jne 0x402761
xor esi, esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], edi
cmp byte [ebx], 0
jne 0x402774
xor ebx, ebx
mov eax, dword [0x40c694]
mov dword [ebp - 0x144], ebx
add eax, 0x5800
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.00407aac
mov ecx, 1
push ebx
test eax, eax
je 0x403a14
xor ecx, ecx
test byte [ebp - 0x154], 0x40
je 0x403a14
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x18c], ecx
mov dword [esp], eax
call fcn.00408f10
mov eax, dword [ebp - 0x120]
push ecx
mov dword [esp], eax
jmp 0x402847
mov dword [esp], 0
call fcn.00401469
push ecx
mov esi, eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffeb
call fcn.004072c2
push edi
push edi
mov dword [esp], esi
call fcn.00407a2a
mov esi, eax
push edx
test eax, eax
je 0x4039b2
mov ecx, dword [ebp - 0x168]
test ecx, ecx
je 0x40283e
mov dword [esp], eax
call fcn.00408f10
cmp dword [ebp - 0x16c], 0
push edx
js 0x402837
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004081cb
xor ecx, ecx
push eax
push eax
jmp 0x40283e
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x18c], ecx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4037bd
mov dword [esp], 2
call fcn.00401469
push esi
mov dword [esp], eax
call fcn.00408a3b
mov esi, eax
push edi
test eax, eax
je 0x402894
mov eax, dword [eax + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004081cb
push ebx
push ebx
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
jmp 0x40381a
mov eax, dword [ebp - 0x18c]
mov byte [eax], 0
jmp 0x4039af
mov dword [esp], 0xffffffee
call fcn.00401469
push edi
mov dword [ebp - 0x190], eax
mov dword [esp], 0xa
call fcn.00408e4d
mov edi, dword [ebp - 0x190]
push edx
lea edx, [ebp - 0x17c]
mov dword [esp], edi
mov dword [esp + 4], edx
call eax
mov edi, eax
mov eax, dword [ebp - 0x18c]
push ecx
push ecx
mov byte [eax], 0
mov byte [ebx], 0
test edi, edi
je 0x4039b2
mov dword [esp + 4], edi
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
mov esi, eax
test eax, eax
je 0x4039b2
mov dword [esp], 0xb
call fcn.00408e4d
push edx
mov dword [ebp - 0x194], eax
mov dword [esp], 0xc
call fcn.00408e4d
push ecx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov eax, dword [ebp - 0x194]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
call eax
mov ecx, dword [ebp - 0x198]
sub esp, 0x10
test eax, eax
jne 0x402967
mov ecx, 1
jmp 0x4029c5
lea eax, [ebp - 0x158]
mov dword [esp + 4], 0x40c000
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x178]
mov dword [esp + 8], eax
mov dword [esp], esi
call ecx
sub esp, 0x10
test eax, eax
je 0x402960
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004081cb
mov eax, dword [ebp - 0x178]
push edi
push edi
mov eax, dword [eax + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004081cb
xor ecx, ecx
push eax
push eax
mov dword [ebp - 0x18c], ecx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4037bd
cmp dword [section..bss], 0
js 0x402b0b
mov dword [esp], 0xfffffff0
call fcn.00401469
push ebx
mov edi, eax
mov dword [esp], 1
call fcn.00401469
cmp dword [ebp - 0x160], 0
push esi
mov esi, eax
jne 0x402a34
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x402a44
jmp 0x402aff
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
push ecx
test eax, eax
je 0x402a0d
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
push edx
push edx
test eax, eax
je 0x402ab0
mov ecx, dword [ebp - 0x168]
test ecx, ecx
je 0x402a76
mov dword [esp], ecx
call fcn.004016c9
push eax
call edi
xor ecx, ecx
test eax, eax
setne cl
jmp 0x402ac7
mov eax, dword [0x40c694]
mov dword [ebp - 0x18c], ecx
mov dword [esp + 0x10], 0x40b000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 0xc], 0x4164e0
mov dword [esp + 4], 0x400
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x18c]
jmp 0x402ac7
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.004072c2
mov ecx, 1
push esi
push esi
cmp dword [ebp - 0x164], 0
jne 0x403a14
mov dword [esp], ebx
mov dword [ebp - 0x18c], ecx
call fcn.00404c8b
test eax, eax
push ecx
mov ecx, dword [ebp - 0x18c]
je 0x403a14
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4037bd
mov dword [esp], 0xfffffff6
jmp 0x402bcf
mov dword [esp], 0xffffffe7
jmp 0x402bcf
mov dword [esp], 0xfffffff0
call fcn.00401469
push esi
mov dword [ebp - 0x190], eax
mov dword [esp], 0xffffffdf
call fcn.00401469
push edi
mov esi, eax
mov dword [esp], 2
call fcn.00401469
push edx
mov dword [ebp - 0x194], eax
mov dword [esp], 0xffffffcd
call fcn.00401469
push ecx
mov dword [ebp - 0x18c], eax
mov dword [esp], 0x45
call fcn.00401469
mov edi, dword [ebp - 0x160]
push ebx
mov dword [ebp - 0x198], eax
mov dword [esp], esi
call fcn.00407bcc
push edx
test eax, eax
jne 0x402b92
mov dword [esp], 0x21
call fcn.00401469
push ebx
lea eax, [ebp - 0x178]
mov dword [esp + 0xc], 0x412424
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40db64
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jns 0x402bda
mov dword [esp], 0xfffffff0
call fcn.004016c9
push ecx
jmp 0x4039b2
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x411a64
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x402d4c
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 0x402c40
mov edx, dword [ebp - 0x178]
mov eax, dword [0x40c694]
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 0x402c5e
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 0x402ca7
mov eax, dword [ebp - 0x178]
and edi, 0xfff
mov edx, dword [eax]
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x18c]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [edx + 0x44]
sub esp, 0xc
mov eax, dword [ebp - 0x178]
mov edi, dword [ebp - 0x194]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x178]
push edi
push edi
mov edi, dword [ebp - 0x198]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x1c]
push eax
push eax
test ebx, ebx
js 0x402d3d
mov eax, dword [ebp - 0x190]
mov dword [esp + 0x14], 0x400
mov ebx, 0x80004005
mov dword [esp + 0x10], esi
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 0x402d3d
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 0x402bc8
mov dword [esp], 0xfffffff4
call fcn.004016c9
jmp 0x403884
mov dword [esp], 0
call fcn.00401469
push edi
mov ebx, eax
mov dword [esp], 0x11
call fcn.00401469
push edx
mov esi, eax
mov dword [esp], 0x23
call fcn.00401469
push ecx
mov edi, eax
mov dword [esp], ebx
call fcn.00408a3b
push edx
test eax, eax
je 0x402e2b
mov dword [esp], ebx
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x154], 2
mov dword [ebp - 0x158], eax
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
mov dword [esp + 4], edi
mov dword [esp], 0
mov dword [ebp - 0x14c], esi
mov word [ebp - 0x148], ax
mov dword [ebp - 0x13e], edi
call fcn.004072c2
lea eax, [ebp - 0x158]
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, eax
push esi
test eax, eax
je 0x403a14
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.004072c2
push eax
push eax
jmp 0x4039b2
cmp edi, 0xbadf00d
jne 0x4021ea
inc dword [0x415074]
jmp case.0x401754.66
xor ebx, ebx
test edi, edi
je 0x402e72
mov dword [esp], 0
call fcn.00401469
push edi
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x16c], 0
je 0x402e8c
mov dword [esp], 0x11
call fcn.00401469
push esi
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x160], 0
je 0x402ea6
mov dword [esp], 0x22
call fcn.00401469
push ecx
mov edi, eax
mov dword [esp], 0xffffffcd
call fcn.00401469
push edx
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
jmp 0x4033c1
mov dword [esp], 1
mov word [ebp - 0x158], 0xa
call fcn.00401469
push edx
mov esi, eax
mov dword [esp], 0x12
call fcn.00401469
push ecx
mov ebx, eax
mov dword [esp], 0xffffffdd
call fcn.00401469
push edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x158]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x18c]
xor ecx, ecx
sub esp, 0x18
cmp byte [eax], 0xa
jne 0x403a14
jmp 0x4035b1
cmp dword [ebp - 0x160], 0
jne 0x402f94
mov dword [esp], 2
call fcn.004014bf
mov esi, eax
push edi
test eax, eax
je 0x4039b2
mov dword [esp], 0x33
call fcn.00401469
push edx
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ecx
mov ebx, eax
push ecx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
jmp 0x40300c
mov dword [esp], 0x22
call fcn.00401469
mov ebx, eax
mov eax, dword [ebp - 0x160]
push edi
sar eax, 1
mov dword [ebp - 0x158], eax
cmp byte [ebx], 0
je 0x4039b2
or eax, 0x100020
mov dword [ebp - 0x158], eax
test esi, esi
js 0x402fd5
add esi, dword [0x415064]
sub esi, 0x7fffffff
lea eax, [ebp - 0x158]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407fdc
push esi
push esi
test eax, eax
je 0x4039b2
mov edx, dword [ebp - 0x158]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.00401523
sub esp, 0xc
mov ebx, eax
test ebx, ebx
setne cl
jmp 0x4034ce
mov dword [esp], 2
mov eax, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x160]
mov dword [ebp - 0x18c], eax
call fcn.00401469
push ecx
mov dword [ebp - 0x190], eax
mov dword [esp], 0x11
call fcn.00401469
mov edx, edi
push ebx
mov ecx, eax
test edi, edi
js 0x40305c
add edx, dword [0x415064]
sub edx, 0x7fffffff
lea eax, [ebp - 0x158]
mov dword [esp + 8], 0x100022
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004080b1
sub esp, 0x10
test eax, eax
jne 0x4039b2
mov ebx, dword [ebp - 0x158]
test ebx, ebx
je 0x4039b2
cmp esi, 1
jne 0x4030b5
mov dword [esp], 0x23
call fcn.00401469
push edi
mov dword [esp], 0x4158e0
call sub.KERNEL32.dll_lstrlenA
inc eax
push edx
jmp 0x403100
cmp esi, 4
je 0x4030ec
xor eax, eax
cmp esi, 3
jne 0x403100
mov eax, dword [ebp - 0x164]
mov dword [esp + 0xc], 0xc00
mov dword [esp + 8], 0x4158e0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403f08
sub esp, 0x10
jmp 0x403100
mov eax, 3
call fcn.00401434
mov dword [0x4158e0], eax
mov eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0x10], 0x4158e0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
sub esp, 0x18
test eax, eax
setne cl
jmp 0x40321e
mov dword [esp], 0x20019
call fcn.004014bf
push ebx
mov ebx, eax
mov dword [esp], 0x33
call fcn.00401469
mov edx, dword [ebp - 0x18c]
push esi
mov byte [edx], 0
test ebx, ebx
je 0x4039b2
lea edx, [ebp - 0x178]
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x178], 0x400
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x158]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x4031c4
mov eax, dword [ebp - 0x158]
lea edx, [eax - 1]
cmp edx, 1
jbe 0x4031d4
cmp eax, 4
je 0x4031d4
mov eax, dword [ebp - 0x18c]
mov ecx, 1
mov byte [eax], 0
jmp 0x40321e
mov ecx, dword [ebp - 0x160]
cmp eax, 4
jne 0x403211
mov eax, dword [ebp - 0x18c]
test ecx, ecx
sete cl
mov eax, dword [eax]
movzx ecx, cl
mov dword [ebp - 0x190], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004081cb
push ecx
push ecx
mov ecx, dword [ebp - 0x190]
jmp 0x40321e
mov eax, dword [ebp - 0x18c]
mov byte [eax + 0x3ff], 0
mov dword [ebp - 0x18c], ecx
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4037bd
mov dword [esp], 0x20019
call fcn.004014bf
push edx
mov ebx, eax
mov eax, 3
call fcn.00401434
mov edx, dword [ebp - 0x18c]
mov byte [edx], 0
test ebx, ebx
je 0x4039b2
cmp dword [ebp - 0x160], 0
mov dword [ebp - 0x158], 0x3ff
je 0x40328f
mov dword [esp + 0xc], 0x3ff
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
xor ecx, ecx
sub esp, 0x10
jmp 0x4032da
lea edx, [ebp - 0x158]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x18c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor ecx, ecx
sub esp, 0x20
test eax, eax
setne cl
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], ecx
mov byte [eax + 0x3ff], 0
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
jmp 0x40242b
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004081f0
push esi
test eax, eax
je case.0x401754.66
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403884
mov dword [esp], 0xffffffed
call fcn.00401469
mov edx, dword [ebp - 0x168]
push ebx
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x16c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407dac
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x402882
jmp 0x4035ab
cmp dword [ebp - 0x168], 0
je 0x40337a
mov eax, 1
mov ebx, 1
call fcn.00401434
mov byte [0x4154e0], al
jmp 0x403392
mov dword [esp], 0x11
call fcn.00401469
push edx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
push ecx
mov ebx, eax
mov eax, dword [ebp - 0x18c]
cmp byte [eax], 0
je 0x4039b2
mov dword [esp], eax
call fcn.004081f0
push edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4154e0
mov dword [esp], eax
call fcn.00407eae
sub esp, 0xc
test eax, eax
jmp 0x4034cb
mov eax, 2
call fcn.00401434
test eax, eax
jle case.0x401754.66
mov esi, dword [ebp - 0x18c]
xor edi, edi
cmp byte [esi], 0
je 0x4034c5
mov dword [esp], esi
cmp eax, 0x3ff
mov edi, 0x3ff
cmovle edi, eax
call fcn.004081f0
xor edx, edx
mov dword [ebp - 0x18c], eax
push esi
xor esi, esi
lea eax, [ebp - 0x158]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov byte [ebp - 0x190], dl
mov dword [esp], eax
call fcn.00407e68
sub esp, 0xc
test eax, eax
je 0x4034c3
cmp dword [ebp - 0x164], 0
movzx eax, byte [ebp - 0x158]
mov dl, byte [ebp - 0x190]
je 0x403465
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004081cb
push ecx
push ecx
jmp 0x403a1a
lea ecx, [ebx + esi]
cmp dl, 0xd
je 0x403472
cmp dl, 0xa
jne 0x4034af
cmp dl, al
je 0x40347e
cmp al, 0xd
je 0x4034aa
cmp al, 0xa
je 0x4034aa
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x4034c3
mov byte [ecx], al
inc esi
jmp 0x4034c3
inc esi
mov byte [ebx + esi - 1], al
test al, al
je 0x4034c3
cmp edi, esi
je 0x4034c5
mov edx, eax
jmp 0x40340b
mov edi, esi
mov byte [ebx + edi], 0
test edi, edi
sete cl
movzx ecx, cl
jmp 0x403a14
mov eax, dword [ebp - 0x18c]
cmp byte [eax], 0
je case.0x401754.66
mov eax, 2
mov edi, dword [ebp - 0x164]
call fcn.00401434
mov esi, eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004081f0
push edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
cmp dword [ebp - 0x16c], 0
js case.0x401754.66
jmp 0x403813
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004081f0
push ebx
test eax, eax
je case.0x401754.66
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x403884
mov dword [esp], ebx
call fcn.004081f0
push ecx
test eax, eax
je 0x4035ab
lea edx, [ebp - 0x158]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edx
push edx
test eax, eax
je 0x4035ab
jmp 0x4035c7
mov dword [esp], 2
call fcn.00401469
lea edx, [ebp - 0x158]
push esi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
push edi
cmp eax, 0xffffffff
jne 0x4035b9
mov byte [ebx], 0
mov eax, dword [ebp - 0x18c]
mov byte [eax], 0
jmp 0x4039b2
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004081cb
push ebx
push ebx
lea eax, [ebp - 0x12c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.004082b3
jmp 0x4038ca
mov dword [esp], 0xfffffff0
call fcn.00401469
push edx
mov esi, eax
mov dword [esp], eax
call fcn.00407bcc
push ecx
test eax, eax
jne 0x40360d
mov dword [esp], 0xffffffed
call fcn.00401469
push eax
mov dword [esp], esi
call fcn.00407d09
push edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407dac
mov dword [ebp - 0x18c], eax
sub esp, 0xc
inc eax
jne 0x403653
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xffffffef
mov ecx, 1
push ebx
jmp 0x4037af
mov eax, dword [0x416508]
mov dword [esp], 0x40
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x190], eax
mov dword [esp + 4], eax
call edi
mov edx, 0xfffffd66
push ecx
mov ebx, eax
push ecx
test eax, eax
je 0x403784
mov dword [esp], 0
call fcn.00403cea
push eax
mov eax, dword [ebp - 0x190]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403cc2
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 0x403730
mov eax, dword [ebp - 0x168]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x16c]
mov dword [esp], eax
call fcn.00403f08
mov eax, edi
sub esp, 0x10
cmp byte [eax], 0
je 0x403726
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0x194], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x198], ecx
add edx, ebx
mov dword [esp], edx
call fcn.00407cec
mov edx, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x198]
sub esp, 0xc
lea eax, [edx + ecx]
jmp 0x4036e7
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.00407eae
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18c]
push edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call fcn.00403f08
sub esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x190]
push eax
test edx, edx
js 0x40363a
mov eax, 0xfffffff3
xor ecx, ecx
mov dword [ebp - 0x18c], ecx
mov dword [esp], eax
call fcn.004016c9
push eax
mov ecx, dword [ebp - 0x18c]
jmp 0x403a14
xor eax, eax
call fcn.00401434
mov esi, eax
cmp eax, dword [0x41652c]
jae 0x4039b2
mov ecx, dword [ebp - 0x168]
imul edi, eax, 0x418
add edi, dword [0x416528]
test ecx, ecx
js 0x403824
jne 0x403810
add edi, 0x18
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [ebp - 0x18c], ecx
call fcn.004082b3
jmp 0x403924
mov eax, dword [edi + ecx*4]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004081cb
jmp 0x4038ca
not ecx
mov dword [ebp - 0x168], ecx
test ecx, ecx
je 0x403842
mov eax, 1
call fcn.00401434
mov dword [ebp - 0x16c], eax
jmp 0x403860
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
lea eax, [edi + 0x18]
mov dword [esp], eax
call fcn.004084ad
push eax
push eax
or dword [edi + 8], 0x100
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x168]
mov dword [edi + eax*4], edx
cmp dword [ebp - 0x164], 0
je case.0x401754.66
mov dword [esp], esi
call fcn.00401248
push eax
jmp case.0x401754.66
xor eax, eax
call fcn.00401434
cmp eax, 0x1f
ja 0x4039b2
cmp dword [ebp - 0x164], 0
mov ecx, dword [ebp - 0x168]
je 0x4038f2
test ecx, ecx
je 0x4038d1
mov dword [esp], eax
call fcn.0040135c
push eax
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004012a7
push edi
push edi
jmp case.0x401754.66
mov dword [esp], 0
mov dword [ebp - 0x18c], ecx
call fcn.004013b5
push esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004081cb
jmp 0x403924
test ecx, ecx
mov edx, dword [0x416510]
lea eax, [eax + 0x24]
je 0x40390e
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], ebx
mov dword [ebp - 0x18c], ecx
mov dword [esp + 4], eax
call fcn.004084ad
push ebx
push ebx
jmp 0x4037be
mov dword [esp], 5
call fcn.00408e4d
push edx
mov esi, eax
mov dword [esp], 0x22
call fcn.00401469
push ecx
test esi, esi
je 0x4039af
lea edi, [ebp - 0x158]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0040839b
test eax, eax
js 0x4039af
lea eax, [ebp - 0x178]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x164]
mov dword [esp], edi
mov dword [esp + 4], eax
call esi
sub esp, 0x10
test eax, eax
js 0x4039af
mov eax, dword [ebp - 0x178]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408379
mov eax, dword [ebp - 0x178]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x403884
mov byte [ebx], 0
mov ecx, 1
jmp 0x403a14
mov edx, dword [0x42ae80]
mov eax, dword [ebp - 0x190]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xb
and edx, edi
mov dword [esp], eax
mov dword [esp + 8], edx
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
cmp dword [ebp - 0x170], 0
je case.0x401754.66
mov eax, dword [ebp - 0x190]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
sub esp, 0xc
xor ecx, ecx
add dword [0x415068], ecx
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 4