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
Read file on windows
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 - 0x284]
push ebx
sub esp, 0x2bc
mov esi, dword [ebp + 8]
mov eax, dword [0x430a4c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x280]
mov esi, dword [ebp - 0x284]
mov eax, ecx
mov ebx, edx
shl eax, 0xb
add eax, dword [0x40d974]
shl ebx, 0xb
add ebx, dword [0x40d974]
mov edi, eax
lea eax, [ebp - 0x280]
mov dword [0x41a0fc], eax
lea eax, [esi - 2]
cmp eax, 0x43
ja case.0x401756.66
jmp dword [eax*4 + 0x40d004]
xor eax, eax
mov dword [esp], edx
mov dword [esp + 4], eax
jmp 0x401d2c
inc dword [0x431a9c]
cmp dword [ebp - 0x29c], 0
je 0x401786
xor esi, esi
mov dword [esp], esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
push edi
mov edx, 0x7fffffff
jmp case.0x401756.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.00403b05
mov edx, eax
push ebx
push ebx
jmp case.0x401756.2
xor edi, edi
mov dword [esp], edx
mov dword [esp + 4], edi
call fcn.004074ba
jmp 0x403641
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 0x402789
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x402789
cmp dword [ebp - 0x278], 0
jg 0x401822
jne 0x401810
mov eax, dword [edx*4 + 0x41a020]
mov dword [edx*4 + 0x41a060], eax
mov eax, 1
call fcn.004014aa
mov edx, dword [ebp - 0x280]
jmp 0x401829
mov eax, dword [edx*4 + 0x41a060]
mov dword [edx*4 + 0x41a020], eax
jmp case.0x401756.66
mov ecx, dword [ebp - 0x278]
xor edx, edx
mov eax, dword [ecx*4 + 0x41a020]
test eax, eax
sete dl
and eax, dword [ebp - 0x274]
mov dword [ecx*4 + 0x41a020], eax
mov edx, dword [ebp + edx*4 - 0x280]
jmp case.0x401756.2
mov eax, dword [ecx*4 + 0x41a020]
jmp 0x40324b
mov eax, dword [0x431a88]
test eax, eax
je 0x401886
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
mov eax, dword [0x431a90]
test eax, eax
je case.0x401756.66
mov edx, dword [ebp - 0x280]
mov dword [esp], eax
mov dword [esp + 4], edx
jmp 0x402691
mov dword [esp], 0xfffffff0
call fcn.00401458
push ebx
mov edx, dword [ebp - 0x27c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x401b61
mov dword [esp], 0xfffffff0
xor esi, esi
call fcn.00401458
push edx
mov ebx, eax
mov dword [esp], eax
call fcn.00407db6
push ecx
test eax, eax
je 0x401978
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call fcn.00407d17
push edi
push edi
mov edi, eax
mov ax, word [eax]
mov word [edi], 0
mov word [ebp - 0x29c], ax
test ax, ax
jne 0x40193a
cmp dword [ebp - 0x278], 0
je 0x40193a
call fcn.00408798
test eax, eax
je 0x40193a
mov dword [esp], ebx
call fcn.00407b60
push ecx
test eax, eax
jne 0x401947
mov word [edi], 0
jmp 0x401978
mov dword [esp], ebx
call fcn.00407bc0
push edx
test eax, eax
je 0x401964
cmp eax, 0xb7
je 0x401951
inc esi
jmp 0x401964
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
push ecx
cmp eax, 1
adc esi, 0
mov ecx, dword [ebp - 0x29c]
lea eax, [edi + 2]
mov word [edi], cx
test cx, cx
jmp 0x4018e6
cmp dword [ebp - 0x27c], 0
je 0x4019bb
mov dword [esp], 0xffffffe6
call fcn.004016cf
mov eax, dword [0x40d974]
push edi
add eax, 0xb000
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00408439
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, 1
push edx
adc esi, 0
jmp 0x403af1
mov dword [esp], 0xfffffff5
jmp 0x403861
xor ecx, ecx
mov dword [esp], ecx
call fcn.00401458
push ebx
mov dword [esp], eax
call fcn.004085d2
jmp 0x4023ec
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_MoveFileW]
push edx
push edx
test eax, eax
je 0x401a26
mov dword [esp], 0xffffffe3
jmp 0x401a59
cmp dword [ebp - 0x278], 0
je 0x403a3c
mov dword [esp], ebx
call fcn.004085d2
push edi
test eax, eax
je 0x403a3c
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408d11
push esi
push esi
mov dword [esp], 0xffffffe4
call fcn.004016cf
jmp 0x402789
xor ecx, ecx
mov dword [esp], ecx
call fcn.00401458
push ebx
mov ebx, eax
lea eax, [ebp - 0x268]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
je 0x401ad0
mov eax, dword [ebp - 0x268]
cmp ebx, eax
jae 0x401aa6
cmp word [eax], 0
jne 0x401aaa
xor esi, esi
jmp 0x401ada
mov dword [esp], ebx
call fcn.004085d2
push edx
test eax, eax
je 0x401ad0
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call fcn.00408439
push eax
push eax
jmp 0x401aa6
mov word [edi], 0
mov esi, 1
cmp dword [ebp - 0x278], 0
jne 0x403af1
mov dword [esp + 8], 0x400
mov dword [esp + 4], edi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
sub esp, 0xc
jmp 0x403af1
mov dword [esp], 0xffffffff
xor edi, edi
call fcn.00401458
lea edx, [ebp - 0x268]
push esi
xor esi, esi
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
sub esp, 0x18
test eax, eax
jmp 0x402e8a
mov dword [esp], 0xffffffef
call fcn.00401458
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407fbf
push edx
push edx
jmp 0x402e1b
mov dword [esp], 0x31
call fcn.00401458
push ebx
mov ebx, dword [ebp - 0x280]
mov esi, eax
and ebx, 7
mov dword [esp], eax
call fcn.00407d83
push edi
test eax, eax
je 0x401b9f
mov dword [esp + 4], esi
mov dword [esp], 0x41a100
call fcn.00408439
jmp 0x401bd0
mov eax, dword [0x40d974]
mov dword [esp], 0x41a100
add eax, 0xb000
mov dword [esp + 4], eax
call fcn.00408439
push edx
push edx
mov dword [esp], eax
call fcn.0040846d
push ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatW
push ecx
push ecx
mov dword [esp], 0x41a100
call fcn.004084f5
push edi
cmp ebx, 2
jle 0x401c2b
mov dword [esp], 0x41a100
call fcn.004085d2
push edx
test eax, eax
je 0x401c37
lea edx, [ebp - 0x274]
add eax, 0x14
sub ebx, 3
mov dword [esp + 4], edx
or ebx, 0x80000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push edi
push edi
test ebx, eax
je 0x401c37
mov dword [esp], 0x41a100
xor edi, edi
call fcn.00407ed2
push ebx
jmp 0x401c43
test ebx, ebx
je 0x401c1a
dec ebx
mov edi, 2
jne 0x401c43
mov edi, 1
mov eax, 1
jmp 0x401c48
mov eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x41a100
call fcn.00407f6b
sub esp, 0xc
mov ebx, eax
cmp eax, 0xffffffff
jne 0x401d38
test edi, edi
je 0x401c8c
mov dword [esp + 4], esi
mov dword [esp], 0xffffffe2
call fcn.004074ba
cmp edi, 2
push ecx
push ecx
jmp 0x402e1d
mov eax, dword [0x40d974]
mov dword [esp], 0x41b100
mov dword [esp + 4], eax
call fcn.00408439
push eax
push eax
mov eax, dword [0x40d974]
mov dword [esp + 4], 0x41a100
mov dword [esp], eax
call fcn.00408439
push eax
push eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], 0x41a900
mov dword [esp + 4], eax
call fcn.004087be
push eax
push eax
mov eax, dword [0x40d974]
mov dword [esp + 4], 0x41b100
mov dword [esp], eax
call fcn.00408439
push eax
push eax
mov eax, dword [ebp - 0x280]
sar eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x41a900
call fcn.00407cab
push edx
push edx
cmp eax, 4
je 0x401c1a
cmp eax, 5
jne 0x401d1d
inc dword [0x41a028]
jmp 0x403af7
mov dword [esp + 4], 0x41a100
mov dword [esp], 0xfffffffa
call fcn.004074ba
push eax
push eax
jmp 0x401786
mov dword [esp + 4], esi
xor edi, edi
mov dword [esp], 0xffffffea
call fcn.004074ba
push ecx
push ecx
inc dword [0x41a054]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x278]
mov dword [esp], eax
call fcn.00403fbd
dec dword [0x41a054]
mov edi, eax
mov eax, dword [ebp - 0x274]
and eax, dword [ebp - 0x270]
sub esp, 0x10
inc eax
je 0x401da6
lea eax, [ebp - 0x274]
xor edx, edx
mov dword [esp], ebx
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], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
test edi, edi
jns case.0x401756.66
cmp edi, 0xfffffffe
jne 0x401de5
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x41a100
call fcn.004087be
push edi
push edi
mov dword [esp + 4], esi
mov dword [esp], 0x41a100
call sub.KERNEL32.dll_lstrcatW
jmp 0x401df9
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x41a100
call fcn.004087be
push esi
push esi
mov dword [esp + 4], 0x200010
mov dword [esp], 0x41a100
jmp 0x4021ca
xor ebx, ebx
mov dword [esp], ebx
jmp 0x401e69
mov dword [esp], 0x31
call fcn.00401458
push edx
mov edx, dword [ebp - 0x280]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407cab
push ecx
push ecx
test eax, eax
je 0x403a3c
cmp dword [ebp - 0x278], eax
je 0x402018
cmp dword [ebp - 0x270], eax
jne case.0x401756.66
mov edx, dword [ebp - 0x26c]
jmp case.0x401756.2
mov dword [esp], 0xfffffff0
call fcn.00401458
push edi
mov edx, dword [ebp - 0x27c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00408d56
jmp 0x403641
mov dword [esp], 1
call fcn.00401458
push esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenW
jmp 0x402668
mov eax, 2
call fcn.004014aa
mov edi, eax
mov eax, 3
mov dword [ebp - 0x2a0], edx
call fcn.004014aa
mov dword [esp], 1
mov esi, eax
call fcn.00401458
push edx
mov dword [esp], eax
mov dword [ebp - 0x29c], eax
call sub.KERNEL32.dll_lstrlenW
push ecx
mov ecx, dword [ebp - 0x2a0]
mov word [ebx], 0
test ecx, ecx
cmove edi, eax
test edi, edi
je case.0x401756.66
test esi, esi
mov edx, dword [ebp - 0x29c]
jns 0x401f04
add esi, eax
js case.0x401756.66
cmp esi, eax
mov dword [esp], ebx
cmovg esi, eax
add esi, esi
add edx, esi
mov dword [esp + 4], edx
call fcn.00408439
push ecx
push ecx
test edi, edi
jns 0x401f2c
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenW
push edx
add edi, eax
js 0x401f3a
cmp edi, 0x3ff
jg case.0x401756.66
jmp 0x401f3c
xor edi, edi
mov word [ebx + edi*2], 0
jmp case.0x401756.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 - 0x270], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x401f7b
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401f81
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push edx
push edx
test eax, eax
jne 0x402018
jmp 0x4023fc
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_ExpandEnvironmentStringsW]
sub esp, 0xc
test eax, eax
jne 0x401fc7
mov word [ebx], 0
mov esi, 1
jmp 0x401fe9
cmp dword [ebp - 0x278], 0
jne 0x401fd4
xor esi, esi
jmp 0x401fe9
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push esi
push esi
test eax, eax
je 0x401fbb
jmp 0x401fd0
mov word [ebx + 0x7fe], 0
jmp 0x403af1
xor eax, eax
mov esi, dword [ebp - 0x26c]
call fcn.004014aa
mov ebx, eax
mov eax, 1
call fcn.004014aa
test esi, esi
jne 0x402034
cmp ebx, eax
jge 0x402023
mov edx, dword [ebp - 0x274]
jmp case.0x401756.2
jle 0x4023fc
mov edx, dword [ebp - 0x270]
jmp case.0x401756.2
cmp ebx, eax
jb 0x402018
cmp eax, ebx
jae 0x4023fc
jmp 0x402029
mov eax, 1
call fcn.004014aa
mov dword [ebp - 0x29c], eax
mov eax, 2
call fcn.004014aa
mov esi, dword [ebp - 0x274]
mov edi, eax
mov ecx, eax
cmp esi, 0xd
ja case.default.0x40206f
jmp dword [esi*4 + 0x40d114]
mov edi, dword [ebp - 0x29c]
add edi, eax
jmp 0x402146
mov edi, dword [ebp - 0x29c]
sub edi, eax
jmp 0x402144
mov edi, dword [ebp - 0x29c]
imul edi, eax
jmp 0x402144
mov esi, 1
test eax, eax
je 0x402146
mov eax, dword [ebp - 0x29c]
cdq
idiv edi
jmp 0x4020ef
mov edi, dword [ebp - 0x29c]
or edi, eax
jmp 0x402144
mov edi, dword [ebp - 0x29c]
and edi, eax
jmp 0x402144
mov edi, dword [ebp - 0x29c]
xor edi, eax
jmp 0x402144
cmp dword [ebp - 0x29c], 0
sete al
jmp 0x4020ec
or ecx, dword [ebp - 0x29c]
setne al
movzx eax, al
mov edi, eax
jmp 0x402144
cmp dword [ebp - 0x29c], 0
setne al
xor edx, edx
test edi, edi
setne dl
mov edi, edx
and edi, eax
jmp 0x402144
mov esi, 1
test eax, eax
je 0x402146
mov eax, dword [ebp - 0x29c]
cdq
idiv edi
mov edi, edx
jmp 0x402144
mov edi, dword [ebp - 0x29c]
shl edi, cl
jmp 0x402144
mov edi, dword [ebp - 0x29c]
sar edi, cl
jmp 0x402144
mov edi, dword [ebp - 0x29c]
shr edi, cl
jmp 0x402144
mov edi, dword [ebp - 0x29c]
xor esi, esi
mov dword [esp + 4], edi
jmp 0x4023cd
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_wsprintfW]
jmp case.0x401756.66
mov eax, dword [ebp - 0x278]
mov esi, dword [0x41c900]
test eax, eax
je 0x402217
test esi, esi
je 0x4021ab
sub eax, 2
mov esi, dword [esi]
cmp eax, 0xffffffff
je 0x4021a7
dec eax
test esi, esi
jne 0x402199
jmp 0x4021ab
test esi, esi
jne 0x4021d4
xor eax, eax
mov dword [esp + 4], 0xffffffe8
mov dword [esp], eax
call fcn.004087be
push edx
push edx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00407cab
jmp 0x401d31
add esi, 4
mov dword [esp], 0x41a100
mov dword [esp + 4], esi
call fcn.00408439
push eax
push eax
mov eax, dword [0x41c900]
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00408439
push eax
push eax
mov dword [esp + 4], 0x41a100
mov eax, dword [0x41c900]
add eax, 4
mov dword [esp], eax
jmp 0x40363c
test ecx, ecx
je 0x402249
test esi, esi
je 0x403a3c
lea eax, [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408439
push eax
push eax
mov eax, dword [esi]
mov dword [0x41c900], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x402789
mov dword [esp + 4], 0x804
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
mov ebx, eax
push edi
mov eax, dword [ebp - 0x280]
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.004087be
push eax
push eax
mov eax, dword [0x41c900]
mov dword [ebx], eax
mov dword [0x41c900], ebx
jmp case.0x401756.66
mov eax, 3
call fcn.004014aa
mov esi, eax
mov eax, 4
call fcn.004014aa
mov edi, eax
test byte [ebp - 0x26c], 1
je 0x4022bb
mov dword [esp], 0x33
call fcn.00401458
push esi
mov esi, eax
test byte [ebp - 0x26c], 2
je 0x4022d3
mov dword [esp], 0x44
call fcn.00401458
push ecx
mov edi, eax
cmp dword [ebp - 0x284], 0x21
jne 0x402360
mov eax, 1
call fcn.004014aa
mov dword [ebp - 0x29c], eax
mov eax, 2
call fcn.004014aa
mov ecx, dword [ebp - 0x26c]
sar ecx, 2
je 0x402343
lea edx, [ebp - 0x268]
mov dword [esp + 8], esi
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
sub esp, 0x1c
test eax, eax
sete al
movzx eax, al
mov esi, eax
jmp 0x4023b6
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4023ab
mov dword [esp], 1
call fcn.00401458
push edx
mov dword [ebp - 0x29c], eax
mov dword [esp], 0x12
call fcn.00401458
push ecx
cmp word [eax], 0
mov edx, dword [ebp - 0x29c]
jne 0x40238e
xor eax, eax
cmp word [edx], 0
jne 0x402396
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_FindWindowExW]
mov dword [ebp - 0x268], eax
sub esp, 0x10
xor esi, esi
cmp dword [ebp - 0x280], 0
js 0x403af1
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00408358
push eax
push eax
jmp 0x403af1
xor eax, eax
call fcn.004014aa
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
push edi
test eax, eax
je 0x4023fc
mov edx, dword [ebp - 0x27c]
jmp case.0x401756.2
mov edx, dword [ebp - 0x278]
jmp case.0x401756.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 0x40324b
add ecx, dword [0x41c968]
xor eax, eax
mov ebx, ecx
call fcn.004014aa
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x403ae9
test byte [ebp - 0x273], 1
je 0x40246f
mov eax, 2
call fcn.004014aa
jmp 0x40248a
mov eax, dword [ebp - 0x278]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push ecx
mov esi, eax
mov eax, dword [ebp - 0x274]
mov ecx, eax
mov edx, eax
and ecx, 3
shr edx, 0x1e
mov dword [ebp - 0x29c], ecx
mov ecx, eax
mov edi, edx
and ecx, 4
and edi, 1
mov dword [ebp - 0x2a4], ecx
mov ecx, eax
shr ecx, 0x1f
bt eax, 0x10
mov dword [ebp - 0x2a8], ecx
jae 0x4024d2
mov dword [esp], 0x11
call fcn.00401458
push edx
jmp 0x4024d9
movzx eax, word [ebp - 0x27c]
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.USER32.dll_GetClientRect]
push eax
push eax
imul edi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x2a8]
imul eax, dword [ebp - 0x260]
and ecx, 0xfef0
mov edx, edi
xor edi, edi
cmp dword [ebp - 0x2a4], 0
je 0x402527
mov edi, dword [0x430a48]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_LoadImageW]
sub esp, 0x18
mov edi, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 4], 0x172
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
test eax, eax
je 0x40258e
cmp dword [ebp - 0x29c], 0
jne 0x40258e
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push eax
cmp dword [ebp - 0x280], 0
js case.0x401756.66
mov dword [esp + 4], edi
jmp 0x40324f
mov eax, dword [ebp - 0x29c]
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 [0x41a0a0], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push eax
push eax
mov eax, 3
call fcn.004014aa
mov byte [0x41a0b7], 1
mov dword [0x41a0b0], eax
mov eax, dword [ebp - 0x270]
mov edx, eax
and edx, 1
mov byte [0x41a0b4], dl
mov edx, eax
and eax, 4
mov byte [0x41a0b6], al
mov eax, dword [ebp - 0x27c]
and edx, 2
mov byte [0x41a0b5], dl
mov dword [esp + 4], eax
mov dword [esp], 0x41a0bc
call fcn.004087be
push eax
push eax
mov dword [esp], 0x41a0a0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push edx
jmp 0x40324b
xor eax, eax
call fcn.004014aa
mov ebx, eax
mov eax, 1
call fcn.004014aa
cmp dword [ebp - 0x274], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
jne 0x40269c
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403641
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x403641
xor ecx, ecx
mov dword [esp], ecx
call fcn.00401458
push ebx
mov esi, eax
mov dword [esp], 0x31
call fcn.00401458
push edi
mov edi, eax
mov dword [esp], 0x22
call fcn.00401458
push edx
mov ebx, eax
mov dword [esp], 0x15
call fcn.00401458
push ecx
mov dword [esp], 0xffffffec
call fcn.004016cf
push eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x24c], eax
cmp word [esi], 0
jne 0x402718
xor esi, esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
cmp word [ebx], 0
jne 0x40272c
xor ebx, ebx
mov eax, dword [0x40d974]
mov dword [ebp - 0x254], ebx
mov esi, 1
add eax, 0xb000
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call fcn.00407c5c
push edx
test eax, eax
je 0x403af1
test byte [ebp - 0x264], 0x40
je case.0x401756.66
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call fcn.0040906c
push edi
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp case.0x401756.66
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.004074ba
push ecx
push ecx
mov dword [esp], ebx
call fcn.00407bec
push ebx
mov ebx, eax
test eax, eax
je 0x403a3c
cmp dword [ebp - 0x278], 0
je 0x4027ea
mov dword [esp], eax
call fcn.0040906c
push esi
cmp dword [ebp - 0x27c], 0
js 0x4027ee
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00408358
push ecx
push ecx
xor esi, esi
jmp 0x4027f8
test eax, eax
setne al
movzx eax, al
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a31
mov dword [esp], 2
call fcn.00401458
push esi
mov dword [esp], eax
call fcn.004085d2
mov esi, eax
push edx
test eax, eax
je 0x40283b
mov eax, dword [eax + 0x14]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00408358
push ecx
push ecx
mov eax, dword [esi + 0x18]
jmp 0x40324b
mov word [ebx], 0
jmp 0x403a37
mov dword [esp], 0xffffffee
call fcn.00401458
push ecx
mov dword [ebp - 0x2a0], eax
mov dword [esp], 0xb
call fcn.0040874c
lea edx, [ebp - 0x28c]
push esi
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x2a0]
mov dword [esp], ecx
call eax
mov esi, eax
push edx
push edx
mov word [ebx], 0
mov word [edi], 0
test eax, eax
je 0x403a3c
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edx
push edx
mov dword [ebp - 0x29c], eax
test eax, eax
je 0x403a3c
mov dword [esp], 0xc
call fcn.0040874c
push edx
mov dword [ebp - 0x2a4], eax
mov dword [esp], 0xd
call fcn.0040874c
push ecx
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
mov eax, dword [ebp - 0x2a4]
call eax
mov edx, dword [ebp - 0x2a8]
sub esp, 0x10
test eax, eax
jne 0x402910
mov esi, 1
jmp 0x40297c
lea eax, [ebp - 0x268]
mov dword [esp + 4], 0x40d000
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x288]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call edx
sub esp, 0x10
test eax, eax
je 0x402909
mov edx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x288]
xor esi, esi
mov eax, dword [eax + edx*4 + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408358
push ecx
push ecx
mov edx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x288]
mov eax, dword [eax + edx*4 + 0xc]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00408358
push ebx
push ebx
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403a31
cmp dword [section..bss], 0
js 0x402aa8
mov dword [esp], 0xfffffff0
call fcn.00401458
push esi
mov edi, eax
mov dword [esp], 1
call fcn.00401458
push edx
cmp dword [ebp - 0x270], 0
mov esi, eax
jne 0x4029e9
xor ebx, ebx
mov dword [esp + 8], 8
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x4029f9
jmp 0x402a9f
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push ecx
test eax, eax
je 0x4029c4
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00409024
mov edi, eax
push edx
push edx
test eax, eax
je 0x402a5c
mov esi, dword [ebp - 0x278]
test esi, esi
je 0x402a2e
mov dword [esp], esi
call fcn.004016cf
push eax
call edi
test eax, eax
setne al
movzx eax, al
mov esi, eax
jmp 0x402a73
mov eax, dword [0x40d974]
mov dword [esp + 0x10], 0x40c000
mov dword [esp + 0xc], 0x41c900
mov dword [esp + 8], eax
mov dword [esp + 4], 0x400
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call edi
jmp 0x402a73
mov dword [esp + 4], esi
mov esi, 1
mov dword [esp], 0xfffffff7
call fcn.004074ba
push eax
push eax
cmp dword [ebp - 0x274], 0
jne 0x403af1
mov dword [esp], ebx
call fcn.00404dd2
push edi
test eax, eax
je 0x403af1
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403a31
mov dword [esp], 0xfffffff6
jmp 0x402aaf
mov dword [esp], 0xffffffe7
call fcn.004016cf
push ebx
jmp 0x403a3c
mov dword [esp], 0xfffffff0
call fcn.00401458
push edx
mov dword [ebp - 0x29c], eax
mov dword [esp], 0xffffffdf
call fcn.00401458
push ecx
mov ebx, eax
mov dword [esp], 2
call fcn.00401458
push esi
mov dword [ebp - 0x2a0], eax
mov dword [esp], 0xffffffcd
call fcn.00401458
push edi
mov edi, eax
mov dword [esp], 0x45
call fcn.00401458
push edx
mov esi, dword [ebp - 0x270]
mov dword [ebp - 0x2a4], eax
mov dword [esp], ebx
call fcn.00407d83
push ecx
test eax, eax
jne 0x402b31
mov dword [esp], 0x21
call fcn.00401458
push eax
lea eax, [ebp - 0x288]
mov dword [esp + 0xc], 0x414394
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x40f074
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x402cb0
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x268]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x413904
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x288]
mov edx, dword [eax]
jns 0x402ba3
mov dword [esp], eax
call dword [edx + 8]
push ecx
jmp 0x402cb0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x50]
bt esi, 0xf
mov ebx, eax
push edx
push edx
jb 0x402bd5
mov edx, dword [ebp - 0x288]
mov eax, dword [0x40d974]
mov ecx, dword [edx]
add eax, 0xb000
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0x24]
push eax
push eax
mov eax, esi
sar eax, 0xc
and eax, 7
je 0x402bf3
mov edx, dword [ebp - 0x288]
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 - 0x288]
mov ecx, esi
shr ecx, 0x10
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
push eax
push eax
cmp word [edi], 0
je 0x402c31
mov eax, dword [ebp - 0x288]
and esi, 0xfff
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x44]
sub esp, 0xc
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x2c]
push edi
push edi
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x2a4]
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 0x402c8e
mov eax, dword [ebp - 0x268]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov ecx, dword [ebp - 0x29c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x18]
sub esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x268]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
mov eax, dword [ebp - 0x288]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push esi
test ebx, ebx
jns 0x402cbc
mov dword [esp], 0xfffffff0
jmp 0x402aaf
mov dword [esp], 0xfffffff4
jmp 0x401a59
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.004085d2
push edx
test eax, eax
je 0x402d7f
mov dword [ebp - 0x264], 2
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x268], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenW
push edx
mov word [ebx + eax*2 + 2], 0
mov dword [esp], esi
call sub.KERNEL32.dll_lstrlenW
push ecx
mov word [esi + eax*2 + 2], 0
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x260], ebx
xor ebx, ebx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x24e], edi
mov word [ebp - 0x258], ax
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.004074ba
lea eax, [ebp - 0x268]
push esi
push esi
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
push edi
test eax, eax
je 0x403af1
xor esi, esi
mov dword [esp], 0xfffffff9
mov dword [esp + 4], esi
call fcn.004074ba
push edi
push edi
jmp 0x403a3c
cmp edx, 0xbadf00d
jne 0x4021ab
inc dword [0x41a034]
jmp case.0x401756.66
xor ebx, ebx
test edx, edx
je 0x402dc2
xor ecx, ecx
mov dword [esp], ecx
call fcn.00401458
push ebx
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x27c], 0
je 0x402ddc
mov dword [esp], 0x11
call fcn.00401458
push edx
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x270], 0
je 0x402df6
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_WritePrivateProfileStringW]
sub esp, 0x10
test eax, eax
sete al
jmp 0x402f6c
mov dword [ebp - 0x268], 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 - 0x268]
mov dword [esp + 4], esi
xor esi, esi
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub esp, 0x18
cmp word [ebx], 0xa
jne 0x403af1
jmp 0x403676
cmp dword [ebp - 0x270], 0
jne 0x402ee2
mov dword [esp], 2
call fcn.004014dd
mov esi, eax
push edi
test eax, eax
je 0x403a3c
mov dword [esp], 0x33
call fcn.00401458
push edx
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
mov ebx, eax
push ecx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
jmp 0x402f67
mov dword [ebp - 0x29c], ecx
mov dword [esp], 0x22
call fcn.00401458
mov ebx, eax
push edi
mov eax, dword [ebp - 0x270]
sar eax, 1
mov dword [ebp - 0x268], eax
cmp word [ebx], 0
je 0x403a3c
mov ecx, dword [ebp - 0x29c]
or eax, 0x100020
mov dword [ebp - 0x268], eax
test ecx, ecx
js 0x402f30
add ecx, dword [0x41a024]
sub ecx, 0x7fffffff
lea eax, [ebp - 0x268]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00408180
push esi
push esi
test eax, eax
je 0x403a3c
mov edx, dword [ebp - 0x268]
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
movzx eax, al
mov esi, eax
jmp 0x403af1
mov dword [ebp - 0x2a0], edx
mov esi, dword [ebp - 0x270]
mov edi, dword [ebp - 0x26c]
mov dword [esp], 2
call fcn.00401458
push ecx
mov dword [ebp - 0x29c], eax
mov dword [esp], 0x11
call fcn.00401458
push ebx
mov edx, dword [ebp - 0x2a0]
test edx, edx
js 0x402fbe
add edx, dword [0x41a024]
sub edx, 0x7fffffff
lea ecx, [ebp - 0x268]
mov dword [esp + 8], 0x100022
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040824a
sub esp, 0x10
test eax, eax
jne 0x403a3c
mov ebx, dword [ebp - 0x268]
test ebx, ebx
je 0x403a3c
cmp esi, 1
jne 0x403019
mov dword [esp], 0x23
call fcn.00401458
push eax
mov dword [esp], 0x41b100
call sub.KERNEL32.dll_lstrlenW
inc eax
push edx
add eax, eax
jmp 0x403062
cmp esi, 4
jne 0x403034
mov eax, 3
call fcn.004014aa
mov dword [0x41b100], eax
mov eax, 4
jmp 0x403062
xor eax, eax
cmp esi, 3
jne 0x403062
xor eax, eax
mov dword [esp + 0xc], 0x1800
mov dword [esp + 8], 0x41b100
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call fcn.00403fbd
sub esp, 0x10
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x41b100
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x29c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
setne al
mov dword [esp], ebx
movzx eax, al
mov esi, eax
jmp 0x40315d
mov dword [esp], 0x20019
call fcn.004014dd
push ecx
mov edi, eax
mov dword [esp], 0x33
call fcn.00401458
push esi
mov word [ebx], 0
test edi, edi
je 0x403a3c
mov dword [ebp - 0x288], 0x800
lea edx, [ebp - 0x288]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x268]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x40311a
mov eax, dword [ebp - 0x268]
cmp eax, 4
je 0x40312b
cmp eax, 1
je 0x403126
cmp eax, 2
je 0x40314b
mov word [ebx], 0
mov esi, 1
jmp 0x40315a
cmp eax, 4
jne 0x40314b
xor eax, eax
cmp dword [ebp - 0x270], 0
sete al
mov esi, eax
mov eax, dword [ebx]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408358
push eax
push eax
jmp 0x40315a
mov esi, dword [ebp - 0x270]
mov word [ebx + 0x7fe], 0
mov dword [esp], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403a31
mov dword [esp], 0x20019
call fcn.004014dd
push edi
mov edi, eax
mov eax, 3
call fcn.004014aa
mov word [ebx], 0
test edi, edi
je 0x403a3c
cmp dword [ebp - 0x270], 0
mov dword [ebp - 0x268], 0x3ff
je 0x4031c1
mov dword [esp + 0xc], 0x3ff
xor esi, esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
sub esp, 0x10
jmp 0x403151
xor esi, esi
lea edx, [ebp - 0x268]
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
setne al
movzx eax, al
mov esi, eax
jmp 0x403151
mov dword [esp], ebx
call fcn.0040837d
push ecx
test eax, eax
je case.0x401756.66
jmp 0x402780
mov dword [esp], 0xffffffed
call fcn.00401458
push edx
mov edx, dword [ebp - 0x278]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x27c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407f6b
sub esp, 0xc
cmp eax, 0xffffffff
je 0x403676
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x4035e7
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x29c], eax
test eax, eax
je 0x403284
mov eax, 1
call fcn.004014aa
mov word [0x41a900], ax
xor eax, eax
cmp esi, 0x38
setne al
mov edi, eax
inc edi
jmp 0x4032dd
cmp esi, 0x38
jne 0x4032c4
mov dword [esp], 0x21
call fcn.00401458
push ecx
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x41a900
mov dword [esp], 0x41b100
call fcn.004084b4
mov dword [esp], 0x41a900
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, eax
jmp 0x4032dd
mov dword [esp], 0x11
call fcn.00401458
push edi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenW
push edx
lea edi, [eax + eax]
cmp word [ebx], 0
je 0x403a3c
mov dword [esp], ebx
call fcn.0040837d
push ebx
mov ebx, eax
xor eax, eax
cmp esi, 0x38
sete al
or eax, dword [ebp - 0x29c]
je 0x40331e
mov dword [esp + 8], edi
mov dword [esp + 4], 0x41a900
mov dword [esp], ebx
call fcn.0040806d
sub esp, 0xc
jmp 0x402e1b
cmp dword [ebp - 0x274], 0
je 0x403302
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.004080b1
push ecx
push ecx
test eax, eax
jns 0x403302
jmp 0x403a3c
mov eax, 2
call fcn.004014aa
test eax, eax
jle case.0x401756.66
cmp word [ebx], 0
je 0x403a37
mov edx, 0x3ff
cmp eax, edx
cmovle edx, eax
mov dword [ebp - 0x29c], edx
mov dword [esp], ebx
xor ebx, ebx
call fcn.0040837d
push edx
mov esi, eax
mov word [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 2
cmp dword [ebp - 0x284], 0x39
mov edx, dword [ebp - 0x274]
jne 0x40348b
xor eax, eax
mov dword [esp], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x268]
mov dword [esp + 0xc], eax
mov eax, 2
sub eax, edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x288]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403575
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x403575
mov dword [ebp - 0x2a0], eax
movzx eax, byte [ebp - 0x288]
cmp dword [ebp - 0x274], 0
mov word [ebp - 0x28c], ax
jne 0x4034d0
lea eax, [ebp - 0x28c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], 8
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x288]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esp, 0x18
test eax, eax
jne 0x4034d0
dec dword [ebp - 0x268]
mov word [ebp - 0x28c], 0xfffd
je 0x4034d0
xor ecx, ecx
dec dword [ebp - 0x2a0]
mov dword [esp + 0xc], 1
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x2a0]
mov dword [esp], esi
neg eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x403405
or edx, ebx
je 0x4034b5
lea eax, [ebp - 0x28c]
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00408029
sub esp, 0xc
test eax, eax
jne 0x4034d0
jmp 0x403575
xor eax, eax
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004080b1
push edx
push edx
test eax, eax
jns 0x40348f
xor ebx, ebx
jmp 0x403575
cmp dword [ebp - 0x274], 0
movzx eax, word [ebp - 0x28c]
je 0x4034f3
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00408358
push eax
push eax
jmp 0x403af7
cmp word [ebp - 0x2a4], 0xd
je 0x403507
cmp word [ebp - 0x2a4], 0xa
jne 0x403556
cmp word [ebp - 0x2a4], ax
je 0x40351c
cmp ax, 0xd
je 0x403544
cmp ax, 0xa
je 0x403544
xor eax, eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], esi
neg eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x403575
add ebx, ebx
mov word [edi + ebx], ax
mov word [edi + ebx + 2], 0
jmp case.0x401756.66
inc ebx
mov word [edi + ebx*2 - 2], ax
test ax, ax
je 0x403575
cmp dword [ebp - 0x29c], ebx
je 0x40357b
mov word [ebp - 0x2a4], ax
jmp 0x40338a
mov dword [ebp - 0x29c], ebx
mov eax, dword [ebp - 0x29c]
mov word [edi + eax*2], 0
jmp 0x402e1b
cmp word [ebx], 0
je case.0x401756.66
mov ecx, dword [ebp - 0x274]
mov eax, 2
mov dword [ebp - 0x29c], ecx
call fcn.004014aa
mov dword [esp], ebx
xor ebx, ebx
mov esi, eax
call fcn.0040837d
push ecx
mov ecx, dword [ebp - 0x29c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
cmp dword [ebp - 0x27c], 0
js case.0x401756.66
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00408358
jmp 0x403641
mov dword [esp], ebx
call fcn.0040837d
push edx
test eax, eax
je case.0x401756.66
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402789
mov dword [esp], edi
call fcn.0040837d
push edi
test eax, eax
je 0x403676
lea edx, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
push esi
test eax, eax
je 0x403676
lea eax, [ebp - 0x23c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408439
push ebx
push ebx
xor esi, esi
jmp 0x403af1
mov dword [esp], 2
call fcn.00401458
push edx
lea edx, [ebp - 0x268]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ecx
push ecx
cmp eax, 0xffffffff
jne 0x403680
mov word [edi], 0
mov word [ebx], 0
jmp 0x403a3c
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00408358
push esi
push esi
jmp 0x40362f
mov dword [esp], 0xfffffff0
call fcn.00401458
push edx
mov esi, eax
mov dword [esp], eax
call fcn.00407d83
push ecx
test eax, eax
jne 0x4036b9
mov dword [esp], 0xffffffed
call fcn.00401458
push eax
mov dword [esp], esi
call fcn.00407ed2
push edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407f6b
mov dword [ebp - 0x29c], eax
sub esp, 0xc
inc eax
jne 0x4036ff
mov dword [esp], esi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0xffffffef
push ebx
jmp 0x40385e
cmp dword [ebp - 0x278], 0
mov edx, dword [ebp - 0x27c]
je 0x40381e
mov eax, dword [0x41c928]
mov dword [ebp - 0x2a4], edx
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2a0], 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 - 0x2a4]
je 0x40381e
xor ecx, ecx
mov dword [esp], ecx
call fcn.00403dbf
push eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403d97
push eax
push eax
mov eax, dword [ebp - 0x278]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call edi
mov edi, eax
push edx
push edx
test eax, eax
je 0x4037f2
mov eax, dword [ebp - 0x278]
xor edx, edx
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call fcn.00403fbd
mov eax, edi
sub esp, 0x10
cmp byte [eax], 0
je 0x4037e8
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [esp + 8], ecx
mov dword [ebp - 0x2a8], ecx
mov dword [esp + 4], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2a4], edx
add ecx, ebx
mov dword [esp], ecx
call fcn.00407eb5
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2a8]
sub esp, 0xc
lea eax, [edx + ecx]
jmp 0x4037a9
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.0040806d
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or edx, 0xffffffff
push eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00403fbd
mov ebx, eax
mov eax, dword [ebp - 0x29c]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
test ebx, ebx
js 0x4036e6
mov eax, 0xfffffff3
xor esi, esi
mov dword [esp], eax
call fcn.004016cf
jmp 0x403a31
xor eax, eax
call fcn.004014aa
mov esi, eax
cmp eax, dword [0x41c94c]
jae 0x403a3c
imul ebx, eax, 0x818
mov eax, dword [ebp - 0x278]
add ebx, dword [0x41c948]
test eax, eax
js 0x4038ae
mov eax, dword [ebx + eax*4]
jne 0x4035e0
add ebx, 0x18
mov dword [esp], edi
mov dword [esp + 4], ebx
jmp 0x40363c
not eax
mov dword [ebp - 0x278], eax
test eax, eax
je 0x4038cc
mov eax, 1
call fcn.004014aa
mov dword [ebp - 0x27c], eax
jmp 0x4038ea
mov eax, dword [ebp - 0x270]
mov dword [esp + 4], eax
lea eax, [ebx + 0x18]
mov dword [esp], eax
call fcn.004087be
push eax
push eax
or dword [ebx + 8], 0x100
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x278]
mov dword [ebx + eax*4], edx
cmp dword [ebp - 0x274], 0
je case.0x401756.66
mov dword [esp], esi
call fcn.00401258
jmp 0x402789
xor eax, eax
call fcn.004014aa
cmp eax, 0x1f
ja 0x403a3c
cmp dword [ebp - 0x274], 0
mov ecx, dword [ebp - 0x278]
je 0x403962
test ecx, ecx
je 0x403952
mov dword [esp], eax
xor edi, edi
call fcn.0040137c
push esi
mov dword [esp + 4], edi
mov dword [esp], edi
call fcn.004012c9
jmp 0x403641
xor ecx, ecx
mov dword [esp], ecx
call fcn.004013d5
push ebx
jmp 0x4035e0
test ecx, ecx
mov edx, dword [0x41c930]
lea eax, [eax + 0x24]
je 0x40397e
mov ecx, dword [ebp - 0x27c]
mov dword [edx + eax*4 + 4], ecx
jmp case.0x401756.66
mov eax, dword [edx + eax*4 + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004087be
jmp 0x403641
mov esi, dword [ebp - 0x274]
test esi, esi
je 0x4039a9
dec esi
je 0x403a46
jmp case.0x401756.66
mov dword [esp], 5
call fcn.0040874c
push ecx
mov ebx, eax
mov dword [esp], 0x22
call fcn.00401458
push edx
test ebx, ebx
je 0x403a37
lea edx, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.ole32.dll_IIDFromString]
push edx
push edx
test eax, eax
js 0x403a37
lea eax, [ebp - 0x288]
lea edx, [ebp - 0x268]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], edx
mov dword [esp + 4], eax
call ebx
sub esp, 0x10
test eax, eax
js 0x403a37
mov eax, dword [ebp - 0x288]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00408439
push eax
push eax
mov eax, dword [ebp - 0x288]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
jmp 0x403af1
mov word [edi], 0
mov esi, 1
jmp 0x403af1
mov eax, 2
xor esi, esi
call fcn.004014aa
mov ebx, eax
mov eax, 4
call fcn.004014aa
mov dword [ebp - 0x268], esi
movzx edx, al
shr eax, 0x18
test ebx, ebx
jne 0x403a73
mov ebx, 0x41a020
add ebx, eax
lea eax, [ebp - 0x268]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.00407eb5
mov eax, dword [ebp - 0x268]
sub esp, 0xc
jmp 0x4035e0
xor ecx, ecx
mov dword [esp + 0xc], ecx
and edx, dword [0x431aa0]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xb
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
cmp dword [ebp - 0x280], 0
je case.0x401756.66
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
sub esp, 0xc
jmp case.0x401756.66
add dword [0x41a028], esi
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 4