Function at 0x401655
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
push ebx
lea edi, [ebp - 0x284]
sub esp, 0x2cc
mov esi, dword [ebp + 8]
mov eax, dword [0x43bae8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2a0], eax
mov esi, dword [ebp - 0x27c]
mov edi, dword [ebp - 0x280]
mov eax, esi
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 [0x41305c], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x2a4], eax
sub eax, 2
cmp eax, 0x43
ja case.0x4016c7.65
jmp dword [eax*4 + 0x40c008]
mov dword [esp + 4], 0
mov dword [esp], edi
jmp 0x401d1e
inc dword [0x43cb00]
cmp dword [ebp - 0x2a0], 0
mov edi, 0x7fffffff
je case.0x4016c7.2
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push eax
jmp case.0x4016c7.2
mov dword [esp], edi
call fcn.00401612
push esi
dec eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403a6f
push edi
push edi
mov edi, eax
jmp case.0x4016c7.2
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.0040724e
jmp 0x4025cb
xor eax, eax
call fcn.0040146e
mov edx, 1
test eax, eax
cmovle eax, edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40394c
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40394c
mov ecx, dword [ebp - 0x278]
test ecx, ecx
jne 0x4017ae
mov eax, dword [edi*4 + 0x43ba20]
mov dword [ebp - 0x29c], ecx
mov dword [edi*4 + 0x43b9e0], eax
mov eax, 1
call fcn.0040146e
mov edx, dword [ebp - 0x280]
mov dword [edx*4 + 0x43ba20], eax
jmp 0x4028cb
mov eax, dword [edi*4 + 0x43b9e0]
mov dword [edi*4 + 0x43ba20], eax
jmp case.0x4016c7.65
mov ecx, dword [ebp - 0x278]
xor edx, edx
mov eax, dword [ecx*4 + 0x43ba20]
test eax, eax
sete dl
and eax, dword [ebp - 0x274]
mov edi, dword [ebp + edx*4 - 0x280]
mov dword [ecx*4 + 0x43ba20], eax
jmp case.0x4016c7.2
mov eax, dword [esi*4 + 0x43ba20]
jmp 0x402773
mov eax, dword [0x43cb04]
test eax, eax
je 0x401812
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
mov eax, dword [0x43cb08]
test eax, eax
je case.0x4016c7.65
mov edx, dword [ebp - 0x280]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4025cb
mov dword [esp], 0xfffffff0
call fcn.00401418
mov edx, dword [ebp - 0x27c]
push ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x401b4e
mov dword [esp], 0xfffffff0
call fcn.00401418
push edi
mov ebx, eax
mov dword [esp], eax
call fcn.00407be3
push edx
xor ecx, ecx
test eax, eax
je 0x40192e
mov dword [esp + 4], 0x5c
mov dword [esp], eax
mov dword [ebp - 0x29c], ecx
call fcn.00407b3d
push esi
push esi
mov esi, eax
mov di, word [eax]
mov ecx, dword [ebp - 0x29c]
mov word [eax], 0
test di, di
jne 0x4018d8
cmp dword [ebp - 0x278], 0
je 0x4018d8
call fcn.00408e2d
test eax, eax
mov ecx, dword [ebp - 0x29c]
je 0x4018d8
mov dword [esp], ebx
call fcn.00407938
test eax, eax
push ecx
mov ecx, dword [ebp - 0x29c]
jne 0x4018f1
jmp 0x401929
mov dword [esp], ebx
mov dword [ebp - 0x29c], ecx
call fcn.004079cc
test eax, eax
push edx
mov ecx, dword [ebp - 0x29c]
je 0x40191b
cmp eax, 0xb7
je 0x4018fb
inc ecx
jmp 0x40191b
mov dword [ebp - 0x29c], ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
push ecx
mov ecx, dword [ebp - 0x29c]
sete al
movzx eax, al
add ecx, eax
lea eax, [esi + 2]
mov word [esi], di
test di, di
jmp 0x401878
mov word [esi], 0
cmp dword [ebp - 0x27c], 0
mov dword [ebp - 0x29c], ecx
je 0x401980
mov dword [esp], 0xffffffe6
call fcn.00401636
mov eax, dword [0x40c8f4]
push esi
mov dword [esp + 4], ebx
add eax, 0xb000
mov dword [esp], eax
call fcn.004082ae
push edi
push edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
push edx
mov ecx, dword [ebp - 0x29c]
jne 0x403a5b
inc ecx
jmp 0x403a5b
mov dword [esp], 0xfffffff5
jmp 0x40388d
mov dword [esp], 0
call fcn.00401418
push ecx
mov dword [esp], eax
call fcn.004089e0
jmp 0x4023a5
mov dword [esp], 0xffffffd0
call fcn.00401418
push ecx
mov ebx, eax
mov dword [esp], 0xffffffdf
call fcn.00401418
push esi
mov esi, eax
mov dword [esp], 0x13
call fcn.00401418
push edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
push edx
push edx
je 0x4019f0
mov dword [esp], 0xffffffe3
jmp 0x402c65
cmp dword [ebp - 0x278], 0
je 0x402afe
mov dword [esp], ebx
call fcn.004089e0
test eax, eax
push edx
je 0x402afe
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040899b
push eax
push eax
mov dword [esp], 0xffffffe4
jmp 0x402c65
mov dword [esp], 0
call fcn.00401418
mov ebx, eax
push edi
lea eax, [ebp - 0x268]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 4], 0x400
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
sub esp, 0x10
test eax, eax
je 0x401aa7
mov eax, dword [ebp - 0x268]
xor ecx, ecx
cmp eax, ebx
jbe 0x401ab7
cmp word [eax], 0
je 0x401ab7
mov dword [esp], ebx
mov dword [ebp - 0x2a0], ecx
call fcn.004089e0
test eax, eax
push esi
je 0x401aa7
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call fcn.004082ae
mov ecx, dword [ebp - 0x2a0]
push ebx
push ebx
jmp 0x401ab7
mov eax, dword [ebp - 0x29c]
mov ecx, 1
mov word [eax], 0
cmp dword [ebp - 0x278], 0
jne 0x403a5b
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], ecx
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 0x4039be
mov dword [esp], 0xffffffff
call fcn.00401418
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]
xor ecx, ecx
sub esp, 0x18
test eax, eax
jmp 0x402e39
mov dword [esp], 0xffffffef
call fcn.00401418
push edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407df2
push edi
push edi
jmp 0x40331c
mov dword [esp], 0x31
call fcn.00401418
mov edi, dword [ebp - 0x280]
push ebx
mov ebx, eax
mov dword [esp], eax
call fcn.00407baa
and edi, 7
test eax, eax
push esi
je 0x401b8c
mov dword [esp + 4], ebx
mov dword [esp], 0x413060
call fcn.004082ae
jmp 0x401bbd
mov eax, dword [0x40c8f4]
mov dword [esp], 0x413060
add eax, 0xb000
mov dword [esp + 4], eax
call fcn.004082ae
push edx
push edx
mov dword [esp], eax
call fcn.004082ea
push ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004082e0
push esi
push esi
mov dword [esp], 0x413060
call fcn.00408332
cmp edi, 2
push eax
jle 0x401c11
mov dword [esp], 0x413060
call fcn.004089e0
push ecx
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x401bfe
lea eax, [ebp - 0x274]
add ecx, 0x14
mov dword [esp], ecx
mov dword [esp + 4], eax
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 0x401c26
mov dword [esp], 0x413060
xor edi, edi
call fcn.00407d01
push esi
jmp 0x401c35
cmp edi, 1
mov eax, 1
je 0x401c3a
mov edi, 2
mov eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x413060
call fcn.00407d9a
sub esp, 0xc
cmp eax, 0xffffffff
mov esi, eax
jne 0x401d2f
test edi, edi
je 0x401c7e
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe2
call fcn.0040724e
cmp edi, 2
push ebx
push ebx
jmp 0x40331e
mov eax, dword [0x40c8f4]
mov dword [esp], 0x414060
mov dword [esp + 4], eax
call fcn.004082ae
push eax
push eax
mov eax, dword [0x40c8f4]
mov dword [esp + 4], 0x413060
mov dword [esp], eax
call fcn.004082ae
push eax
push eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], 0x413860
mov dword [esp + 4], eax
call fcn.00408411
push eax
push eax
mov eax, dword [0x40c8f4]
mov dword [esp + 4], 0x414060
mov dword [esp], eax
call fcn.004082ae
mov eax, dword [ebp - 0x280]
push edx
push edx
sar eax, 3
mov dword [esp], 0x413860
mov dword [esp + 4], eax
call fcn.00407ad1
cmp eax, 4
push ecx
push ecx
je 0x401c15
cmp eax, 5
jne 0x401d0f
inc dword [0x43ba28]
jmp case.0x4016c7.2
mov dword [esp + 4], 0x413060
mov dword [esp], 0xfffffffa
call fcn.0040724e
mov edi, 0x7fffffff
push eax
push eax
jmp case.0x4016c7.2
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffea
call fcn.0040724e
push eax
push eax
mov eax, dword [ebp - 0x278]
inc dword [0x43ba54]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00403cfc
dec dword [0x43ba54]
sub esp, 0x10
cmp dword [ebp - 0x274], 0xffffffff
mov edi, eax
jne 0x401d86
cmp dword [ebp - 0x270], 0xffffffff
je 0x401da8
lea eax, [ebp - 0x274]
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
push eax
jns case.0x4016c7.65
cmp edi, 0xfffffffe
jne 0x401de7
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x413060
call fcn.00408411
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x413060
call fcn.004082e0
jmp 0x401dfb
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x413060
call fcn.00408411
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], 0x413060
jmp 0x402168
mov dword [esp], 0
jmp 0x401e6d
mov dword [esp], 0x31
call fcn.00401418
push edx
mov edx, dword [ebp - 0x280]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407ad1
test eax, eax
push ecx
push ecx
je 0x402afe
cmp dword [ebp - 0x278], eax
je 0x40201c
cmp dword [ebp - 0x270], eax
jne case.0x4016c7.65
mov edi, dword [ebp - 0x26c]
jmp case.0x4016c7.2
mov dword [esp], 0xfffffff0
call fcn.00401418
mov edx, dword [ebp - 0x27c]
push edi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00408acc
jmp 0x4025cb
mov dword [esp], 1
call fcn.00401418
push esi
mov dword [esp], eax
call fcn.004082d6
jmp 0x402588
mov eax, 2
call fcn.0040146e
mov esi, eax
mov eax, 3
mov dword [ebp - 0x2a0], edx
call fcn.0040146e
mov dword [esp], 1
mov edi, eax
call fcn.00401418
push edx
mov dword [ebp - 0x29c], eax
mov dword [esp], eax
call fcn.004082d6
push ecx
mov ecx, dword [ebp - 0x2a0]
mov word [ebx], 0
test ecx, ecx
cmove esi, eax
test esi, esi
je case.0x4016c7.65
test edi, edi
mov edx, dword [ebp - 0x29c]
jns 0x401f08
add edi, eax
js case.0x4016c7.65
cmp eax, edi
mov dword [esp], ebx
cmovg eax, edi
add eax, eax
add eax, edx
mov dword [esp + 4], eax
call fcn.004082ae
test esi, esi
push eax
push eax
jns 0x401f30
mov dword [esp], ebx
call fcn.004082d6
add esi, eax
push edi
js 0x401f3e
cmp esi, 0x3ff
jg case.0x4016c7.65
jmp 0x401f40
xor esi, esi
mov word [ebx + esi*2], 0
jmp case.0x4016c7.65
mov dword [esp], 0x20
call fcn.00401418
push ecx
mov ebx, eax
mov dword [esp], 0x31
call fcn.00401418
cmp dword [ebp - 0x270], 0
push esi
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x401f7f
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401f85
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
push edx
push edx
jne 0x40201c
jmp 0x4023b5
mov dword [esp], 1
call fcn.00401418
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 0x401fcb
mov word [ebx], 0
mov ecx, 1
jmp 0x401fed
cmp dword [ebp - 0x278], 0
jne 0x401fd8
xor ecx, ecx
jmp 0x401fed
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
push esi
push esi
je 0x401fbf
jmp 0x401fd4
mov word [ebx + 0x7fe], 0
jmp 0x403a5b
mov esi, dword [ebp - 0x26c]
xor eax, eax
call fcn.0040146e
mov ebx, eax
mov eax, 1
call fcn.0040146e
test esi, esi
jne 0x402038
cmp ebx, eax
jge 0x402027
mov edi, dword [ebp - 0x274]
jmp case.0x4016c7.2
jle 0x4023b5
mov edi, dword [ebp - 0x270]
jmp case.0x4016c7.2
cmp ebx, eax
jb 0x40201c
ja 0x40202d
jmp 0x4023b5
mov eax, 1
call fcn.0040146e
mov esi, eax
mov eax, 2
call fcn.0040146e
mov ecx, dword [ebp - 0x274]
mov edi, eax
mov edx, eax
cmp ecx, 0xd
ja case.default.0x402068
jmp dword [ecx*4 + 0x40c118]
mov edi, eax
add edi, esi
jmp 0x4020ea
sub esi, eax
jmp case.default.0x402068
imul edx, esi
jmp 0x4020d0
test eax, eax
mov ecx, 1
je 0x4020ea
mov eax, esi
mov esi, edx
cdq
idiv esi
jmp 0x4020ab
or edx, esi
jmp 0x4020d0
and edx, esi
jmp 0x4020d0
xor edx, esi
jmp 0x4020d0
test esi, esi
sete al
jmp 0x4020a8
or esi, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x4020e8
test esi, esi
setne al
test edx, edx
setne dl
movzx edx, dl
and edx, eax
jmp 0x4020d0
test eax, eax
mov ecx, 1
je 0x4020ea
mov eax, esi
mov esi, edx
cdq
idiv esi
mov edi, edx
jmp 0x4020e8
mov cl, al
shl esi, cl
jmp case.default.0x402068
mov edi, esi
mov cl, al
sar edi, cl
jmp 0x4020e8
mov cl, al
shr esi, cl
mov edi, esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov dword [esp + 4], edi
jmp 0x402388
mov dword [esp], 1
call fcn.00401418
push ecx
mov esi, eax
mov eax, 2
call fcn.0040146e
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
jmp case.0x4016c7.65
mov ecx, dword [ebp - 0x278]
mov edi, dword [0x415860]
test ecx, ecx
je 0x4021b5
dec ecx
test edi, edi
je 0x402147
test ecx, ecx
mov edi, dword [edi]
jne 0x402138
test edi, edi
jne 0x402172
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.00408411
push edx
push edx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00407ad1
jmp 0x401d23
add edi, 4
mov dword [esp], 0x413060
mov dword [esp + 4], edi
call fcn.004082ae
push eax
push eax
mov eax, dword [0x415860]
mov dword [esp], edi
add eax, 4
mov dword [esp + 4], eax
call fcn.004082ae
push eax
push eax
mov eax, dword [0x415860]
mov dword [esp + 4], 0x413060
add eax, 4
mov dword [esp], eax
jmp 0x4036af
test esi, esi
mov dword [ebp - 0x29c], ecx
je 0x4021e7
test edi, edi
je 0x402afe
lea eax, [edi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004082ae
push eax
push eax
mov eax, dword [edi]
mov dword [esp], edi
mov dword [0x415860], eax
jmp 0x4028c4
mov dword [esp + 4], 0x804
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x280]
push ecx
push ecx
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.00408411
mov eax, dword [0x415860]
push esi
push esi
mov dword [ebx], eax
mov dword [0x415860], ebx
jmp 0x4028cb
mov eax, 3
call fcn.0040146e
mov esi, eax
mov eax, 4
call fcn.0040146e
test byte [ebp - 0x26c], 1
mov edi, eax
je 0x402259
mov dword [esp], 0x33
call fcn.00401418
push edx
mov esi, eax
test byte [ebp - 0x26c], 2
je 0x402271
mov dword [esp], 0x44
call fcn.00401418
push edi
mov edi, eax
cmp dword [ebp - 0x284], 0x21
jne 0x402315
mov eax, 1
call fcn.0040146e
mov dword [ebp - 0x29c], eax
mov eax, 2
call fcn.0040146e
mov ecx, dword [ebp - 0x26c]
sar ecx, 2
je 0x4022e3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
lea edx, [ebp - 0x268]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor ecx, ecx
sub esp, 0x1c
test eax, eax
sete cl
jmp 0x40236b
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x2a0]
sub esp, 0x10
mov dword [ebp - 0x268], eax
jmp 0x40236b
mov dword [esp], 1
call fcn.00401418
push edx
mov dword [ebp - 0x29c], eax
mov dword [esp], 0x12
call fcn.00401418
push ecx
cmp word [eax], 0
mov edx, dword [ebp - 0x29c]
jne 0x402343
xor eax, eax
cmp word [edx], 0
jne 0x40234b
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]
xor ecx, ecx
sub esp, 0x10
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x280], 0
js 0x403a5b
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x29c], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.004081d2
jmp 0x4025be
xor eax, eax
call fcn.0040146e
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
push ebx
je 0x4023b5
mov edi, dword [ebp - 0x27c]
jmp case.0x4016c7.2
mov edi, dword [ebp - 0x278]
jmp case.0x4016c7.2
mov eax, 2
call fcn.0040146e
mov esi, eax
mov eax, 1
call fcn.0040146e
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push ecx
jmp 0x402773
add esi, dword [0x43baa8]
xor eax, eax
call fcn.0040146e
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
mov dword [esp + 8], esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x403a56
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push edx
lea eax, [ebp - 0x268]
push edx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x278]
mov edi, dword [ebp - 0x25c]
push ecx
push ecx
imul edi, eax
mov dword [esp], 0
imul eax, dword [ebp - 0x260]
mov ebx, eax
call fcn.00401418
push edx
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.USER32.dll_LoadImageW]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x172
mov dword [esp], esi
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
test eax, eax
je case.0x4016c7.65
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x40394c
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.0040146e
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.0040146e
mov dword [0x413010], eax
mov eax, dword [ebp - 0x270]
mov dword [esp], 0x41301c
mov byte [0x413017], 1
mov dl, al
and edx, 1
mov byte [0x413014], dl
mov dl, al
and eax, 4
mov byte [0x413016], al
mov eax, dword [ebp - 0x27c]
and edx, 2
mov byte [0x413015], dl
mov dword [esp + 4], eax
call fcn.00408411
push eax
push eax
mov dword [esp], section..bss
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push edx
jmp 0x402773
xor eax, eax
call fcn.0040146e
mov ebx, eax
mov eax, 1
call fcn.0040146e
mov ecx, dword [ebp - 0x274]
mov dword [esp + 4], eax
mov dword [esp], ebx
test ecx, ecx
mov dword [ebp - 0x29c], ecx
jne 0x4025c5
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
jmp 0x4028cb
call dword [sym.imp.USER32.dll_EnableWindow]
push eax
push eax
jmp case.0x4016c7.65
mov dword [esp], 0
call fcn.00401418
push edx
mov esi, eax
mov dword [esp], 0x31
call fcn.00401418
push ecx
mov edi, eax
mov dword [esp], 0x22
call fcn.00401418
push ebx
mov ebx, eax
mov dword [esp], 0x15
call fcn.00401418
push eax
mov dword [esp], 0xffffffec
call fcn.00401636
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 0x402645
xor esi, esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
cmp word [ebx], 0
jne 0x402659
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.00407a7c
test eax, eax
push edi
mov ecx, 1
je 0x403a5b
xor ecx, ecx
test byte [ebp - 0x264], 0x40
je 0x403a5b
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x29c], ecx
mov dword [esp], eax
call fcn.00408f12
mov eax, dword [ebp - 0x230]
push esi
mov dword [esp], eax
jmp 0x402732
mov dword [esp], 0
call fcn.00401418
push edx
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffeb
call fcn.0040724e
push ecx
push ecx
mov dword [esp], ebx
call fcn.004079fa
test eax, eax
push ebx
mov ebx, eax
je 0x402afe
mov ecx, dword [ebp - 0x278]
test ecx, ecx
je 0x402729
mov dword [esp], eax
call fcn.00408f12
cmp dword [ebp - 0x27c], 0
push edi
js 0x402722
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004081d2
xor ecx, ecx
push esi
push esi
jmp 0x402729
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x29c], ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4028ca
mov dword [esp], 2
call fcn.00401418
push edx
mov dword [esp], eax
call fcn.004089e0
test eax, eax
push ecx
mov esi, eax
je 0x40277f
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004081d2
push edi
push edi
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x4035fb
mov eax, dword [ebp - 0x29c]
mov word [ebx], 0
mov word [eax], 0
jmp 0x402afe
mov dword [esp], 0xffffffee
call fcn.00401418
push edi
mov dword [ebp - 0x2a0], eax
mov dword [esp], 9
call fcn.00408de1
push edx
lea edx, [ebp - 0x28c]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x2a0]
mov dword [esp], edx
call eax
mov edi, eax
mov eax, dword [ebp - 0x29c]
push ecx
test edi, edi
push ecx
mov word [ebx], 0
mov word [eax], 0
je 0x402afe
mov dword [esp + 4], edi
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
push esi
push esi
mov esi, eax
je 0x402afe
mov dword [esp], 0xa
call fcn.00408de1
push edx
mov dword [ebp - 0x2a8], eax
mov dword [esp], 0xb
call fcn.00408de1
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x2a0]
push ecx
mov ecx, dword [ebp - 0x2a8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call ecx
sub esp, 0x10
test eax, eax
mov edx, dword [ebp - 0x2a4]
jne 0x40285d
mov ecx, 1
jmp 0x4028bb
lea eax, [ebp - 0x268]
mov dword [esp + 4], 0x40c000
mov dword [esp], esi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x288]
mov dword [esp + 8], eax
call edx
sub esp, 0x10
test eax, eax
je 0x402856
mov eax, dword [ebp - 0x288]
mov eax, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004081d2
push eax
push eax
mov eax, dword [ebp - 0x288]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004081d2
push eax
push eax
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
mov ecx, dword [ebp - 0x29c]
jmp 0x403a5b
cmp dword [0x43ba58], 0
js 0x402a08
mov dword [esp], 0xfffffff0
call fcn.00401418
push ebx
mov edi, eax
mov dword [esp], 1
call fcn.00401418
cmp dword [ebp - 0x270], 0
push esi
mov esi, eax
jne 0x402931
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
sub esp, 0xc
test eax, eax
mov ebx, eax
jne 0x402941
jmp 0x4029fc
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
push ecx
mov ebx, eax
je 0x40290a
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408e9e
test eax, eax
push edx
mov edi, eax
push edx
je 0x4029ad
mov ecx, dword [ebp - 0x278]
test ecx, ecx
je 0x402973
mov dword [esp], ecx
call fcn.00401636
push eax
call edi
xor ecx, ecx
test eax, eax
setne cl
jmp 0x4029c4
mov eax, dword [0x40c8f4]
mov dword [ebp - 0x29c], ecx
mov dword [esp + 0x10], 0x40b000
mov dword [esp + 0xc], 0x415860
mov dword [esp + 4], 0x400
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x29c]
jmp 0x4029c4
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.0040724e
push esi
push esi
mov ecx, 1
cmp dword [ebp - 0x274], 0
jne 0x403a5b
mov dword [esp], ebx
mov dword [ebp - 0x29c], ecx
call fcn.00404ba3
test eax, eax
push ecx
mov ecx, dword [ebp - 0x29c]
je 0x403a5b
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4028ca
mov dword [esp], 0xfffffff6
jmp 0x402af8
mov dword [esp], 0xffffffe7
jmp 0x402af8
mov dword [esp], 0xfffffff0
call fcn.00401418
push esi
mov dword [ebp - 0x2a4], eax
mov dword [esp], 0xffffffdf
call fcn.00401418
push edi
mov esi, eax
mov dword [esp], 2
call fcn.00401418
push edx
mov dword [ebp - 0x2a8], eax
mov dword [esp], 0xffffffcd
call fcn.00401418
push ecx
mov dword [ebp - 0x2a0], eax
mov dword [esp], 0x45
call fcn.00401418
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x270]
push ebx
mov dword [ebp - 0x29c], eax
and eax, 0x8000
mov edi, dword [ebp - 0x29c]
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], esi
sar edi, 0xc
shr eax, 0x10
and edi, 7
mov dword [ebp - 0x2b4], eax
call fcn.00407baa
test eax, eax
push edx
jne 0x402abb
mov dword [esp], 0x21
call fcn.00401418
push ebx
lea eax, [ebp - 0x288]
mov dword [esp + 0xc], 0x411d90
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40d900
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jns 0x402b08
mov dword [esp], 0xfffffff0
call fcn.00401636
push ecx
mov ecx, 1
jmp 0x403a5b
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x268]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4113b0
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
test eax, eax
mov ebx, eax
js 0x402c47
mov eax, dword [ebp - 0x288]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x50]
cmp dword [ebp - 0x2b0], 0
push edx
mov ebx, eax
push edx
jne 0x402b73
mov eax, dword [ebp - 0x288]
mov esi, dword [0x40c8f4]
mov edx, dword [eax]
lea ecx, [esi + 0xb000]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x24]
push eax
push eax
mov eax, dword [ebp - 0x288]
test edi, edi
mov edx, dword [eax]
je 0x402b8b
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x3c]
push eax
push eax
mov eax, dword [ebp - 0x288]
mov esi, dword [ebp - 0x2b4]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x34]
push eax
push eax
mov eax, dword [ebp - 0x2a0]
cmp word [eax], 0
je 0x402bdb
mov eax, dword [ebp - 0x29c]
mov edx, dword [ebp - 0x288]
and eax, 0xfff
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 4], eax
call dword [ecx + 0x44]
sub esp, 0xc
mov eax, dword [ebp - 0x288]
mov edi, dword [ebp - 0x2a8]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x288]
push edi
mov esi, dword [ebp - 0x2ac]
push edi
mov edx, dword [eax]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [edx + 0x1c]
test ebx, ebx
push eax
push eax
js 0x402c38
mov eax, dword [ebp - 0x268]
mov ebx, dword [ebp - 0x2a4]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp + 8], 1
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]
test ebx, ebx
push ecx
js 0x402af1
mov dword [esp], 0xfffffff4
call fcn.00401636
jmp 0x40394c
mov dword [esp], 0
call fcn.00401418
push edi
mov ebx, eax
mov dword [esp], 0x11
call fcn.00401418
push edx
mov esi, eax
mov dword [esp], 0x23
call fcn.00401418
push ecx
mov edi, eax
mov dword [esp], ebx
call fcn.004089e0
test eax, eax
push edx
je 0x402d2e
mov eax, dword [ebp - 0x2a0]
mov dword [esp], ebx
mov dword [ebp - 0x264], 2
mov dword [ebp - 0x268], eax
call fcn.004082d6
push edx
mov word [ebx + eax*2 + 2], 0
mov dword [esp], esi
call fcn.004082d6
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.0040724e
lea eax, [ebp - 0x268]
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
push esi
mov ecx, eax
je 0x403a5b
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.0040724e
push edi
push edi
jmp 0x402afe
cmp edi, 0xbadf00d
jne 0x402147
inc dword [0x43ba34]
jmp case.0x4016c7.65
xor esi, esi
test edi, edi
je 0x402d75
mov dword [esp], 0
call fcn.00401418
push esi
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x27c], 0
je 0x402d8f
mov dword [esp], 0x11
call fcn.00401418
push ebx
mov edi, eax
xor ebx, ebx
cmp dword [ebp - 0x270], 0
je 0x402da9
mov dword [esp], 0x22
call fcn.00401418
push ecx
mov ebx, eax
mov dword [esp], 0xffffffcd
call fcn.00401418
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 0x40331c
mov eax, dword [0x40c004]
mov dword [esp], 1
mov dword [ebp - 0x268], eax
call fcn.00401418
push edi
mov esi, eax
mov dword [esp], 0x12
call fcn.00401418
push edx
mov edi, eax
mov dword [esp], 0xffffffdd
call fcn.00401418
push ecx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x268]
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
sub esp, 0x18
cmp word [ebx], 0xa
jne 0x403a5b
jmp 0x403684
cmp dword [ebp - 0x270], 0
jne 0x402e8e
mov dword [esp], 2
call fcn.004015af
test eax, eax
push esi
mov ebx, eax
je 0x402afe
mov dword [esp], 0x33
call fcn.00401418
push edx
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
push ecx
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
jmp 0x402f07
mov dword [esp], 0x22
call fcn.00401418
mov ebx, eax
mov eax, dword [ebp - 0x270]
push edi
sar eax, 1
mov dword [ebp - 0x268], eax
cmp word [ebx], 0
je 0x402afe
or eax, 0x100020
test esi, esi
mov dword [ebp - 0x268], eax
js 0x402ed0
add esi, dword [0x43ba24]
sub esi, 0x7fffffff
lea eax, [ebp - 0x268]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407fdf
test eax, eax
push esi
push esi
je 0x402afe
mov edx, dword [ebp - 0x268]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.004014a3
sub esp, 0xc
mov esi, eax
test esi, esi
setne cl
jmp 0x403321
mov eax, dword [ebp - 0x26c]
mov dword [esp], 2
mov esi, dword [ebp - 0x270]
mov dword [ebp - 0x29c], eax
call fcn.00401418
push edx
mov dword [ebp - 0x2a0], eax
mov dword [esp], 0x11
call fcn.00401418
test edi, edi
push ecx
mov edx, edi
js 0x402f55
add edx, dword [0x43ba24]
sub edx, 0x7fffffff
lea ecx, [ebp - 0x268]
mov dword [esp + 8], 0x100022
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 0xc], ecx
call fcn.004080b3
sub esp, 0x10
test eax, eax
jne 0x402afe
mov ebx, dword [ebp - 0x268]
test ebx, ebx
je 0x402afe
cmp esi, 1
jne 0x402fb0
mov dword [esp], 0x23
call fcn.00401418
push esi
mov dword [esp], 0x414060
call fcn.004082d6
inc eax
push edi
add eax, eax
jmp 0x402ffb
cmp esi, 4
jne 0x402fcb
mov eax, 3
call fcn.0040146e
mov dword [0x414060], eax
mov eax, 4
jmp 0x402ffb
xor eax, eax
cmp esi, 3
jne 0x402ffb
mov eax, dword [ebp - 0x274]
mov dword [esp + 0xc], 0x1800
mov dword [esp + 8], 0x414060
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403cfc
sub esp, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 0x10], 0x414060
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
sub esp, 0x18
test eax, eax
setne cl
mov dword [esp], ebx
mov dword [ebp - 0x29c], ecx
jmp 0x403113
mov dword [esp], 0x20019
call fcn.004015af
push edx
mov esi, eax
mov dword [esp], 0x33
call fcn.00401418
test esi, esi
push ecx
mov word [ebx], 0
je 0x402afe
lea edx, [ebp - 0x288]
mov dword [ebp - 0x288], 0x800
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x268]
mov dword [esp], esi
mov dword [esp + 0xc], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4030c0
mov eax, dword [ebp - 0x268]
cmp eax, 4
je 0x4030cc
cmp eax, 1
je 0x4030cc
cmp eax, 2
je 0x4030fb
mov word [ebx], 0
mov ecx, 1
jmp 0x40310a
cmp eax, 4
jne 0x4030fb
xor ecx, ecx
cmp dword [ebp - 0x270], 0
mov eax, dword [ebx]
mov dword [esp], ebx
mov dword [esp + 4], eax
sete cl
mov dword [ebp - 0x29c], ecx
call fcn.004081d2
mov ecx, dword [ebp - 0x29c]
push edi
push edi
jmp 0x40310a
mov ecx, dword [ebp - 0x270]
mov word [ebx + 0x7fe], 0
mov dword [ebp - 0x29c], ecx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4028ca
mov dword [esp], 0x20019
call fcn.004015af
push esi
mov esi, eax
mov eax, 3
call fcn.0040146e
test esi, esi
mov word [ebx], 0
je 0x402afe
cmp dword [ebp - 0x270], 0
mov dword [ebp - 0x268], 0x3ff
je 0x403177
mov dword [esp + 0xc], 0x3ff
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor ecx, ecx
sub esp, 0x10
jmp 0x4031bc
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]
xor ecx, ecx
sub esp, 0x20
test eax, eax
setne cl
mov dword [ebp - 0x29c], ecx
mov word [ebx + 0x7fe], 0
jmp 0x403110
mov dword [esp], ebx
call fcn.004081f7
test eax, eax
push ebx
je case.0x4016c7.65
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40394c
mov dword [esp], 0xffffffed
call fcn.00401418
mov edx, dword [ebp - 0x278]
push ecx
mov dword [esp], eax
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x27c]
mov dword [esp + 4], edx
call fcn.00407d9a
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x402773
jmp 0x403684
mov esi, dword [ebp - 0x278]
test esi, esi
je 0x403257
mov eax, 1
call fcn.0040146e
mov word [0x413860], ax
xor eax, eax
cmp dword [ebp - 0x2a4], 0x38
setne al
mov edi, eax
inc edi
jmp 0x4032e0
cmp dword [ebp - 0x2a4], 0x38
jne 0x4032c7
mov dword [esp], 0x21
call fcn.00401418
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x10], 0x413860
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x414060
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], 0x413860
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edx
jmp 0x4032e0
mov dword [esp], 0x11
call fcn.00401418
push ecx
mov dword [esp], eax
call fcn.004082d6
push edi
lea edi, [eax + eax]
cmp word [ebx], 0
je 0x402afe
mov dword [esp], ebx
call fcn.004081f7
mov ebx, eax
xor eax, eax
cmp dword [ebp - 0x2a4], 0x38
push edx
sete al
or eax, esi
je 0x403329
mov dword [esp + 8], edi
mov dword [esp + 4], 0x413860
mov dword [esp], ebx
call fcn.00407ead
sub esp, 0xc
test eax, eax
sete cl
movzx ecx, cl
jmp 0x403a5b
cmp dword [ebp - 0x274], 0
je 0x403305
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.00407ef7
test eax, eax
push esi
push esi
jns 0x403305
jmp 0x402afe
mov eax, 2
call fcn.0040146e
test eax, eax
mov dword [ebp - 0x2a4], eax
jle case.0x4016c7.65
xor esi, esi
cmp word [ebx], 0
je 0x40358d
mov dword [esp], ebx
mov edi, 2
call fcn.004081f7
mov ebx, eax
mov eax, dword [ebp - 0x29c]
push ecx
mov word [ebp - 0x2a0], 0
mov dword [ebp - 0x2a8], eax
cmp dword [ebp - 0x284], 0x39
mov edx, dword [ebp - 0x274]
jne 0x403483
lea eax, [ebp - 0x268]
mov dword [esp + 0x10], 0
mov dword [esp], ebx
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 0x40358d
mov edi, dword [ebp - 0x268]
test edi, edi
je 0x40358d
movzx eax, byte [ebp - 0x288]
cmp dword [ebp - 0x274], 0
mov word [ebp - 0x28c], ax
jne 0x4034ca
lea eax, [ebp - 0x28c]
mov dword [esp + 0x14], 1
mov dword [esp + 4], 8
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x288]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esp, 0x18
test eax, eax
jne 0x4034ca
dec dword [ebp - 0x268]
mov word [ebp - 0x28c], 0xfffd
je 0x4034ca
dec edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, edi
mov dword [esp], ebx
neg eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x403409
or edx, esi
je 0x4034ad
lea eax, [ebp - 0x28c]
mov dword [esp + 8], 2
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407e63
sub esp, 0xc
test eax, eax
jne 0x4034ca
jmp 0x40358d
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407ef7
test eax, eax
push edx
push edx
jns 0x403487
xor esi, esi
jmp 0x40358d
cmp dword [ebp - 0x274], 0
movzx eax, word [ebp - 0x28c]
je 0x4034f3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004081d2
push ecx
push ecx
jmp 0x403a61
cmp word [ebp - 0x2a0], 0xd
je 0x403507
cmp word [ebp - 0x2a0], 0xa
jne 0x40354c
cmp word [ebp - 0x2a0], ax
je 0x40351c
cmp ax, 0xd
je 0x403540
cmp ax, 0xa
je 0x403540
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 0x40358d
mov edx, dword [ebp - 0x2a8]
inc esi
mov word [edx], ax
jmp 0x40358d
mov edx, dword [ebp - 0x2a8]
inc esi
mov word [edx], ax
mov eax, dword [ebp - 0x28c]
test ax, ax
mov word [ebp - 0x2a0], ax
je 0x40358d
add dword [ebp - 0x2a8], 2
cmp dword [ebp - 0x2a4], 0x3ff
mov eax, 0x3ff
cmovle eax, dword [ebp - 0x2a4]
cmp eax, esi
jg 0x403392
mov eax, dword [ebp - 0x29c]
test esi, esi
mov word [eax + esi*2], 0
jmp 0x40331e
cmp word [ebx], 0
je case.0x4016c7.65
mov eax, 2
mov esi, dword [ebp - 0x274]
call fcn.0040146e
mov dword [esp], ebx
mov edi, eax
call fcn.004081f7
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.0x4016c7.65
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004081d2
jmp 0x4025cb
mov dword [esp], ebx
call fcn.004081f7
test eax, eax
push edi
je case.0x4016c7.65
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40394c
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004081f7
test eax, eax
push esi
je 0x403684
lea edx, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
push ecx
push ecx
je 0x403684
jmp 0x4036a2
mov dword [esp], 2
call fcn.00401418
lea edx, [ebp - 0x268]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
push edx
push edx
jne 0x40368e
mov eax, dword [ebp - 0x29c]
mov word [eax], 0
mov word [ebx], 0
jmp 0x402afe
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004081d2
push esi
push esi
lea eax, [ebp - 0x23c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004082ae
jmp 0x4025cb
mov dword [esp], 0xfffffff0
call fcn.00401418
push edx
mov esi, eax
mov dword [esp], eax
call fcn.00407baa
test eax, eax
push ecx
jne 0x4036e2
mov dword [esp], 0xffffffed
call fcn.00401418
push eax
mov dword [esp], esi
call fcn.00407d01
push edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407d9a
sub esp, 0xc
mov dword [ebp - 0x29c], eax
inc eax
jne 0x403728
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0xffffffef
push ebx
mov ecx, 1
jmp 0x403884
mov eax, dword [0x43bacc]
mov dword [esp], 0x40
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2a0], eax
mov dword [esp + 4], eax
call edi
test eax, eax
push ecx
mov ebx, eax
push ecx
mov edx, 0xfffffd66
je 0x403859
mov dword [esp], 0
call fcn.00403cca
push eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403ca2
push eax
push eax
mov eax, dword [ebp - 0x278]
mov dword [esp], 0x40
mov dword [esp + 4], eax
call edi
test eax, eax
push edx
mov edi, eax
push edx
je 0x403805
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.00403cfc
mov eax, edi
sub esp, 0x10
cmp byte [eax], 0
je 0x4037fb
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [esp + 4], edx
mov dword [ebp - 0x2a4], edx
mov dword [esp + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x2a8], ecx
add edx, ebx
mov dword [esp], edx
call fcn.00407ce2
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2a8]
sub esp, 0xc
lea eax, [edx + ecx]
jmp 0x4037bc
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.00407ead
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call fcn.00403cfc
sub esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2a0]
push eax
test edx, edx
js 0x40370f
mov eax, 0xfffffff3
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov dword [esp], eax
call fcn.00401636
jmp 0x4028ca
xor eax, eax
call fcn.0040146e
cmp eax, dword [0x43ba8c]
mov ebx, eax
jae 0x402afe
mov ecx, dword [ebp - 0x278]
imul esi, eax, 0x818
add esi, dword [0x43ba88]
test ecx, ecx
js 0x4038ec
jne 0x4038e4
mov eax, dword [ebp - 0x29c]
add esi, 0x18
mov dword [ebp - 0x2a0], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004082ae
jmp 0x4039bc
mov eax, dword [esi + ecx*4]
jmp 0x4035ee
not ecx
test ecx, ecx
mov dword [ebp - 0x278], ecx
je 0x40390a
mov eax, 1
call fcn.0040146e
mov dword [ebp - 0x27c], eax
jmp 0x403928
mov eax, dword [ebp - 0x270]
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp], eax
call fcn.00408411
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.0x4016c7.65
mov dword [esp], ebx
call fcn.00401230
push ebx
jmp case.0x4016c7.65
xor eax, eax
call fcn.0040146e
cmp eax, 0x1f
ja 0x402afe
cmp dword [ebp - 0x274], 0
mov ecx, dword [ebp - 0x278]
je 0x4039c9
test ecx, ecx
je 0x403997
mov dword [esp], eax
call fcn.00401347
push ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00401295
jmp 0x4025cb
mov dword [esp], 0
mov dword [ebp - 0x2a0], ecx
call fcn.00401396
push edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.004081d2
push eax
push eax
mov ecx, dword [ebp - 0x2a0]
jmp 0x403a5b
test ecx, ecx
mov edx, dword [0x43ba60]
lea eax, [eax + 0x24]
je 0x4039e2
mov ecx, dword [ebp - 0x27c]
mov dword [edx + eax*4 + 4], ecx
jmp case.0x4016c7.65
mov eax, dword [edx + eax*4 + 4]
mov dword [ebp - 0x2a0], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.00408411
jmp 0x4039bc
mov edx, dword [0x433ca0]
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.0x4016c7.65
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 ecx, ecx
add dword [0x43ba28], ecx
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 4