Function at 0x40165e
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 [0x43cae8]
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 [0x40c8b4]
shl ebx, 0xb
add ebx, dword [0x40c8b4]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x280]
mov dword [0x41405c], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x2a4], eax
sub eax, 2
cmp eax, 0x43
ja case.0x4016d0.65
jmp dword [eax*4 + 0x40c004]
mov dword [esp + 4], 0
mov dword [esp], edi
jmp 0x401d24
inc dword [0x43db00]
cmp dword [ebp - 0x2a0], 0
mov edi, 0x7fffffff
je case.0x4016d0.2
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
jmp case.0x4016d0.2
mov dword [esp], edi
call fcn.0040161b
push edx
dec eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403aab
mov edi, eax
push ecx
push ecx
jmp case.0x4016d0.2
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.004071fb
jmp 0x402646
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 0x403658
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x403658
mov ecx, dword [ebp - 0x278]
test ecx, ecx
jne 0x4017b7
mov eax, dword [edi*4 + 0x43ca20]
mov dword [ebp - 0x29c], ecx
mov dword [edi*4 + 0x43c9e0], eax
mov eax, 1
call fcn.0040146e
mov edx, dword [ebp - 0x280]
mov dword [edx*4 + 0x43ca20], eax
jmp 0x401a24
mov eax, dword [edi*4 + 0x43c9e0]
mov dword [edi*4 + 0x43ca20], eax
jmp case.0x4016d0.65
mov ecx, dword [ebp - 0x278]
xor edx, edx
mov eax, dword [ecx*4 + 0x43ca20]
test eax, eax
sete dl
and eax, dword [ebp - 0x274]
mov dword [ecx*4 + 0x43ca20], eax
mov edi, dword [ebp + edx*4 - 0x280]
jmp case.0x4016d0.2
mov eax, dword [esi*4 + 0x43ca20]
jmp 0x4023ef
mov eax, dword [0x43db04]
test eax, eax
je 0x40181b
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov eax, dword [0x43db08]
test eax, eax
je case.0x4016d0.65
mov edx, dword [ebp - 0x280]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x402646
mov dword [esp], 0xfffffff0
call fcn.00401418
mov edx, dword [ebp - 0x27c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x401b55
mov dword [esp], 0xfffffff0
call fcn.00401418
push ebx
mov ebx, eax
mov dword [esp], eax
call fcn.00407b7c
xor ecx, ecx
push esi
test eax, eax
je 0x401926
mov dword [esp + 4], 0x5c
mov dword [esp], eax
mov dword [ebp - 0x29c], ecx
call fcn.00407add
push ecx
mov esi, eax
push ecx
mov di, word [eax]
mov ecx, dword [ebp - 0x29c]
mov word [eax], 0
test di, di
jne 0x4018d6
cmp dword [ebp - 0x278], 0
je 0x4018d6
call fcn.00408daa
mov ecx, dword [ebp - 0x29c]
test eax, eax
je 0x4018d6
mov dword [esp], ebx
call fcn.004078dc
jmp 0x4018e4
mov dword [esp], ebx
mov dword [ebp - 0x29c], ecx
call fcn.00407970
mov ecx, dword [ebp - 0x29c]
push edx
test eax, eax
je 0x401918
cmp eax, 0xb7
je 0x4018f9
inc ecx
jmp 0x401918
mov dword [ebp - 0x29c], ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
push ecx
mov ecx, dword [ebp - 0x29c]
cmp eax, 1
adc ecx, 0
mov word [esi], di
lea eax, [esi + 2]
test di, di
jmp 0x401881
cmp dword [ebp - 0x27c], 0
mov dword [ebp - 0x29c], ecx
je 0x401975
mov dword [esp], 0xffffffe6
call fcn.0040163f
mov eax, dword [0x40c8b4]
push esi
add eax, 0xb000
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040824c
push edi
push edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x29c]
cmp eax, 1
push edx
adc ecx, 0
jmp 0x403a97
mov dword [esp], 0xfffffff5
jmp 0x401a1e
mov dword [esp], 0
call fcn.00401418
push ecx
mov dword [esp], eax
call fcn.0040895e
jmp 0x4023af
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]
push edx
push edx
test eax, eax
je 0x4019e5
mov dword [esp], 0xffffffe3
jmp 0x402c9c
cmp dword [ebp - 0x278], 0
je 0x4036c3
mov dword [esp], ebx
mov dword [ebp - 0x29c], eax
call fcn.0040895e
push edx
test eax, eax
je 0x4036c3
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408919
push eax
push eax
mov dword [esp], 0xffffffe4
call fcn.0040163f
push eax
mov ecx, dword [ebp - 0x29c]
jmp 0x403a97
mov dword [esp], 0
call fcn.00401418
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 0x401aae
mov eax, dword [ebp - 0x268]
xor ecx, ecx
cmp eax, ebx
jbe 0x401abe
cmp word [eax], 0
je 0x401abe
mov dword [esp], ebx
mov dword [ebp - 0x2a0], ecx
call fcn.0040895e
push esi
test eax, eax
je 0x401aae
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [esp], eax
call fcn.0040824c
mov ecx, dword [ebp - 0x2a0]
push ebx
push ebx
jmp 0x401abe
mov eax, dword [ebp - 0x29c]
mov ecx, 1
mov word [eax], 0
cmp dword [ebp - 0x278], 0
jne 0x403a97
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 0x40391b
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 0x402e6f
mov dword [esp], 0xffffffef
call fcn.00401418
push edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407d93
push edi
push edi
jmp 0x403355
mov dword [esp], 0x31
call fcn.00401418
mov edi, dword [ebp - 0x280]
push ebx
mov ebx, eax
and edi, 7
mov dword [esp], eax
call fcn.00407b49
push esi
test eax, eax
je 0x401b93
mov dword [esp + 4], ebx
mov dword [esp], 0x414060
call fcn.0040824c
jmp 0x401bc4
mov eax, dword [0x40c8b4]
mov dword [esp], 0x414060
add eax, 0xb000
mov dword [esp + 4], eax
call fcn.0040824c
push edx
push edx
mov dword [esp], eax
call fcn.00408280
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.004082c7
push eax
cmp edi, 2
jle 0x401c17
mov dword [esp], 0x414060
call fcn.0040895e
push ecx
xor ecx, ecx
test eax, eax
je 0x401c05
lea ecx, [ebp - 0x274]
add eax, 0x14
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push edx
mov ecx, eax
push edx
lea edx, [edi - 3]
xor eax, eax
or edx, 0x80000000
test edx, ecx
sete al
mov edi, eax
test edi, edi
jne 0x401c2c
mov dword [esp], 0x414060
xor edi, edi
call fcn.00407c98
push eax
jmp 0x401c3b
mov eax, 1
cmp edi, 1
je 0x401c40
mov edi, 2
mov eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x414060
call fcn.00407d3b
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
jne 0x401d35
test edi, edi
je 0x401c84
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe2
call fcn.004071fb
cmp edi, 2
push eax
push eax
jmp 0x403357
mov eax, dword [0x40c8b4]
mov dword [esp], 0x415060
mov dword [esp + 4], eax
call fcn.0040824c
push eax
push eax
mov eax, dword [0x40c8b4]
mov dword [esp + 4], 0x414060
mov dword [esp], eax
call fcn.0040824c
push eax
push eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], 0x414860
mov dword [esp + 4], eax
call fcn.004083a4
mov eax, dword [0x40c8b4]
push edx
push edx
mov dword [esp + 4], 0x415060
mov dword [esp], eax
call fcn.0040824c
mov eax, dword [ebp - 0x280]
push ecx
push ecx
sar eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x414860
call fcn.00407a71
push esi
push esi
cmp eax, 4
je 0x401c1b
cmp eax, 5
jne 0x401d15
inc dword [0x43ca28]
jmp case.0x4016d0.2
mov dword [esp + 4], 0x414060
mov dword [esp], 0xfffffffa
call fcn.004071fb
mov edi, 0x7fffffff
push eax
push eax
jmp case.0x4016d0.2
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffea
call fcn.004071fb
inc dword [0x43ca54]
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.00403d38
dec dword [0x43ca54]
mov edi, eax
mov eax, dword [ebp - 0x274]
and eax, dword [ebp - 0x270]
sub esp, 0x10
inc eax
je 0x401dab
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.0x4016d0.65
cmp edi, 0xfffffffe
jne 0x401dea
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x414060
call fcn.004083a4
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x414060
call sub.KERNEL32.dll_lstrcatW
jmp 0x401dfe
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x414060
call fcn.004083a4
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], 0x414060
jmp 0x402172
mov dword [esp], 0
jmp 0x401e70
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.00407a71
push ecx
push ecx
test eax, eax
je 0x4036c3
cmp dword [ebp - 0x278], eax
je 0x40201f
cmp dword [ebp - 0x270], eax
jne case.0x4016d0.65
mov edi, dword [ebp - 0x26c]
jmp case.0x4016d0.2
mov dword [esp], 0xfffffff0
call fcn.00401418
mov edx, dword [ebp - 0x27c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408a4a
jmp 0x402646
mov dword [esp], 1
call fcn.00401418
push esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenW
jmp 0x402603
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 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.0x4016d0.65
test edi, edi
mov edx, dword [ebp - 0x29c]
jns 0x401f0b
add edi, eax
js case.0x4016d0.65
cmp eax, edi
mov dword [esp], ebx
cmovg eax, edi
add eax, eax
add eax, edx
mov dword [esp + 4], eax
call fcn.0040824c
push eax
push eax
test esi, esi
jns 0x401f33
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenW
push edi
add esi, eax
js 0x401f41
cmp esi, 0x3ff
jg case.0x4016d0.65
jmp 0x401f43
xor esi, esi
mov word [ebx + esi*2], 0
jmp case.0x4016d0.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 0x401f82
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x401f88
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push edx
push edx
test eax, eax
jne 0x40201f
jmp 0x4023bf
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 0x401fce
mov word [ebx], 0
mov ecx, 1
jmp 0x401ff0
cmp dword [ebp - 0x278], 0
jne 0x401fdb
xor ecx, ecx
jmp 0x401ff0
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push esi
push esi
test eax, eax
je 0x401fc2
jmp 0x401fd7
mov word [ebx + 0x7fe], 0
jmp 0x403a97
xor eax, eax
mov esi, dword [ebp - 0x26c]
call fcn.0040146e
mov ebx, eax
mov eax, 1
call fcn.0040146e
test esi, esi
jne 0x40203b
cmp ebx, eax
jge 0x40202a
mov edi, dword [ebp - 0x274]
jmp case.0x4016d0.2
jle 0x4023bf
mov edi, dword [ebp - 0x270]
jmp case.0x4016d0.2
cmp ebx, eax
jb 0x40201f
jbe 0x4023bf
jmp 0x402030
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.0x402070
jmp dword [ecx*4 + 0x40c114]
mov edi, eax
add edi, esi
jmp 0x4020f4
sub esi, eax
jmp case.default.0x402070
imul edx, esi
jmp 0x4020d8
mov ecx, 1
test eax, eax
je 0x4020f4
mov eax, esi
mov esi, edx
cdq
idiv esi
jmp 0x4020b3
or edx, esi
jmp 0x4020d8
and edx, esi
jmp 0x4020d8
xor edx, esi
jmp 0x4020d8
test esi, esi
sete al
jmp 0x4020b0
or esi, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x4020f2
test esi, esi
setne al
test edx, edx
setne dl
movzx edx, dl
and edx, eax
jmp 0x4020d8
mov ecx, 1
test eax, eax
je 0x4020f4
mov eax, esi
mov esi, edx
cdq
idiv esi
mov edi, edx
jmp 0x4020f2
mov ecx, eax
shl esi, cl
jmp case.default.0x402070
mov ecx, eax
sar esi, cl
jmp case.default.0x402070
mov edi, esi
mov ecx, eax
shr edi, cl
jmp 0x4020f2
mov edi, esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov dword [esp + 4], edi
jmp 0x402392
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.0x4016d0.65
mov ecx, dword [ebp - 0x278]
mov edi, dword [0x416860]
test ecx, ecx
je 0x4021bf
dec ecx
test edi, edi
je 0x402151
mov edi, dword [edi]
test ecx, ecx
jne 0x402142
test edi, edi
jne 0x40217c
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.004083a4
push edx
push edx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.00407a71
jmp 0x401d29
add edi, 4
mov dword [esp], 0x414060
mov dword [esp + 4], edi
call fcn.0040824c
push eax
push eax
mov eax, dword [0x416860]
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040824c
push eax
push eax
mov eax, dword [0x416860]
add eax, 4
mov dword [esp + 4], 0x414060
mov dword [esp], eax
jmp 0x4036ee
mov dword [ebp - 0x29c], ecx
test esi, esi
je 0x4021f1
test edi, edi
je 0x4036c3
lea eax, [edi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040824c
push eax
push eax
mov eax, dword [edi]
mov dword [0x416860], eax
mov dword [esp], edi
jmp 0x402938
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.004083a4
mov eax, dword [0x416860]
push esi
push esi
mov dword [ebx], eax
mov dword [0x416860], ebx
jmp 0x401a24
mov eax, 3
call fcn.0040146e
mov esi, eax
mov eax, 4
call fcn.0040146e
mov edi, eax
test byte [ebp - 0x26c], 1
je 0x402263
mov dword [esp], 0x33
call fcn.00401418
push edx
mov esi, eax
test byte [ebp - 0x26c], 2
je 0x40227b
mov dword [esp], 0x44
call fcn.00401418
push edi
mov edi, eax
cmp dword [ebp - 0x284], 0x21
jne 0x40231f
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 0x4022ed
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
lea edx, [ebp - 0x268]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0
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 0x402375
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]
mov dword [ebp - 0x268], eax
sub esp, 0x10
jmp 0x402375
mov dword [esp], 1
call fcn.00401418
push edx
mov dword [ebp - 0x29c], eax
mov dword [esp], 0x12
call fcn.00401418
mov edx, dword [ebp - 0x29c]
push ecx
cmp word [eax], 0
jne 0x40234d
xor eax, eax
cmp word [edx], 0
jne 0x402355
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
mov dword [ebp - 0x268], eax
sub esp, 0x10
cmp dword [ebp - 0x280], 0
js 0x403a97
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x29c], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00408168
jmp 0x402639
xor eax, eax
call fcn.0040146e
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
push edi
test eax, eax
je 0x4023bf
mov edi, dword [ebp - 0x27c]
jmp case.0x4016d0.2
mov edi, dword [ebp - 0x278]
jmp case.0x4016d0.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 esi
push esi
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x403634
xor eax, eax
add esi, dword [0x43caa8]
call fcn.0040146e
mov dword [esp + 8], esi
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x403a92
test byte [ebp - 0x277], 1
je 0x402437
mov eax, 1
call fcn.0040146e
jmp 0x40244c
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push ecx
mov ebx, eax
mov eax, dword [ebp - 0x278]
mov edx, eax
mov esi, eax
mov edi, eax
and edx, 4
shr esi, 0x1e
and edi, 3
mov dword [ebp - 0x2a0], edx
mov edx, eax
and esi, 1
shr edx, 0x1f
bt eax, 0x10
mov dword [ebp - 0x2a4], edx
jae 0x40248c
mov dword [esp], 0
call fcn.00401418
push edx
jmp 0x402493
movzx eax, word [ebp - 0x280]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x278]
imul esi, dword [ebp - 0x25c]
xor ecx, ecx
push eax
and edx, 0xfef0
push eax
mov eax, dword [ebp - 0x2a4]
imul eax, dword [ebp - 0x260]
cmp dword [ebp - 0x2a0], 0
je 0x4024df
mov ecx, dword [0x43caec]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp + 0x14], edx
mov dword [esp], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_LoadImageW]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0x172
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
test eax, eax
je case.0x4016d0.65
test edi, edi
jne case.0x4016d0.65
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x403658
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 [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.004083a4
push eax
push eax
mov dword [esp], section..bss
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push edx
jmp 0x4023ef
xor eax, eax
call fcn.0040146e
mov ebx, eax
mov eax, 1
call fcn.0040146e
mov ecx, dword [ebp - 0x274]
mov dword [esp], ebx
mov dword [esp + 4], eax
test ecx, ecx
mov dword [ebp - 0x29c], ecx
jne 0x402640
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
jmp 0x401a24
call dword [sym.imp.USER32.dll_EnableWindow]
push eax
push eax
jmp case.0x4016d0.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.0040163f
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 0x4026c0
xor esi, esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
cmp word [ebx], 0
jne 0x4026d4
xor ebx, ebx
mov eax, dword [0x40c8b4]
mov dword [ebp - 0x254], ebx
add eax, 0xb000
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call fcn.00407a20
mov ecx, 1
push edi
test eax, eax
je 0x403a97
xor ecx, ecx
test byte [ebp - 0x264], 0x40
je 0x403a97
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x29c], ecx
mov dword [esp], eax
call fcn.00408e8f
mov eax, dword [ebp - 0x230]
push esi
mov dword [esp], eax
jmp 0x4027ad
mov dword [esp], 0
call fcn.00401418
push edx
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffeb
call fcn.004071fb
push ecx
push ecx
mov dword [esp], ebx
call fcn.0040799e
push ebx
mov ebx, eax
test eax, eax
je 0x4036c3
mov ecx, dword [ebp - 0x278]
test ecx, ecx
je 0x4027a4
mov dword [esp], eax
call fcn.00408e8f
cmp dword [ebp - 0x27c], 0
push edi
js 0x40279d
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.00408168
xor ecx, ecx
push esi
push esi
jmp 0x4027a4
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 0x401a23
mov dword [esp], 2
call fcn.00401418
push edx
mov dword [esp], eax
call fcn.0040895e
mov esi, eax
push ecx
test eax, eax
je 0x4027f3
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.00408168
push edi
push edi
mov eax, dword [esi + 0x18]
jmp 0x4023ef
mov eax, dword [ebp - 0x29c]
mov word [ebx], 0
mov word [eax], 0
jmp 0x4036c3
mov dword [esp], 0xffffffee
call fcn.00401418
push edi
mov dword [ebp - 0x2a0], eax
mov dword [esp], 9
call fcn.00408d5e
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
push ecx
mov word [ebx], 0
mov word [eax], 0
test edi, edi
je 0x4036c3
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 0x4036c3
mov dword [esp], 0xa
call fcn.00408d5e
push edx
mov dword [ebp - 0x2a4], eax
mov dword [esp], 0xb
call fcn.00408d5e
push ecx
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov eax, dword [ebp - 0x2a4]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
call eax
mov ecx, dword [ebp - 0x2a8]
sub esp, 0x10
test eax, eax
jne 0x4028d1
mov ecx, 1
jmp 0x40292f
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 ecx
sub esp, 0x10
test eax, eax
je 0x4028ca
mov eax, dword [ebp - 0x288]
mov eax, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408168
mov eax, dword [ebp - 0x288]
push edi
push edi
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.00408168
xor ecx, ecx
push eax
push eax
mov dword [ebp - 0x29c], ecx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x401a23
cmp dword [0x43ca58], 0
js 0x402a75
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 0x40299e
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 0x4029ae
jmp 0x402a69
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push ecx
test eax, eax
je 0x402977
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408e1b
mov edi, eax
push edx
push edx
test eax, eax
je 0x402a1a
mov ecx, dword [ebp - 0x278]
test ecx, ecx
je 0x4029e0
mov dword [esp], ecx
call fcn.0040163f
push eax
call edi
xor ecx, ecx
test eax, eax
setne cl
jmp 0x402a31
mov eax, dword [0x40c8b4]
mov dword [ebp - 0x29c], ecx
mov dword [esp + 0x10], 0x40b000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 0xc], 0x416860
mov dword [esp + 4], 0x400
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x29c]
jmp 0x402a31
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.004071fb
mov ecx, 1
push esi
push esi
cmp dword [ebp - 0x274], 0
jne 0x403a97
mov dword [esp], ebx
mov dword [ebp - 0x29c], ecx
call fcn.00404b0f
test eax, eax
push ecx
mov ecx, dword [ebp - 0x29c]
je 0x403a97
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401a23
mov dword [esp], 0xfffffff6
jmp 0x402b39
mov dword [esp], 0xffffffe7
jmp 0x402b39
mov dword [esp], 0xfffffff0
call fcn.00401418
push esi
mov dword [ebp - 0x2a0], 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 - 0x2a4], eax
mov dword [esp], 0xffffffcd
call fcn.00401418
push ecx
mov dword [ebp - 0x29c], eax
mov dword [esp], 0x45
call fcn.00401418
mov edi, dword [ebp - 0x270]
push ebx
mov dword [ebp - 0x2a8], eax
mov dword [esp], esi
call fcn.00407b49
push edx
test eax, eax
jne 0x402afc
mov dword [esp], 0x21
call fcn.00401418
push ebx
lea eax, [ebp - 0x288]
mov dword [esp + 0xc], 0x412580
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40deb0
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jns 0x402b44
mov dword [esp], 0xfffffff0
call fcn.0040163f
push ecx
jmp 0x4036c3
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x268]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x411b80
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x402c7e
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 0x402baa
mov edx, dword [ebp - 0x288]
mov eax, dword [0x40c8b4]
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 0x402bc8
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 0x402c12
mov eax, dword [ebp - 0x288]
and edi, 0xfff
mov edx, dword [eax]
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x29c]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [edx + 0x44]
sub esp, 0xc
mov eax, dword [ebp - 0x288]
mov esi, dword [ebp - 0x2a4]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x288]
push edi
push edi
mov edi, dword [ebp - 0x2a8]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x1c]
push eax
push eax
test ebx, ebx
js 0x402c6f
mov eax, dword [ebp - 0x268]
mov ebx, dword [ebp - 0x2a0]
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]
push ecx
test ebx, ebx
js 0x402b32
mov dword [esp], 0xfffffff4
call fcn.0040163f
jmp 0x403658
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.0040895e
push edx
test eax, eax
je 0x402d65
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 word [ebp - 0x258], ax
mov dword [ebp - 0x24e], edi
call fcn.004071fb
lea eax, [ebp - 0x268]
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, eax
push esi
test eax, eax
je 0x403a97
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.004071fb
push ebx
push ebx
jmp 0x4036c3
cmp edi, 0xbadf00d
jne 0x402151
inc dword [0x43ca34]
jmp case.0x4016d0.65
xor ebx, ebx
test edi, edi
je 0x402dac
mov dword [esp], 0
call fcn.00401418
push ecx
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x27c], 0
je 0x402dc6
mov dword [esp], 0x11
call fcn.00401418
push edx
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x270], 0
je 0x402de0
mov dword [esp], 0x22
call fcn.00401418
push edi
mov edi, eax
mov dword [esp], 0xffffffcd
call fcn.00401418
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
jmp 0x403355
mov dword [esp], 1
mov dword [ebp - 0x268], 0xa
call fcn.00401418
push edx
mov edi, eax
mov dword [esp], 0x12
call fcn.00401418
push ecx
mov esi, eax
mov dword [esp], 0xffffffdd
call fcn.00401418
push edx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x268]
mov dword [esp + 0x10], 0x3ff
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
sub esp, 0x18
cmp word [ebx], 0xa
jne 0x403a97
jmp 0x4036be
cmp dword [ebp - 0x270], 0
jne 0x402ec4
mov dword [esp], 2
call fcn.004015b8
mov esi, eax
push edi
test eax, eax
je 0x4036c3
mov dword [esp], 0x33
call fcn.00401418
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 0x402f3d
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 0x4036c3
or eax, 0x100020
mov dword [ebp - 0x268], eax
test esi, esi
js 0x402f06
add esi, dword [0x43ca24]
sub esi, 0x7fffffff
lea eax, [ebp - 0x268]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407f75
push esi
push esi
test eax, eax
je 0x4036c3
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 ebx, eax
test ebx, ebx
setne cl
movzx ecx, cl
jmp 0x403a97
mov dword [esp], 2
mov eax, dword [ebp - 0x26c]
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
mov edx, edi
push ecx
test edi, edi
js 0x402f8e
add edx, dword [0x43ca24]
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.0040804a
sub esp, 0x10
test eax, eax
jne 0x4036c3
mov ebx, dword [ebp - 0x268]
test ebx, ebx
je 0x4036c3
cmp esi, 1
jne 0x402fe9
mov dword [esp], 0x23
call fcn.00401418
push esi
mov dword [esp], 0x415060
call sub.KERNEL32.dll_lstrlenW
inc eax
push edi
add eax, eax
jmp 0x403034
cmp esi, 4
je 0x403020
xor eax, eax
cmp esi, 3
jne 0x403034
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.00403d38
sub esp, 0x10
jmp 0x403034
mov eax, 3
call fcn.0040146e
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]
xor ecx, ecx
sub esp, 0x18
test eax, eax
setne cl
mov dword [esp], ebx
mov dword [ebp - 0x29c], ecx
jmp 0x4031fe
mov dword [esp], 0x20019
call fcn.004015b8
push edx
mov esi, eax
mov dword [esp], 0x33
call fcn.00401418
push ecx
mov word [ebx], 0
test esi, esi
je 0x4036c3
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 0x4030f9
mov eax, dword [ebp - 0x268]
cmp eax, 4
je 0x40310a
cmp eax, 1
je 0x403105
cmp eax, 2
je 0x403134
mov word [ebx], 0
mov ecx, 1
jmp 0x403143
cmp eax, 4
jne 0x403134
mov eax, dword [ebx]
mov dword [esp], ebx
xor ecx, ecx
cmp dword [ebp - 0x270], 0
mov dword [esp + 4], eax
sete cl
mov dword [ebp - 0x29c], ecx
call fcn.00408168
mov ecx, dword [ebp - 0x29c]
push edi
push edi
jmp 0x403143
mov word [ebx + 0x7fe], 0
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 0x29c], ecx
jmp 0x4031fb
mov dword [esp], 0x20019
call fcn.004015b8
push esi
mov esi, eax
mov eax, 3
call fcn.0040146e
mov word [ebx], 0
test esi, esi
je 0x4036c3
cmp dword [ebp - 0x270], 0
mov dword [ebp - 0x268], 0x3ff
je 0x4031a7
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 0x4031ec
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
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401a23
mov dword [esp], ebx
call fcn.0040818d
push ebx
test eax, eax
je case.0x4016d0.65
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403658
mov dword [esp], 0xffffffed
call fcn.00401418
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.00407d3b
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x4023ef
jmp 0x4036be
mov esi, dword [ebp - 0x278]
test esi, esi
je 0x403290
mov eax, 1
call fcn.0040146e
mov word [0x414860], ax
xor eax, eax
cmp dword [ebp - 0x2a4], 0x38
setne al
mov edi, eax
inc edi
jmp 0x403319
cmp dword [ebp - 0x2a4], 0x38
jne 0x403300
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], 0x414860
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0x415060
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], 0x414860
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edx
jmp 0x403319
mov dword [esp], 0x11
call fcn.00401418
push ecx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenW
push edi
lea edi, [eax + eax]
cmp word [ebx], 0
je 0x4036c3
mov dword [esp], ebx
call fcn.0040818d
mov ebx, eax
xor eax, eax
cmp dword [ebp - 0x2a4], 0x38
push edx
sete al
or eax, esi
je 0x40335f
mov dword [esp + 8], edi
mov dword [esp + 4], 0x414860
mov dword [esp], ebx
call fcn.00407e47
sub esp, 0xc
test eax, eax
sete cl
jmp 0x402f42
cmp dword [ebp - 0x274], 0
je 0x40333e
mov dword [esp + 4], ebx
mov dword [esp], ebx
call fcn.00407e8d
push esi
push esi
test eax, eax
jns 0x40333e
jmp 0x4036c3
mov eax, 2
call fcn.0040146e
test eax, eax
jle case.0x4016d0.65
xor edi, edi
cmp word [ebx], 0
je 0x4035c6
mov dword [esp], ebx
cmp eax, 0x3ff
mov edi, 0x3ff
cmovle edi, eax
xor ebx, ebx
call fcn.0040818d
mov word [ebp - 0x2a4], 0
push ecx
mov esi, eax
mov dword [ebp - 0x2a0], 2
cmp dword [ebp - 0x284], 0x39
mov edx, dword [ebp - 0x274]
jne 0x4034d1
lea eax, [ebp - 0x268]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, 2
sub eax, edx
mov dword [esp], esi
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 0x4035c4
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x4035c4
mov dword [ebp - 0x2a0], eax
movzx eax, byte [ebp - 0x288]
cmp dword [ebp - 0x274], 0
mov word [ebp - 0x28c], ax
jne 0x403518
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 0x403518
dec dword [ebp - 0x268]
mov word [ebp - 0x28c], 0xfffd
je 0x403518
dec dword [ebp - 0x2a0]
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 0xc], 1
neg eax
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x403447
or edx, ebx
je 0x4034fb
lea eax, [ebp - 0x28c]
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00407e01
sub esp, 0xc
test eax, eax
jne 0x403518
jmp 0x4035c4
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00407e8d
push edx
push edx
test eax, eax
jns 0x4034d5
xor ebx, ebx
jmp 0x4035c4
cmp dword [ebp - 0x274], 0
movzx eax, word [ebp - 0x28c]
je 0x403541
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.00408168
push ebx
push ebx
jmp 0x403a9d
lea edx, [ebx + ebx]
add edx, dword [ebp - 0x29c]
cmp word [ebp - 0x2a4], 0xd
je 0x40355e
cmp word [ebp - 0x2a4], 0xa
jne 0x4035a3
cmp word [ebp - 0x2a4], ax
je 0x403573
cmp ax, 0xd
je 0x40359d
cmp ax, 0xa
je 0x40359d
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
neg eax
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x4035c4
mov word [edx], ax
inc ebx
jmp 0x4035c4
mov edx, dword [ebp - 0x29c]
inc ebx
mov word [edx + ebx*2 - 2], ax
test ax, ax
je 0x4035c4
cmp edi, ebx
je 0x4035c6
mov word [ebp - 0x2a4], ax
jmp 0x4033ca
mov edi, ebx
mov eax, dword [ebp - 0x29c]
test edi, edi
mov word [eax + edi*2], 0
jmp 0x403357
cmp word [ebx], 0
je case.0x4016d0.65
mov eax, 2
mov edi, dword [ebp - 0x274]
call fcn.0040146e
mov dword [esp], ebx
mov esi, eax
call fcn.0040818d
push ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
cmp dword [ebp - 0x27c], 0
js case.0x4016d0.65
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.00408168
jmp 0x402646
mov dword [esp], ebx
call fcn.0040818d
push edx
test eax, eax
je case.0x4016d0.65
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
jmp case.0x4016d0.65
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.0040818d
push esi
test eax, eax
je 0x4036be
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 0x4036be
jmp 0x4036e1
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]
push edx
push edx
cmp eax, 0xffffffff
jne 0x4036cd
mov eax, dword [ebp - 0x29c]
mov word [eax], 0
mov word [ebx], 0
mov ecx, 1
jmp 0x403a97
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call fcn.00408168
push esi
push esi
lea eax, [ebp - 0x23c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040824c
jmp 0x402646
mov dword [esp], 0xfffffff0
call fcn.00401418
push edx
mov esi, eax
mov dword [esp], eax
call fcn.00407b49
push ecx
test eax, eax
jne 0x403721
mov dword [esp], 0xffffffed
call fcn.00401418
push eax
mov dword [esp], esi
call fcn.00407c98
push edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407d3b
mov dword [ebp - 0x29c], eax
sub esp, 0xc
inc eax
jne 0x403767
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0xffffffef
mov ecx, 1
push esi
jmp 0x4038c3
mov eax, dword [0x43cacc]
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, 0xfffffd66
push ebx
push ebx
mov ebx, eax
test eax, eax
je 0x403898
mov dword [esp], 0
call fcn.00403d06
push eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403cde
mov eax, dword [ebp - 0x278]
push edx
push edx
mov dword [esp + 4], eax
mov dword [esp], 0x40
call edi
mov edi, eax
push ecx
push ecx
test eax, eax
je 0x403844
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.00403d38
mov eax, edi
sub esp, 0x10
cmp byte [eax], 0
je 0x40383a
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0x2a4], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x2a8], ecx
add edx, ebx
mov dword [esp], edx
call fcn.00407c7b
mov edx, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2a8]
sub esp, 0xc
lea eax, [edx + ecx]
jmp 0x4037fb
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.00407e47
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.00403d38
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 0x40374e
mov eax, 0xfffffff3
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov dword [esp], eax
jmp 0x401a1e
xor eax, eax
call fcn.0040146e
mov ebx, eax
cmp eax, dword [0x43ca8c]
jae 0x4036c3
mov ecx, dword [ebp - 0x278]
imul esi, eax, 0x818
add esi, dword [0x43ca88]
test ecx, ecx
js 0x40392e
jne 0x403926
mov eax, dword [ebp - 0x29c]
add esi, 0x18
mov dword [ebp - 0x2a0], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0040824c
push eax
push eax
mov ecx, dword [ebp - 0x2a0]
jmp 0x403a97
mov eax, dword [esi + ecx*4]
jmp 0x403627
not ecx
mov dword [ebp - 0x278], ecx
test ecx, ecx
je 0x40394c
mov eax, 1
call fcn.0040146e
mov dword [ebp - 0x27c], eax
jmp 0x40396a
mov eax, dword [ebp - 0x270]
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp], eax
call fcn.004083a4
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.0x4016d0.65
mov dword [esp], ebx
call fcn.00401234
jmp 0x403658
xor eax, eax
call fcn.0040146e
cmp eax, 0x1f
ja 0x4036c3
cmp dword [ebp - 0x274], 0
mov ecx, dword [ebp - 0x278]
je 0x403a02
test ecx, ecx
je 0x4039d8
mov dword [esp], eax
call fcn.00401347
push ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00401293
jmp 0x402646
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.00408168
jmp 0x403919
test ecx, ecx
mov edx, dword [0x43ca60]
lea eax, [eax + 0x24]
je 0x403a1b
mov ecx, dword [ebp - 0x27c]
mov dword [edx + eax*4 + 4], ecx
jmp case.0x4016d0.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.004083a4
jmp 0x403919
mov edx, dword [0x434ca0]
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.0x4016d0.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 [0x43ca28], ecx
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 4