Function at 0x4016b8
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 [0x43c308]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2a0], eax
mov edx, dword [ebp - 0x27c]
mov edi, dword [ebp - 0x280]
mov esi, dword [ebp - 0x284]
mov eax, edx
mov ebx, edi
shl eax, 0xb
add eax, dword [0x40c8f4]
shl ebx, 0xb
add ebx, dword [0x40c8f4]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x280]
mov dword [0x41405c], eax
lea eax, [esi - 2]
cmp eax, 0x43
ja case.0x401724.66
jmp dword [eax*4 + 0x40c008]
mov dword [esp + 4], 0
mov dword [esp], edi
jmp 0x401d27
inc dword [0x43d320]
cmp dword [ebp - 0x2a0], 0
mov edi, 0x7fffffff
je case.0x401724.2
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
jmp case.0x401724.2
mov dword [esp], edi
call fcn.00401675
push edx
dec eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403bb1
mov edi, eax
push ecx
push ecx
jmp case.0x401724.2
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.00407479
jmp 0x4026aa
xor eax, eax
call fcn.0040146a
mov edx, 1
test eax, eax
cmovle eax, edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4017c9
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push eax
jmp case.0x401724.66
cmp dword [ebp - 0x278], 0
jg 0x401804
jne 0x4017e8
mov eax, dword [edi*4 + 0x43c220]
mov dword [edi*4 + 0x43c1e0], eax
mov eax, 1
call fcn.0040146a
mov edx, dword [ebp - 0x280]
mov dword [edx*4 + 0x43c220], eax
jmp case.0x401724.66
mov eax, dword [edi*4 + 0x43c1e0]
mov dword [edi*4 + 0x43c220], eax
jmp case.0x401724.66
mov ecx, dword [ebp - 0x278]
xor edx, edx
mov eax, dword [ecx*4 + 0x43c220]
test eax, eax
sete dl
and eax, dword [ebp - 0x274]
mov edi, dword [ebp + edx*4 - 0x280]
mov dword [ecx*4 + 0x43c220], eax
jmp case.0x401724.2
mov eax, dword [edx*4 + 0x43c220]
jmp 0x402849
mov eax, dword [0x43d324]
test eax, eax
je 0x401868
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov eax, dword [0x43d328]
test eax, eax
je case.0x401724.66
mov edx, dword [ebp - 0x280]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4026aa
mov dword [esp], 0xfffffff0
call fcn.00401414
mov edx, dword [ebp - 0x27c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x401b57
mov dword [esp], 0xfffffff0
xor edi, edi
call fcn.00401414
push ebx
mov ebx, eax
mov dword [esp], eax
call fcn.00407dcd
push esi
test eax, eax
je 0x401956
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call fcn.00407d2d
mov esi, eax
push ecx
push ecx
mov ax, word [eax]
mov word [esi], 0
mov word [ebp - 0x29c], ax
test ax, ax
jne 0x401918
cmp dword [ebp - 0x278], 0
je 0x401918
call fcn.00408809
test eax, eax
je 0x401918
mov dword [esp], ebx
call fcn.00407b5c
jmp 0x401920
mov dword [esp], ebx
call fcn.00407bc0
push edx
test eax, eax
je 0x401942
cmp eax, 0xb7
je 0x40192f
inc edi
jmp 0x401942
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
push ecx
cmp eax, 1
adc edi, 0
mov ecx, dword [ebp - 0x29c]
lea eax, [esi + 2]
mov word [esi], cx
test cx, cx
jmp 0x4018ce
cmp dword [ebp - 0x27c], 0
je 0x401999
mov dword [esp], 0xffffffe6
call fcn.00401699
mov eax, dword [0x40c8f4]
push esi
add eax, 0xb000
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040849b
push eax
push eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp eax, 1
push edx
adc edi, 0
jmp 0x403b9d
mov dword [esp], 0xfffffff5
jmp 0x4038c2
mov dword [esp], 0
call fcn.00401414
push ecx
mov dword [esp], eax
call fcn.00408641
jmp 0x4023f3
mov dword [esp], 0xffffffd0
call fcn.00401414
push ecx
mov ebx, eax
mov dword [esp], 0xffffffdf
call fcn.00401414
push esi
mov esi, eax
mov dword [esp], 0x13
call fcn.00401414
push edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edi, eax
push edx
push edx
test eax, eax
je 0x401a0b
mov dword [esp], 0xffffffe3
jmp 0x402cf1
cmp dword [ebp - 0x278], 0
je 0x403ad1
mov dword [esp], ebx
call fcn.00408641
push edx
test eax, eax
je 0x403ad1
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408dbb
push eax
push eax
mov dword [esp], 0xffffffe4
jmp 0x4038c2
mov dword [esp], 0
call fcn.00401414
push edi
mov ebx, eax
lea eax, [ebp - 0x268]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 4], 0x400
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
je 0x401ab6
mov eax, dword [ebp - 0x268]
xor edi, edi
cmp eax, ebx
jbe 0x401ac6
cmp word [eax], 0
je 0x401ac6
mov dword [esp], ebx
call fcn.00408641
push esi
test eax, eax
je 0x401ab6
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call fcn.0040849b
push ebx
push ebx
jmp 0x401ac6
mov eax, dword [ebp - 0x29c]
mov edi, 1
mov word [eax], 0
cmp dword [ebp - 0x278], 0
jne 0x403b9d
mov eax, dword [ebp - 0x29c]
mov dword [esp + 8], 0x400
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
sub esp, 0xc
jmp 0x403b9d
mov dword [esp], 0xffffffff
xor edi, edi
call fcn.00401414
lea edx, [ebp - 0x268]
push ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
sub esp, 0x18
test eax, eax
jmp 0x402ec5
mov dword [esp], 0xffffffef
call fcn.00401414
push edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407fe4
push edi
push edi
jmp 0x403373
mov dword [esp], 0x31
call fcn.00401414
mov edi, dword [ebp - 0x280]
push ebx
mov ebx, eax
and edi, 7
mov dword [esp], eax
call fcn.00407d9a
push esi
test eax, eax
je 0x401b95
mov dword [esp + 4], ebx
mov dword [esp], 0x414060
call fcn.0040849b
jmp 0x401bc6
mov eax, dword [0x40c8f4]
mov dword [esp], 0x414060
add eax, 0xb000
mov dword [esp + 4], eax
call fcn.0040849b
push edx
push edx
mov dword [esp], eax
call fcn.004084cf
push ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatW
push esi
push esi
mov dword [esp], 0x414060
call fcn.00408564
push eax
cmp edi, 2
jle 0x401c1a
mov dword [esp], 0x414060
call fcn.00408641
push ecx
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x401c07
lea eax, [ebp - 0x274]
add ecx, 0x14
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push edx
push edx
lea edx, [edi - 3]
or edx, 0x80000000
test edx, eax
sete al
movzx eax, al
mov edi, eax
test edi, edi
jne 0x401c2f
mov dword [esp], 0x414060
xor edi, edi
call fcn.00407ee9
push esi
jmp 0x401c3e
mov eax, 1
cmp edi, 1
je 0x401c43
mov edi, 2
mov eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x414060
call fcn.00407f8c
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
jne 0x401d38
test edi, edi
je 0x401c87
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe2
call fcn.00407479
cmp edi, 2
push ebx
push ebx
jmp 0x4035d8
mov eax, dword [0x40c8f4]
mov dword [esp], 0x415060
mov dword [esp + 4], eax
call fcn.0040849b
push eax
push eax
mov eax, dword [0x40c8f4]
mov dword [esp + 4], 0x414060
mov dword [esp], eax
call fcn.0040849b
push eax
push eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], 0x414860
mov dword [esp + 4], eax
call fcn.0040882f
push eax
push eax
mov eax, dword [0x40c8f4]
mov dword [esp + 4], 0x415060
mov dword [esp], eax
call fcn.0040849b
mov eax, dword [ebp - 0x280]
push edx
push edx
sar eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x414860
call fcn.00407cc1
push ecx
push ecx
cmp eax, 4
je 0x401c1e
cmp eax, 5
jne 0x401d18
inc dword [0x43c228]
jmp case.0x401724.2
mov dword [esp + 4], 0x414060
mov dword [esp], 0xfffffffa
call fcn.00407479
mov edi, 0x7fffffff
push eax
push eax
jmp case.0x401724.2
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffea
call fcn.00407479
inc dword [0x43c254]
push eax
push eax
mov eax, dword [ebp - 0x278]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00403e3c
dec dword [0x43c254]
mov edi, eax
mov eax, dword [ebp - 0x274]
and eax, dword [ebp - 0x270]
sub esp, 0x10
inc eax
je 0x401dae
lea eax, [ebp - 0x274]
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.0x401724.66
cmp edi, 0xfffffffe
jne 0x401ded
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x414060
call fcn.0040882f
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x414060
call sub.KERNEL32.dll_lstrcatW
jmp 0x401e01
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x414060
call fcn.0040882f
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], 0x414060
jmp 0x4021c8
mov dword [esp], 0
jmp 0x401e73
mov dword [esp], 0x31
call fcn.00401414
push edx
mov edx, dword [ebp - 0x280]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407cc1
push ecx
push ecx
test eax, eax
je 0x403ad1
cmp dword [ebp - 0x278], eax
je 0x402022
cmp dword [ebp - 0x270], eax
jne case.0x401724.66
mov edi, dword [ebp - 0x26c]
jmp case.0x401724.2
mov dword [esp], 0xfffffff0
call fcn.00401414
mov edx, dword [ebp - 0x27c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408e00
jmp 0x4026aa
mov dword [esp], 1
call fcn.00401414
push esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenW
jmp 0x40266f
mov eax, 2
call fcn.0040146a
mov esi, eax
mov eax, 3
mov dword [ebp - 0x2a0], edx
call fcn.0040146a
mov dword [esp], 1
mov edi, eax
call fcn.00401414
push edx
mov dword [ebp - 0x29c], eax
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenW
push ecx
mov ecx, dword [ebp - 0x2a0]
mov word [ebx], 0
test ecx, ecx
cmove esi, eax
test esi, esi
je case.0x401724.66
test edi, edi
mov edx, dword [ebp - 0x29c]
jns 0x401f0e
add edi, eax
js case.0x401724.66
cmp eax, edi
mov dword [esp], ebx
cmovg eax, edi
add eax, eax
add eax, edx
mov dword [esp + 4], eax
call fcn.0040849b
push eax
push eax
test esi, esi
jns 0x401f36
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenW
push edi
add esi, eax
js 0x401f44
cmp esi, 0x3ff
jg case.0x401724.66
jmp 0x401f46
xor esi, esi
mov word [ebx + esi*2], 0
jmp case.0x401724.66
mov dword [esp], 0x20
call fcn.00401414
push ecx
mov ebx, eax
mov dword [esp], 0x31
call fcn.00401414
cmp dword [ebp - 0x270], 0
push esi
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x401f85
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401f8b
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push edx
push edx
test eax, eax
jne 0x402022
jmp 0x402403
mov dword [esp], 1
call fcn.00401414
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 0x401fd1
mov word [ebx], 0
mov edi, 1
jmp 0x401ff3
cmp dword [ebp - 0x278], 0
jne 0x401fde
xor edi, edi
jmp 0x401ff3
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push esi
push esi
test eax, eax
je 0x401fc5
jmp 0x401fda
mov word [ebx + 0x7fe], 0
jmp 0x403b9d
xor eax, eax
mov esi, dword [ebp - 0x26c]
call fcn.0040146a
mov ebx, eax
mov eax, 1
call fcn.0040146a
test esi, esi
jne 0x40203e
cmp ebx, eax
jge 0x40202d
mov edi, dword [ebp - 0x274]
jmp case.0x401724.2
jle 0x402403
mov edi, dword [ebp - 0x270]
jmp case.0x401724.2
cmp ebx, eax
jb 0x402022
jbe 0x402403
jmp 0x402033
mov eax, 1
call fcn.0040146a
mov dword [ebp - 0x29c], eax
mov eax, 2
call fcn.0040146a
mov edi, dword [ebp - 0x274]
mov esi, eax
mov ecx, eax
cmp edi, 0xd
ja case.default.0x402077
jmp dword [edi*4 + 0x40c118]
mov esi, dword [ebp - 0x29c]
add esi, eax
jmp 0x40214e
mov esi, dword [ebp - 0x29c]
sub esi, eax
jmp 0x40214c
mov esi, dword [ebp - 0x29c]
imul esi, eax
jmp 0x40214c
mov edi, 1
test eax, eax
je 0x40214e
mov eax, dword [ebp - 0x29c]
cdq
idiv esi
jmp 0x4020f9
mov esi, dword [ebp - 0x29c]
or esi, eax
jmp 0x40214c
mov esi, dword [ebp - 0x29c]
and esi, eax
jmp 0x40214c
mov esi, dword [ebp - 0x29c]
xor esi, eax
jmp 0x40214c
cmp dword [ebp - 0x29c], 0
sete al
jmp 0x4020f6
mov eax, dword [ebp - 0x29c]
or eax, esi
setne al
movzx eax, al
mov esi, eax
jmp 0x40214c
cmp dword [ebp - 0x29c], 0
setne al
xor edx, edx
test esi, esi
setne dl
and edx, eax
jmp 0x402124
mov edi, 1
test eax, eax
je 0x40214e
mov eax, dword [ebp - 0x29c]
cdq
idiv esi
mov esi, edx
jmp 0x40214c
mov esi, dword [ebp - 0x29c]
shl esi, cl
jmp 0x40214c
mov esi, dword [ebp - 0x29c]
sar esi, cl
jmp 0x40214c
mov esi, dword [ebp - 0x29c]
shr esi, cl
jmp 0x40214c
mov esi, dword [ebp - 0x29c]
xor edi, edi
mov dword [esp + 4], esi
jmp 0x4023db
mov dword [esp], 1
call fcn.00401414
push ecx
mov esi, eax
mov eax, 2
call fcn.0040146a
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
jmp case.0x401724.66
mov edi, dword [ebp - 0x278]
mov esi, dword [0x416860]
test edi, edi
je 0x402215
mov edx, edi
dec edx
test esi, esi
je 0x4021a7
mov esi, dword [esi]
test edx, edx
jne 0x402198
test esi, esi
jne 0x4021d2
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.0040882f
push edx
push edx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00407cc1
jmp 0x401d2c
add esi, 4
mov dword [esp], 0x414060
mov dword [esp + 4], esi
call fcn.0040849b
push eax
push eax
mov eax, dword [0x416860]
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0040849b
push eax
push eax
mov eax, dword [0x416860]
add eax, 4
mov dword [esp + 4], 0x414060
mov dword [esp], eax
jmp 0x4036dd
test edx, edx
je 0x40223e
test esi, esi
je 0x403ad1
lea eax, [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040849b
push eax
push eax
mov eax, dword [esi]
mov dword [0x416860], eax
jmp 0x402994
mov dword [esp + 4], 0x804
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ecx
mov ebx, eax
mov eax, dword [ebp - 0x280]
push ecx
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.0040882f
mov eax, dword [0x416860]
push esi
push esi
mov dword [ebx], eax
mov dword [0x416860], ebx
jmp 0x403b9d
mov eax, 3
call fcn.0040146a
mov esi, eax
mov eax, 4
call fcn.0040146a
mov edi, eax
test byte [ebp - 0x26c], 1
je 0x4022b0
mov dword [esp], 0x33
call fcn.00401414
push edx
mov esi, eax
test byte [ebp - 0x26c], 2
jne 0x4022c1
mov dword [ebp - 0x29c], edi
jmp 0x4022d4
mov dword [esp], 0x44
call fcn.00401414
mov dword [ebp - 0x29c], eax
push edi
cmp dword [ebp - 0x284], 0x21
jne 0x402372
mov eax, 1
call fcn.0040146a
mov dword [ebp - 0x2a0], eax
mov eax, 2
call fcn.0040146a
mov edi, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x2a0]
sar edi, 2
je 0x40234c
lea edx, [ebp - 0x268]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x29c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
sub esp, 0x1c
test eax, eax
sete al
movzx eax, al
mov edi, eax
jmp 0x4023c4
mov edx, dword [ebp - 0x29c]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
mov dword [ebp - 0x268], eax
jmp 0x4023c4
mov dword [esp], 1
call fcn.00401414
push edx
mov edi, eax
mov dword [esp], 0x12
call fcn.00401414
push ecx
cmp word [eax], 0
jne 0x402396
xor eax, eax
cmp word [edi], 0
jne 0x40239e
xor edi, edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0x268], eax
sub esp, 0x10
cmp dword [ebp - 0x280], 0
js 0x403b9d
mov eax, dword [ebp - 0x268]
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x4039e1
xor eax, eax
call fcn.0040146a
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
push edi
test eax, eax
je 0x402403
mov edi, dword [ebp - 0x27c]
jmp case.0x401724.2
mov edi, dword [ebp - 0x278]
jmp case.0x401724.2
mov eax, 2
call fcn.0040146a
mov esi, eax
mov eax, 1
call fcn.0040146a
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
jmp 0x402849
add edx, dword [0x43c2c8]
xor eax, eax
mov edi, edx
call fcn.0040146a
mov dword [esp + 8], edi
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x403b98
test byte [ebp - 0x273], 1
je 0x402476
mov eax, 2
call fcn.0040146a
jmp 0x402491
mov eax, dword [ebp - 0x278]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2a0]
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
and edx, 1
and ecx, 4
mov edi, edx
mov dword [ebp - 0x2a4], ecx
mov ecx, eax
shr ecx, 0x1f
bt eax, 0x10
mov dword [ebp - 0x2a8], ecx
jae 0x4024d9
mov dword [esp], 0x11
call fcn.00401414
push edx
jmp 0x4024e0
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]
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 0x25c]
push eax
imul edx, edi
push eax
and ecx, 0xfef0
mov eax, dword [ebp - 0x2a8]
xor edi, edi
imul eax, dword [ebp - 0x260]
cmp dword [ebp - 0x2a4], 0
je 0x40252e
mov edi, dword [0x43c30c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 0x10], edx
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 0x402595
cmp dword [ebp - 0x29c], 0
jne 0x402595
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push eax
cmp dword [ebp - 0x280], 0
js case.0x401724.66
mov dword [esp + 4], edi
jmp 0x40284d
mov eax, dword [ebp - 0x2a0]
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.0040146a
mov dword [esp + 8], 0x48
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
sub esp, 0xc
mov dword [section..bss], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push eax
push eax
mov eax, 3
call fcn.0040146a
mov dword [esp], 0x41401c
mov dword [0x414010], eax
mov eax, dword [ebp - 0x270]
mov byte [0x414017], 1
mov edx, eax
and edx, 1
mov byte [0x414014], dl
mov edx, eax
and eax, 4
mov byte [0x414016], al
mov eax, dword [ebp - 0x27c]
and edx, 2
mov byte [0x414015], dl
mov dword [esp + 4], eax
call fcn.0040882f
push eax
push eax
mov dword [esp], section..bss
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push edx
jmp 0x402849
xor eax, eax
call fcn.0040146a
mov ebx, eax
mov eax, 1
call fcn.0040146a
mov edi, dword [ebp - 0x274]
mov dword [esp], ebx
mov dword [esp + 4], eax
test edi, edi
jne 0x4026a4
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x403a1a
call dword [sym.imp.USER32.dll_EnableWindow]
push eax
push eax
jmp case.0x401724.66
mov dword [esp], 0
call fcn.00401414
push edx
mov esi, eax
mov dword [esp], 0x31
call fcn.00401414
push ecx
mov edi, eax
mov dword [esp], 0x22
call fcn.00401414
push ebx
mov ebx, eax
mov dword [esp], 0x15
call fcn.00401414
push eax
mov dword [esp], 0xffffffec
call fcn.00401699
push eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x24c], eax
cmp word [esi], 0
jne 0x402724
xor esi, esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
cmp word [ebx], 0
jne 0x402738
xor ebx, ebx
mov eax, dword [0x40c8f4]
mov dword [ebp - 0x254], ebx
add eax, 0xb000
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call fcn.00407c70
push edi
mov edi, 1
test eax, eax
je 0x403b9d
xor edi, edi
test byte [ebp - 0x264], 0x40
je 0x403b9d
mov eax, dword [ebp - 0x230]
mov dword [esp], eax
call fcn.00409118
mov eax, dword [ebp - 0x230]
push esi
mov dword [esp], eax
jmp 0x402808
mov dword [esp], 0
call fcn.00401414
push edx
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffeb
call fcn.00407479
push ecx
push ecx
mov dword [esp], ebx
call fcn.00407bee
push ebx
mov ebx, eax
test eax, eax
je 0x403ad1
mov edi, dword [ebp - 0x278]
test edi, edi
je 0x402805
mov dword [esp], eax
call fcn.00409118
cmp dword [ebp - 0x27c], 0
push edi
js 0x4027fb
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
xor edi, edi
mov dword [esp], eax
call fcn.004083b6
push esi
push esi
jmp 0x402805
test eax, eax
setne al
movzx eax, al
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4030e6
mov dword [esp], 2
call fcn.00401414
push edx
mov dword [esp], eax
call fcn.00408641
mov esi, eax
push ecx
test eax, eax
je 0x402855
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004083b6
push edi
push edi
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x403b38
mov word [ebx], 0
jmp 0x403ac6
mov dword [esp], 0xffffffee
call fcn.00401414
push edi
mov dword [ebp - 0x2a0], eax
mov dword [esp], 0xb
call fcn.004087bd
mov ecx, dword [ebp - 0x2a0]
push edx
lea edx, [ebp - 0x28c]
mov dword [esp], ecx
mov dword [esp + 4], edx
call eax
mov edi, eax
mov eax, dword [ebp - 0x29c]
push ecx
push ecx
mov word [ebx], 0
mov word [eax], 0
test edi, edi
je 0x403ad1
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 0x403ad1
mov dword [esp], 0xc
call fcn.004087bd
push edx
mov dword [ebp - 0x2a8], eax
mov dword [esp], 0xd
call fcn.004087bd
push ecx
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x2a4]
sub esp, 0x10
test eax, eax
jne 0x402928
mov edi, 1
jmp 0x402994
lea eax, [ebp - 0x268]
mov dword [esp + 4], 0x40c000
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x288]
mov dword [esp + 8], eax
mov dword [esp], esi
call edx
sub esp, 0x10
test eax, eax
je 0x402921
mov edx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x288]
mov eax, dword [eax + edx*4 + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004083b6
mov edx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x288]
push edi
push edi
mov eax, dword [eax + edx*4 + 0xc]
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004083b6
push eax
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4030e6
cmp dword [0x43c260], 0
js 0x402aca
mov dword [esp], 0xfffffff0
call fcn.00401414
push ebx
mov edi, eax
mov dword [esp], 1
call fcn.00401414
cmp dword [ebp - 0x270], 0
push esi
mov esi, eax
jne 0x4029fd
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x402a0d
jmp 0x402abe
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push ecx
test eax, eax
je 0x4029d6
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004090d0
push edx
push edx
test eax, eax
je 0x402a7b
mov edi, dword [ebp - 0x278]
test edi, edi
je 0x402a4c
mov dword [esp], edi
mov dword [ebp - 0x29c], eax
call fcn.00401699
mov eax, dword [ebp - 0x29c]
push edi
call eax
test eax, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x402a92
mov ecx, dword [0x40c8f4]
mov dword [esp + 0x10], 0x40b000
mov dword [esp + 0xc], 0x416860
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x2a0]
mov dword [esp + 4], 0x400
mov dword [esp], ecx
call eax
jmp 0x402a92
mov dword [esp + 4], esi
mov edi, 1
mov dword [esp], 0xfffffff7
call fcn.00407479
push esi
push esi
cmp dword [ebp - 0x274], 0
jne 0x403b9d
mov dword [esp], ebx
call fcn.00404d3f
push ecx
test eax, eax
je 0x403b9d
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4030e6
mov dword [esp], 0xfffffff6
jmp 0x402b8e
mov dword [esp], 0xffffffe7
jmp 0x402b8e
mov dword [esp], 0xfffffff0
call fcn.00401414
push esi
mov dword [ebp - 0x2a0], eax
mov dword [esp], 0xffffffdf
call fcn.00401414
push edi
mov esi, eax
mov dword [esp], 2
call fcn.00401414
push edx
mov dword [ebp - 0x2a4], eax
mov dword [esp], 0xffffffcd
call fcn.00401414
push ecx
mov dword [ebp - 0x29c], eax
mov dword [esp], 0x45
call fcn.00401414
mov edi, dword [ebp - 0x270]
push ebx
mov dword [ebp - 0x2a8], eax
mov dword [esp], esi
call fcn.00407d9a
push edx
test eax, eax
jne 0x402b51
mov dword [esp], 0x21
call fcn.00401414
push ebx
lea eax, [ebp - 0x288]
mov dword [esp + 0xc], 0x4127f0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40def0
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jns 0x402b99
mov dword [esp], 0xfffffff0
call fcn.00401699
push ecx
jmp 0x403ad1
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x268]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x411df0
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x402cd3
mov eax, dword [ebp - 0x288]
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 0x402bff
mov edx, dword [ebp - 0x288]
mov eax, dword [0x40c8f4]
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, edi
sar eax, 0xc
and eax, 7
je 0x402c1d
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, 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 - 0x29c]
cmp word [eax], 0
je 0x402c67
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x29c]
and edi, 0xfff
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x44]
sub esp, 0xc
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 + 0x2c]
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x2a8]
push edi
push edi
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 0x402cc4
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], eax
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 esi
mov eax, dword [ebp - 0x288]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
test ebx, ebx
js 0x402b87
mov dword [esp], 0xfffffff4
call fcn.00401699
jmp 0x4017c9
mov dword [esp], 0
call fcn.00401414
push edi
mov ebx, eax
mov dword [esp], 0x11
call fcn.00401414
push edx
mov esi, eax
mov dword [esp], 0x23
call fcn.00401414
push ecx
mov edi, eax
mov dword [esp], ebx
call fcn.00408641
push edx
test eax, eax
je 0x402dba
mov dword [esp], ebx
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x264], 2
mov dword [ebp - 0x268], eax
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
mov dword [esp + 4], edi
mov dword [esp], 0
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x24e], edi
mov word [ebp - 0x258], ax
call fcn.00407479
lea eax, [ebp - 0x268]
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
push esi
test eax, eax
je 0x403b9d
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.00407479
push edi
push edi
jmp 0x403ad1
cmp edi, 0xbadf00d
jne 0x4021a7
inc dword [0x43c234]
jmp case.0x401724.66
xor esi, esi
test edi, edi
je 0x402e01
mov dword [esp], 0
call fcn.00401414
push esi
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x27c], 0
je 0x402e1b
mov dword [esp], 0x11
call fcn.00401414
push ebx
mov edi, eax
xor ebx, ebx
cmp dword [ebp - 0x270], 0
je 0x402e35
mov dword [esp], 0x22
call fcn.00401414
push ecx
mov ebx, eax
mov dword [esp], 0xffffffcd
call fcn.00401414
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
sub esp, 0x10
jmp 0x403373
mov dword [esp], 1
mov eax, dword [0x40c004]
mov dword [ebp - 0x268], eax
call fcn.00401414
push edi
mov esi, eax
mov dword [esp], 0x12
call fcn.00401414
push edx
mov edi, eax
mov dword [esp], 0xffffffdd
call fcn.00401414
push ecx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x268]
mov dword [esp + 4], edi
xor edi, edi
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub esp, 0x18
cmp word [ebx], 0xa
jne 0x403b9d
jmp 0x4036b2
cmp dword [ebp - 0x270], 0
jne 0x402f1d
mov dword [esp], 2
call fcn.00401612
mov ebx, eax
push esi
test eax, eax
je 0x403ad1
mov dword [esp], 0x33
call fcn.00401414
push edx
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
mov esi, eax
push ecx
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
jmp 0x402fa6
mov dword [esp], 0x22
mov dword [ebp - 0x29c], edx
call fcn.00401414
mov edx, dword [ebp - 0x29c]
mov ebx, eax
mov eax, dword [ebp - 0x270]
push edi
sar eax, 1
mov dword [ebp - 0x268], eax
cmp word [ebx], 0
je 0x403ad1
or eax, 0x100020
mov edi, edx
mov dword [ebp - 0x268], eax
test edx, edx
js 0x402f6f
add edx, dword [0x43c224]
mov edi, edx
sub edi, 0x7fffffff
lea eax, [ebp - 0x268]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004081c9
push esi
push esi
test eax, eax
je 0x403ad1
mov edx, dword [ebp - 0x268]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0040149f
sub esp, 0xc
mov esi, eax
test esi, esi
setne al
movzx eax, al
mov edi, eax
jmp 0x403b9d
mov dword [esp], 2
mov eax, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x270]
mov dword [ebp - 0x29c], eax
call fcn.00401414
push edx
mov dword [ebp - 0x2a0], eax
mov dword [esp], 0x11
call fcn.00401414
mov edx, edi
push ecx
test edi, edi
js 0x402ff9
add edx, dword [0x43c224]
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.00408298
sub esp, 0x10
test eax, eax
jne 0x403ad1
mov ebx, dword [ebp - 0x268]
test ebx, ebx
je 0x403ad1
cmp esi, 1
jne 0x403054
mov dword [esp], 0x23
call fcn.00401414
push esi
mov dword [esp], 0x415060
call sub.KERNEL32.dll_lstrlenW
inc eax
push edi
add eax, eax
jmp 0x40309f
cmp esi, 4
je 0x40308b
xor eax, eax
cmp esi, 3
jne 0x40309f
mov eax, dword [ebp - 0x274]
mov dword [esp + 0xc], 0x1800
mov dword [esp + 8], 0x415060
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403e3c
sub esp, 0x10
jmp 0x40309f
mov eax, 3
call fcn.0040146a
mov dword [0x415060], eax
mov eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 0x10], 0x415060
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
setne al
mov dword [esp], ebx
movzx eax, al
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
jmp 0x403b9d
mov dword [esp], 0x20019
call fcn.00401612
push edx
mov esi, eax
mov dword [esp], 0x33
call fcn.00401414
push ecx
mov word [ebx], 0
test esi, esi
je 0x403ad1
lea edx, [ebp - 0x288]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x268]
mov dword [ebp - 0x288], 0x800
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x403168
mov eax, dword [ebp - 0x268]
cmp eax, 4
je 0x403174
cmp eax, 1
je 0x403174
cmp eax, 2
je 0x403199
mov word [ebx], 0
mov edi, 1
jmp 0x4031a8
cmp eax, 4
jne 0x403199
xor eax, eax
cmp dword [ebp - 0x270], 0
sete al
mov edi, eax
mov eax, dword [ebx]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004083b6
push eax
push eax
jmp 0x4031a8
mov edi, dword [ebp - 0x270]
mov word [ebx + 0x7fe], 0
mov dword [esp], esi
jmp 0x4030e0
mov dword [esp], 0x20019
call fcn.00401612
push esi
mov esi, eax
mov eax, 3
call fcn.0040146a
mov word [ebx], 0
test esi, esi
je 0x403ad1
cmp dword [ebp - 0x270], 0
mov dword [ebp - 0x268], 0x3ff
je 0x403209
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_RegEnumKeyW]
sub esp, 0x10
jmp 0x40319f
lea edx, [ebp - 0x268]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x40319f
mov dword [esp], ebx
call fcn.004083db
push ebx
test eax, eax
je case.0x401724.66
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4017c9
mov dword [esp], 0xffffffed
call fcn.00401414
mov edx, dword [ebp - 0x278]
push ecx
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x27c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407f8c
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x402849
jmp 0x4036b2
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x29c], eax
test eax, eax
je 0x4032dc
mov eax, 1
call fcn.0040146a
mov word [0x414860], ax
xor eax, eax
cmp esi, 0x38
setne al
mov edi, eax
inc edi
jmp 0x403335
cmp esi, 0x38
jne 0x40331c
mov dword [esp], 0x21
call fcn.00401414
push eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x414860
mov dword [esp], 0x415060
call fcn.00408517
mov dword [esp], 0x414860
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edx
jmp 0x403335
mov dword [esp], 0x11
call fcn.00401414
push ecx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenW
push edi
lea edi, [eax + eax]
cmp word [ebx], 0
je 0x403ad1
mov dword [esp], ebx
call fcn.004083db
mov ecx, dword [ebp - 0x29c]
mov ebx, eax
xor eax, eax
cmp esi, 0x38
push edx
sete al
or ecx, eax
je 0x40337a
mov dword [esp + 8], edi
mov dword [esp + 4], 0x414860
mov dword [esp], ebx
call fcn.0040809b
sub esp, 0xc
test eax, eax
jmp 0x4035d8
cmp dword [ebp - 0x274], 0
je 0x40335c
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.004080e1
push esi
push esi
test eax, eax
jns 0x40335c
jmp 0x403ad1
mov eax, 2
call fcn.0040146a
mov dword [ebp - 0x2a4], eax
test eax, eax
jle case.0x401724.66
xor esi, esi
cmp word [ebx], 0
je 0x4035ca
mov dword [esp], ebx
mov edi, 2
call fcn.004083db
mov word [ebp - 0x2a0], 0
push ecx
mov ebx, eax
cmp dword [ebp - 0x284], 0x39
mov edx, dword [ebp - 0x274]
jne 0x4034c8
lea eax, [ebp - 0x268]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, 2
sub eax, edx
mov dword [esp], ebx
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 0x4035ca
mov edi, dword [ebp - 0x268]
test edi, edi
je 0x4035ca
movzx eax, byte [ebp - 0x288]
cmp dword [ebp - 0x274], 0
mov word [ebp - 0x28c], ax
jne 0x40350f
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
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esp, 0x18
test eax, eax
jne 0x40350f
dec dword [ebp - 0x268]
mov word [ebp - 0x28c], 0xfffd
je 0x40350f
dec edi
mov dword [esp + 0xc], 1
mov eax, edi
mov dword [esp + 8], 0
neg eax
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x40344e
or edx, esi
je 0x4034f2
lea eax, [ebp - 0x28c]
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00408055
sub esp, 0xc
test eax, eax
jne 0x40350f
jmp 0x4035ca
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.004080e1
push edx
push edx
test eax, eax
jns 0x4034cc
xor esi, esi
jmp 0x4035ca
cmp dword [ebp - 0x274], 0
movzx eax, word [ebp - 0x28c]
je 0x403538
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004083b6
push ecx
push ecx
jmp 0x403ba3
lea edx, [esi + esi]
add edx, dword [ebp - 0x29c]
cmp word [ebp - 0x2a0], 0xd
je 0x403555
cmp word [ebp - 0x2a0], 0xa
jne 0x403594
cmp word [ebp - 0x2a0], ax
je 0x40356a
cmp ax, 0xd
je 0x40358e
cmp ax, 0xa
je 0x40358e
neg edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x4035ca
inc esi
mov word [edx], ax
jmp 0x4035ca
mov ecx, dword [ebp - 0x29c]
inc esi
mov word [ecx + esi*2 - 2], ax
test ax, ax
je 0x4035ca
mov word [ebp - 0x2a0], ax
mov eax, 0x3ff
cmp dword [ebp - 0x2a4], 0x3ff
cmovle eax, dword [ebp - 0x2a4]
cmp esi, eax
jl 0x4033d7
mov eax, dword [ebp - 0x29c]
test esi, esi
mov word [eax + esi*2], 0
sete al
jmp 0x402fab
cmp word [ebx], 0
je case.0x401724.66
mov eax, 2
mov esi, dword [ebp - 0x274]
call fcn.0040146a
mov dword [esp], ebx
mov edi, eax
call fcn.004083db
push edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
cmp dword [ebp - 0x27c], 0
js case.0x401724.66
jmp 0x403b2b
mov dword [esp], ebx
call fcn.004083db
push edi
test eax, eax
je case.0x401724.66
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4017c9
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004083db
push esi
test eax, eax
je 0x4036b2
lea edx, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ecx
push ecx
test eax, eax
je 0x4036b2
jmp 0x4036d0
mov dword [esp], 2
call fcn.00401414
lea edx, [ebp - 0x268]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edx
push edx
cmp eax, 0xffffffff
jne 0x4036bc
mov eax, dword [ebp - 0x29c]
mov word [eax], 0
mov word [ebx], 0
jmp 0x403ad1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004083b6
push esi
push esi
lea eax, [ebp - 0x23c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040849b
jmp 0x4026aa
mov dword [esp], 0xfffffff0
call fcn.00401414
push edx
mov esi, eax
mov dword [esp], eax
call fcn.00407d9a
push ecx
test eax, eax
jne 0x403710
mov dword [esp], 0xffffffed
call fcn.00401414
push eax
mov dword [esp], esi
call fcn.00407ee9
push edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407f8c
sub esp, 0xc
mov dword [ebp - 0x29c], eax
inc eax
jne 0x403756
mov dword [esp], esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0xffffffef
push ebx
jmp 0x4038bf
cmp dword [ebp - 0x278], 0
mov edx, dword [ebp - 0x27c]
je 0x403879
mov eax, dword [0x43c2ec]
mov dword [ebp - 0x2a4], edx
mov dword [esp], 0x40
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2a0], eax
mov dword [esp + 4], eax
call edi
mov edx, dword [ebp - 0x2a4]
test eax, eax
push ecx
mov ebx, eax
push ecx
je 0x403879
mov dword [esp], 0
call fcn.00403e0a
push eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403de2
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 0x40384d
mov eax, dword [ebp - 0x278]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call fcn.00403e3c
mov eax, edi
sub esp, 0x10
cmp byte [eax], 0
je 0x403843
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0x2a8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2a4], edx
add ecx, ebx
mov dword [esp], ecx
call fcn.00407ecc
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2a8]
sub esp, 0xc
lea eax, [edx + ecx]
jmp 0x403804
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.0040809b
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or edx, 0xffffffff
push eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call fcn.00403e3c
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 0x40373d
mov eax, 0xfffffff3
xor edi, edi
mov dword [esp], eax
call fcn.00401699
jmp 0x4030e6
xor eax, eax
call fcn.0040146a
mov ebx, eax
cmp eax, dword [0x43c2ac]
jae 0x403ad1
mov edi, dword [ebp - 0x278]
imul esi, eax, 0x818
add esi, dword [0x43c2a8]
test edi, edi
js 0x40391b
jne 0x403913
mov eax, dword [ebp - 0x29c]
add esi, 0x18
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040849b
jmp 0x403a1a
mov eax, dword [esi + edi*4]
jmp 0x403b2b
mov edx, edi
not edx
mov dword [ebp - 0x278], edx
test edx, edx
je 0x40393b
mov eax, 1
call fcn.0040146a
mov dword [ebp - 0x27c], eax
jmp 0x403959
mov eax, dword [ebp - 0x270]
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp], eax
call fcn.0040882f
push edi
push edi
or dword [esi + 8], 0x100
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x278]
mov dword [esi + eax*4], edx
cmp dword [ebp - 0x274], 0
je case.0x401724.66
mov dword [esp], ebx
call fcn.00401230
jmp 0x4017c9
xor eax, eax
call fcn.0040146a
cmp eax, 0x1f
ja 0x403ad1
cmp dword [ebp - 0x274], 0
mov edi, dword [ebp - 0x278]
je 0x4039e8
test edi, edi
je 0x4039c7
mov dword [esp], eax
call fcn.00401343
push ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040128f
jmp 0x4026aa
mov dword [esp], 0
call fcn.00401392
push edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004083b6
jmp 0x403a1a
test edi, edi
mov ecx, dword [0x43c280]
lea eax, [eax + 0x24]
je 0x403a04
mov edx, dword [ebp - 0x27c]
mov dword [ecx + eax*4 + 4], edx
jmp case.0x401724.66
mov eax, dword [ecx + eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.0040882f
push eax
push eax
jmp 0x403b9d
mov edi, dword [ebp - 0x274]
test edi, edi
je 0x403a37
dec edi
je 0x403adb
jmp case.0x401724.66
mov dword [esp], 5
call fcn.004087bd
push ecx
mov ebx, eax
mov dword [esp], 0x22
call fcn.00401414
push esi
test ebx, ebx
je 0x403ac6
lea esi, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [sym.imp.ole32.dll_IIDFromString]
push edx
push edx
test eax, eax
js 0x403ac6
lea eax, [ebp - 0x288]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 0x10
test eax, eax
js 0x403ac6
mov eax, dword [ebp - 0x288]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.0040849b
push eax
push eax
mov eax, dword [ebp - 0x288]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4030e6
mov eax, dword [ebp - 0x29c]
mov word [eax], 0
mov edi, 1
jmp 0x403b9d
mov eax, 2
call fcn.0040146a
mov ebx, eax
mov eax, 4
call fcn.0040146a
mov dword [ebp - 0x268], 0
movzx edx, al
shr eax, 0x18
test ebx, ebx
jne 0x403b0a
mov ebx, 0x43c220
add eax, ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call fcn.00407ecc
mov eax, dword [ebp - 0x268]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004083b6
jmp 0x4026aa
mov edx, dword [0x4344a0]
mov eax, dword [ebp - 0x2a0]
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_SendMessageW]
sub esp, 0x10
cmp dword [ebp - 0x280], 0
je case.0x401724.66
mov eax, dword [ebp - 0x2a0]
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 edi, edi
add dword [0x43c228], edi
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 4