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
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ecx, 7
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x174]
push ebx
sub esp, 0x1ac
mov eax, dword [0x42c4a8]
mov esi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x170]
mov dword [0x41303c], eax
mov esi, dword [ebp - 0x170]
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x174]
mov ebx, esi
mov edi, edx
sub eax, 2
shl ebx, 0xa
add ebx, dword [0x40b694]
shl edi, 0xa
add edi, dword [0x40b694]
cmp eax, 0x41
ja case.0x4016c4.65
jmp dword [eax*4 + 0x40b004]
mov dword [esp + 4], 0
mov dword [esp], esi
jmp 0x401cf8
inc dword [0x42ccc0]
cmp dword [ebp - 0x18c], 0
mov esi, 0x7fffffff
je case.0x4016c4.2
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
jmp case.0x4016c4.2
mov dword [esp], esi
call fcn.0040161b
push edx
dec eax
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403868
mov esi, eax
push ecx
push ecx
jmp case.0x4016c4.2
mov dword [esp], esi
mov dword [esp + 4], 0
call fcn.00407088
jmp 0x40379b
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 0x403755
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x403755
mov ecx, dword [ebp - 0x168]
test ecx, ecx
jne 0x4017ab
mov eax, dword [esi*4 + 0x42c3e0]
mov dword [ebp - 0x18c], ecx
mov dword [esi*4 + 0x42c3a0], eax
mov eax, 1
call fcn.0040146e
mov edx, dword [ebp - 0x170]
mov dword [edx*4 + 0x42c3e0], eax
jmp 0x40368f
mov eax, dword [esi*4 + 0x42c3a0]
mov dword [esi*4 + 0x42c3e0], eax
jmp case.0x4016c4.65
mov ecx, dword [ebp - 0x168]
xor edx, edx
mov eax, dword [ecx*4 + 0x42c3e0]
test eax, eax
sete dl
and eax, dword [ebp - 0x164]
mov dword [ecx*4 + 0x42c3e0], eax
mov esi, dword [ebp + edx*4 - 0x170]
jmp case.0x4016c4.2
mov eax, dword [edx*4 + 0x42c3e0]
jmp 0x4023c9
mov eax, dword [0x42ccc4]
test eax, eax
je 0x40180f
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov eax, dword [0x42ccc8]
test eax, eax
je case.0x4016c4.65
mov edx, dword [ebp - 0x170]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40379b
mov dword [esp], 0xfffffff0
call fcn.00401418
mov edx, dword [ebp - 0x16c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x401b27
mov dword [esp], 0xfffffff0
call fcn.00401418
push ebx
mov ebx, eax
mov dword [esp], eax
call fcn.004079f1
xor ecx, ecx
push esi
test eax, eax
je 0x401919
mov dword [esp + 4], 0x5c
mov dword [esp], eax
mov dword [ebp - 0x18c], ecx
call fcn.00407961
push ecx
mov esi, eax
push ecx
movzx edi, byte [eax]
mov byte [eax], 0
mov ecx, dword [ebp - 0x18c]
mov eax, edi
test al, al
jne 0x4018c9
cmp dword [ebp - 0x168], 0
je 0x4018c9
call fcn.00408bcb
mov ecx, dword [ebp - 0x18c]
test eax, eax
je 0x4018c9
mov dword [esp], ebx
call fcn.00407760
jmp 0x4018d7
mov dword [esp], ebx
mov dword [ebp - 0x18c], ecx
call fcn.004077f4
mov ecx, dword [ebp - 0x18c]
push edx
test eax, eax
je 0x40190b
cmp eax, 0xb7
je 0x4018ec
inc ecx
jmp 0x40190b
mov dword [ebp - 0x18c], ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
push ecx
mov ecx, dword [ebp - 0x18c]
cmp eax, 1
adc ecx, 0
mov edx, edi
lea eax, [esi + 1]
mov byte [esi], dl
test dl, dl
jmp 0x401875
cmp dword [ebp - 0x16c], 0
mov dword [ebp - 0x18c], ecx
je 0x401968
mov dword [esp], 0xffffffe6
call fcn.0040163f
mov eax, dword [0x40b694]
push esi
add eax, 0x5800
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004080a0
push edi
push edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0x18c]
cmp eax, 1
push edx
adc ecx, 0
jmp 0x403854
mov dword [esp], 0xfffffff5
jmp 0x403689
mov dword [esp], 0
call fcn.00401418
push ecx
mov dword [esp], eax
call fcn.00408769
jmp 0x402389
mov dword [esp], 0xffffffd0
call fcn.00401418
push edx
mov ebx, eax
mov dword [esp], 0xffffffdf
call fcn.00401418
push ecx
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_MoveFileA]
push edx
push edx
test eax, eax
je 0x4019d8
mov dword [esp], 0xffffffe3
jmp 0x402c8e
cmp dword [ebp - 0x168], 0
je 0x403486
mov dword [esp], ebx
mov dword [ebp - 0x18c], eax
call fcn.00408769
push edi
test eax, eax
je 0x403486
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00408724
push ebx
push ebx
mov dword [esp], 0xffffffe4
jmp 0x403689
mov dword [esp], 0
call fcn.00401418
push ecx
mov ebx, eax
lea eax, [ebp - 0x158]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0x400
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
sub esp, 0x10
test eax, eax
je 0x401a8e
mov eax, dword [ebp - 0x158]
xor ecx, ecx
cmp eax, ebx
jbe 0x401a96
cmp byte [eax], 0
je 0x401a96
mov dword [esp], ebx
mov dword [ebp - 0x18c], ecx
call fcn.00408769
push edx
test eax, eax
je 0x401a8e
add eax, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x158]
mov dword [esp], eax
call fcn.004080a0
mov ecx, dword [ebp - 0x18c]
push eax
push eax
jmp 0x401a96
mov byte [edi], 0
mov ecx, 1
cmp dword [ebp - 0x168], 0
jne 0x403854
mov dword [ebp - 0x18c], ecx
mov dword [esp + 8], 0x400
mov dword [esp + 4], edi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0xc
jmp 0x40368f
mov dword [esp], 0xffffffff
call fcn.00401418
lea edx, [ebp - 0x158]
push esi
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_SearchPathA]
xor ecx, ecx
sub esp, 0x18
test eax, eax
jmp 0x402e57
mov dword [esp], 0xffffffef
call fcn.00401418
push ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00407bfc
push edx
push edx
test eax, eax
jmp 0x4033a9
mov dword [esp], 0x31
call fcn.00401418
mov esi, dword [ebp - 0x170]
push ebx
mov ebx, eax
and esi, 7
mov dword [esp], eax
call fcn.004079c4
push edi
test eax, eax
je 0x401b67
mov dword [esp + 4], ebx
mov dword [esp], 0x413040
call fcn.004080a0
jmp 0x401b98
mov eax, dword [0x40b694]
mov dword [esp], 0x413040
add eax, 0x5800
mov dword [esp + 4], eax
call fcn.004080a0
push edx
push edx
mov dword [esp], eax
call fcn.004080d4
push ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatA
push ecx
push ecx
mov dword [esp], 0x413040
call fcn.00408119
push edi
cmp esi, 2
jle 0x401beb
mov dword [esp], 0x413040
call fcn.00408769
xor ecx, ecx
push edx
test eax, eax
je 0x401bd9
lea ecx, [ebp - 0x164]
add eax, 0x14
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
push edi
mov ecx, eax
push edi
lea edx, [esi - 3]
xor eax, eax
or edx, 0x80000000
test edx, ecx
sete al
mov esi, eax
test esi, esi
jne 0x401c00
mov dword [esp], 0x413040
call fcn.00407b01
push esi
xor esi, esi
jmp 0x401c0f
mov eax, 1
cmp esi, 1
je 0x401c14
mov esi, 2
mov eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x413040
call fcn.00407ba4
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x401d09
test esi, esi
je 0x401c58
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffe2
call fcn.00407088
cmp esi, 2
push ebx
push ebx
jmp 0x4033a9
mov eax, dword [0x40b694]
mov dword [esp], 0x413840
mov dword [esp + 4], eax
call fcn.004080a0
push eax
push eax
mov eax, dword [0x40b694]
mov dword [esp + 4], 0x413040
mov dword [esp], eax
call fcn.004080a0
push eax
push eax
mov eax, dword [ebp - 0x15c]
mov dword [esp], 0x413440
mov dword [esp + 4], eax
call fcn.004081e2
push eax
push eax
mov eax, dword [0x40b694]
mov dword [esp + 4], 0x413840
mov dword [esp], eax
call fcn.004080a0
mov eax, dword [ebp - 0x170]
push edx
push edx
sar eax, 3
mov dword [esp + 4], eax
mov dword [esp], 0x413440
call fcn.004078f5
push ecx
push ecx
cmp eax, 4
je 0x401bef
cmp eax, 5
jne 0x401ce9
inc dword [0x42c3e8]
jmp case.0x4016c4.2
mov dword [esp + 4], 0x413040
mov dword [esp], 0xfffffffa
call fcn.00407088
mov esi, 0x7fffffff
push eax
push eax
jmp case.0x4016c4.2
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffea
call fcn.00407088
inc dword [0x42c414]
push eax
push eax
mov eax, dword [ebp - 0x168]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00403d4a
dec dword [0x42c414]
mov esi, eax
mov eax, dword [ebp - 0x164]
and eax, dword [ebp - 0x160]
sub esp, 0x10
inc eax
je 0x401d7f
lea eax, [ebp - 0x164]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
test esi, esi
jns case.0x4016c4.65
cmp esi, 0xfffffffe
jne 0x401dbe
mov dword [esp + 4], 0xffffffe9
mov dword [esp], 0x413040
call fcn.004081e2
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x413040
call sub.KERNEL32.dll_lstrcatA
jmp 0x401dd2
mov dword [esp + 4], 0xffffffee
mov dword [esp], 0x413040
call fcn.004081e2
push ebx
push ebx
mov dword [esp + 4], 0x200010
mov dword [esp], 0x413040
jmp 0x402153
mov dword [esp], 0
jmp 0x401e44
mov dword [esp], 0x31
call fcn.00401418
push edx
mov edx, dword [ebp - 0x170]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004078f5
push ecx
push ecx
test eax, eax
je 0x403486
cmp dword [ebp - 0x168], eax
je 0x401fe9
cmp dword [ebp - 0x160], eax
jne case.0x4016c4.65
mov esi, dword [ebp - 0x15c]
jmp case.0x4016c4.2
mov dword [esp], 0xfffffff0
call fcn.00401418
mov edx, dword [ebp - 0x16c]
push edi
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00408855
jmp 0x40379b
mov dword [esp], 1
call fcn.00401418
push esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
jmp 0x4025df
mov eax, 2
call fcn.0040146e
mov esi, eax
mov eax, 3
mov dword [ebp - 0x190], edx
call fcn.0040146e
mov dword [esp], 1
mov edi, eax
call fcn.00401418
push edx
mov dword [ebp - 0x18c], eax
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
push ecx
mov ecx, dword [ebp - 0x190]
mov byte [ebx], 0
test ecx, ecx
cmove esi, eax
test esi, esi
je case.0x4016c4.65
test edi, edi
mov edx, dword [ebp - 0x18c]
jns 0x401edd
add edi, eax
js case.0x4016c4.65
cmp eax, edi
mov dword [esp], ebx
cmovle edi, eax
add edi, edx
mov dword [esp + 4], edi
call fcn.004080a0
push eax
push eax
test esi, esi
jns 0x401f03
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
push edi
add esi, eax
js 0x401f11
cmp esi, 0x3ff
jg case.0x4016c4.65
jmp 0x401f13
xor esi, esi
mov byte [ebx + esi], 0
jmp case.0x4016c4.65
mov dword [esp], 0x20
call fcn.00401418
push ecx
mov ebx, eax
mov dword [esp], 0x31
call fcn.00401418
cmp dword [ebp - 0x160], 0
push esi
mov dword [esp + 4], eax
mov dword [esp], ebx
jne 0x401f50
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x401f56
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edx
push edx
test eax, eax
jne 0x401fe9
jmp 0x402399
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_ExpandEnvironmentStringsA]
sub esp, 0xc
test eax, eax
jne 0x401f9a
mov byte [ebx], 0
mov ecx, 1
jmp 0x401fbc
cmp dword [ebp - 0x168], 0
jne 0x401fa7
xor ecx, ecx
jmp 0x401fbc
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push esi
push esi
test eax, eax
je 0x401f90
jmp 0x401fa3
mov byte [ebx + 0x3ff], 0
jmp 0x403854
xor eax, eax
mov esi, dword [ebp - 0x15c]
call fcn.0040146e
mov ebx, eax
mov eax, 1
call fcn.0040146e
test esi, esi
jne 0x402005
cmp ebx, eax
jge 0x401ff4
mov esi, dword [ebp - 0x164]
jmp case.0x4016c4.2
jle 0x402399
mov esi, dword [ebp - 0x160]
jmp case.0x4016c4.2
cmp ebx, eax
jb 0x401fe9
jbe 0x402399
jmp 0x401ffa
mov eax, 1
call fcn.0040146e
mov esi, eax
mov eax, 2
call fcn.0040146e
mov ecx, dword [ebp - 0x164]
mov edi, eax
mov edx, eax
cmp ecx, 0xd
ja case.default.0x40203a
jmp dword [ecx*4 + 0x40b10c]
mov edi, eax
add edi, esi
jmp 0x4020d5
mov edi, esi
sub edi, eax
jmp 0x4020d3
mov edi, eax
imul edi, esi
jmp 0x4020d3
mov ecx, 1
test eax, eax
je 0x4020d5
mov eax, esi
mov edi, edx
cdq
idiv edi
jmp 0x40208d
mov edi, eax
or edi, esi
jmp 0x4020d3
mov edi, eax
and edi, esi
jmp 0x4020d3
mov edi, eax
xor edi, esi
jmp 0x4020d3
test esi, esi
sete al
jmp 0x40208a
or esi, eax
setne al
movzx eax, al
mov edi, eax
jmp 0x4020d3
test esi, esi
mov edi, edx
setne al
xor edx, edx
test edi, edi
setne dl
mov edi, edx
and edi, eax
jmp 0x4020d3
mov ecx, 1
test eax, eax
je 0x4020d5
mov eax, esi
mov edi, edx
cdq
idiv edi
mov edi, edx
jmp 0x4020d3
mov edi, esi
mov ecx, eax
shl edi, cl
jmp 0x4020d3
mov edi, esi
mov ecx, eax
sar edi, cl
jmp 0x4020d3
mov edi, esi
mov ecx, eax
shr edi, cl
jmp 0x4020d3
mov edi, esi
xor ecx, ecx
mov dword [ebp - 0x18c], ecx
mov dword [esp + 4], edi
jmp 0x402371
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_wsprintfA]
jmp case.0x4016c4.65
mov ecx, dword [ebp - 0x168]
mov edi, dword [0x414440]
test ecx, ecx
je 0x4021a0
dec ecx
test edi, edi
je 0x402132
mov edi, dword [edi]
test ecx, ecx
jne 0x402123
test edi, edi
jne 0x40215d
mov dword [esp + 4], 0xffffffe8
mov dword [esp], 0
call fcn.004081e2
push edx
push edx
mov dword [esp + 4], 0x200010
mov dword [esp], eax
call fcn.004078f5
jmp 0x401cfd
add edi, 4
mov dword [esp], 0x413040
mov dword [esp + 4], edi
call fcn.004080a0
push eax
push eax
mov eax, dword [0x414440]
add eax, 4
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004080a0
push eax
push eax
mov eax, dword [0x414440]
add eax, 4
mov dword [esp + 4], 0x413040
mov dword [esp], eax
jmp 0x4034ab
mov dword [ebp - 0x18c], ecx
test edx, edx
je 0x4021d2
test edi, edi
je 0x403486
lea eax, [edi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004080a0
push eax
push eax
mov eax, dword [edi]
mov dword [0x414440], eax
mov dword [esp], edi
jmp 0x4028f2
mov dword [esp + 4], 0x404
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ecx
mov ebx, eax
mov eax, dword [ebp - 0x170]
push ecx
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.004081e2
mov eax, dword [0x414440]
push esi
push esi
mov dword [ebx], eax
mov dword [0x414440], ebx
jmp 0x40368f
mov eax, 3
call fcn.0040146e
mov esi, eax
mov eax, 4
call fcn.0040146e
mov edi, eax
test byte [ebp - 0x15c], 1
je 0x402244
mov dword [esp], 0x33
call fcn.00401418
push edx
mov esi, eax
test byte [ebp - 0x15c], 2
je 0x40225c
mov dword [esp], 0x44
call fcn.00401418
push edi
mov edi, eax
cmp dword [ebp - 0x174], 0x21
jne 0x402300
mov eax, 1
call fcn.0040146e
mov dword [ebp - 0x18c], eax
mov eax, 2
call fcn.0040146e
mov ecx, dword [ebp - 0x15c]
sar ecx, 2
je 0x4022ce
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x158]
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_SendMessageTimeoutA]
xor ecx, ecx
sub esp, 0x1c
test eax, eax
sete cl
jmp 0x402354
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x158], eax
sub esp, 0x10
jmp 0x402354
mov dword [esp], 1
call fcn.00401418
push edx
mov dword [ebp - 0x18c], eax
mov dword [esp], 0x12
call fcn.00401418
mov edx, dword [ebp - 0x18c]
push ecx
cmp byte [eax], 0
jne 0x40232d
xor eax, eax
cmp byte [edx], 0
jne 0x402334
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_FindWindowExA]
xor ecx, ecx
mov dword [ebp - 0x158], eax
sub esp, 0x10
cmp dword [ebp - 0x170], 0
js 0x403854
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x18c], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
jmp 0x4037bc
xor eax, eax
call fcn.0040146e
mov dword [esp], eax
call dword [sym.imp.USER32.dll_IsWindow]
push edi
test eax, eax
je 0x402399
mov esi, dword [ebp - 0x16c]
jmp case.0x4016c4.2
mov esi, dword [ebp - 0x168]
jmp case.0x4016c4.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 0x4036eb
add edx, dword [0x42c468]
xor eax, eax
mov esi, edx
call fcn.0040146e
mov dword [esp + 8], esi
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x40384f
test byte [ebp - 0x167], 1
je 0x402413
mov eax, 1
call fcn.0040146e
jmp 0x402428
mov eax, dword [ebp - 0x18c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push ecx
mov ebx, eax
mov eax, dword [ebp - 0x168]
mov edx, eax
mov esi, eax
mov edi, eax
and edx, 4
shr esi, 0x1e
and edi, 3
mov dword [ebp - 0x190], edx
mov edx, eax
and esi, 1
shr edx, 0x1f
bt eax, 0x10
mov dword [ebp - 0x194], edx
jae 0x402468
mov dword [esp], 0
call fcn.00401418
push edx
jmp 0x40246f
movzx eax, word [ebp - 0x170]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x168]
imul esi, dword [ebp - 0x14c]
xor ecx, ecx
push eax
and edx, 0xfef0
push eax
mov eax, dword [ebp - 0x194]
imul eax, dword [ebp - 0x150]
cmp dword [ebp - 0x190], 0
je 0x4024bb
mov ecx, dword [0x42c4ac]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18c]
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_LoadImageA]
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_SendMessageA]
sub esp, 0x10
test eax, eax
je case.0x4016c4.65
test edi, edi
jne case.0x4016c4.65
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x403755
mov eax, dword [ebp - 0x18c]
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 - 0x18c]
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], 0x41301c
mov dword [0x413010], eax
mov eax, dword [ebp - 0x160]
mov byte [0x413017], 1
mov edx, eax
and edx, 1
mov byte [0x413014], dl
mov edx, eax
and eax, 4
mov byte [0x413016], al
mov eax, dword [ebp - 0x16c]
and edx, 2
mov byte [0x413015], dl
mov dword [esp + 4], eax
call fcn.004081e2
push eax
push eax
mov dword [esp], section..bss
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push edx
jmp 0x4023c9
xor eax, eax
call fcn.0040146e
mov ebx, eax
mov eax, 1
call fcn.0040146e
mov ecx, dword [ebp - 0x164]
mov dword [esp], ebx
mov dword [esp + 4], eax
test ecx, ecx
mov dword [ebp - 0x18c], ecx
jne 0x40261a
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4037f2
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40379b
mov dword [esp], 0
call fcn.00401418
push esi
mov esi, eax
mov dword [esp], 0x31
call fcn.00401418
push edi
mov edi, eax
mov dword [esp], 0x22
call fcn.00401418
push edx
mov ebx, eax
mov dword [esp], 0x15
call fcn.00401418
push ecx
mov dword [esp], 0xffffffec
call fcn.0040163f
push eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x13c], eax
cmp byte [esi], 0
jne 0x402697
xor esi, esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], edi
cmp byte [ebx], 0
jne 0x4026aa
xor ebx, ebx
mov eax, dword [0x40b694]
mov dword [ebp - 0x144], ebx
add eax, 0x5800
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.004078a4
mov ecx, 1
push ebx
test eax, eax
je 0x403854
xor ecx, ecx
test byte [ebp - 0x154], 0x40
je 0x403854
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x18c], ecx
mov dword [esp], eax
call fcn.00408c42
mov eax, dword [ebp - 0x120]
push ecx
mov dword [esp], eax
jmp 0x40277d
mov dword [esp], 0
call fcn.00401418
push ecx
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], 0xffffffeb
call fcn.00407088
push esi
push esi
mov dword [esp], ebx
call fcn.00407822
mov ebx, eax
push edx
test eax, eax
je 0x403486
mov ecx, dword [ebp - 0x168]
test ecx, ecx
je 0x402774
mov dword [esp], eax
call fcn.00408c42
cmp dword [ebp - 0x16c], 0
push edx
js 0x40276d
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407fc3
xor ecx, ecx
push esi
push esi
jmp 0x402774
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x18c], ecx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40368e
mov dword [esp], 2
call fcn.00401418
push edx
mov dword [esp], eax
call fcn.00408769
mov esi, eax
push ecx
test eax, eax
je 0x4027bd
mov eax, dword [eax + 0x14]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407fc3
push edi
push edi
mov eax, dword [esi + 0x18]
jmp 0x4023c9
mov byte [ebx], 0
mov byte [edi], 0
jmp 0x403486
mov dword [esp], 0xffffffee
call fcn.00401418
push edx
mov dword [ebp - 0x18c], eax
mov dword [esp], 9
call fcn.00408b7f
lea edx, [ebp - 0x17c]
push ecx
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x18c]
mov dword [esp], edx
call eax
push esi
push esi
mov byte [ebx], 0
mov byte [edi], 0
test eax, eax
je 0x403486
mov dword [esp + 4], eax
mov dword [ebp - 0x198], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
mov esi, eax
test eax, eax
je 0x403486
mov dword [esp], 0xa
call fcn.00408b7f
push edx
mov dword [ebp - 0x190], eax
mov dword [esp], 0xb
call fcn.00408b7f
mov edx, dword [ebp - 0x198]
push ecx
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
call eax
mov ecx, dword [ebp - 0x194]
sub esp, 0x10
test eax, eax
jne 0x402891
mov ecx, 1
jmp 0x4028e9
lea eax, [ebp - 0x158]
mov dword [esp + 4], 0x40b000
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x178]
mov dword [esp + 8], eax
mov dword [esp], esi
call ecx
sub esp, 0x10
test eax, eax
je 0x40288a
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00407fc3
push eax
push eax
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 0xc]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00407fc3
xor ecx, ecx
push eax
push eax
mov dword [ebp - 0x18c], ecx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40368e
cmp dword [0x42c418], 0
js 0x402a2f
mov dword [esp], 0xfffffff0
call fcn.00401418
push ebx
mov edi, eax
mov dword [esp], 1
call fcn.00401418
cmp dword [ebp - 0x160], 0
push esi
mov esi, eax
jne 0x402958
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x402968
jmp 0x402a23
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
push ecx
test eax, eax
je 0x402931
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
push edx
push edx
test eax, eax
je 0x4029d4
mov ecx, dword [ebp - 0x168]
test ecx, ecx
je 0x40299a
mov dword [esp], ecx
call fcn.0040163f
push eax
call edi
xor ecx, ecx
test eax, eax
setne cl
jmp 0x4029eb
mov eax, dword [0x40b694]
mov dword [ebp - 0x190], ecx
mov dword [esp + 0x10], 0x40a000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0xc], 0x414440
mov dword [esp + 4], 0x400
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x190]
jmp 0x4029eb
mov dword [esp + 4], esi
mov dword [esp], 0xfffffff7
call fcn.00407088
mov ecx, 1
push esi
push esi
cmp dword [ebp - 0x164], 0
jne 0x403854
mov dword [esp], ebx
mov dword [ebp - 0x18c], ecx
call fcn.00404a5b
test eax, eax
push ecx
mov ecx, dword [ebp - 0x18c]
je 0x403854
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40368e
mov dword [esp], 0xfffffff6
jmp 0x402af3
mov dword [esp], 0xffffffe7
jmp 0x402af3
mov dword [esp], 0xfffffff0
call fcn.00401418
push esi
mov dword [ebp - 0x190], 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 - 0x194], eax
mov dword [esp], 0xffffffcd
call fcn.00401418
push ecx
mov dword [ebp - 0x18c], eax
mov dword [esp], 0x45
call fcn.00401418
mov edi, dword [ebp - 0x160]
push ebx
mov dword [ebp - 0x198], eax
mov dword [esp], esi
call fcn.004079c4
push edx
test eax, eax
jne 0x402ab6
mov dword [esp], 0x21
call fcn.00401418
push ebx
lea eax, [ebp - 0x178]
mov dword [esp + 0xc], 0x4111f4
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x40cb64
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
jns 0x402afe
mov dword [esp], 0xfffffff0
call fcn.0040163f
push ecx
jmp 0x403486
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x410834
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov ebx, eax
test eax, eax
js 0x402c70
mov eax, dword [ebp - 0x178]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x50]
bt edi, 0xf
mov ebx, eax
push edx
push edx
jb 0x402b64
mov edx, dword [ebp - 0x178]
mov eax, dword [0x40b694]
mov ecx, dword [edx]
add eax, 0x5800
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0x24]
push eax
push eax
mov eax, edi
sar eax, 0xc
and eax, 7
je 0x402b82
mov edx, dword [ebp - 0x178]
mov ecx, dword [edx]
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [ecx + 0x3c]
push eax
push eax
mov eax, dword [ebp - 0x178]
mov ecx, edi
shr ecx, 0x10
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x34]
push eax
push eax
mov eax, dword [ebp - 0x18c]
cmp byte [eax], 0
je 0x402bcb
mov eax, dword [ebp - 0x178]
and edi, 0xfff
mov edx, dword [eax]
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x18c]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [edx + 0x44]
sub esp, 0xc
mov eax, dword [ebp - 0x178]
mov edi, dword [ebp - 0x194]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x2c]
mov eax, dword [ebp - 0x178]
push edi
push edi
mov edi, dword [ebp - 0x198]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x1c]
push eax
push eax
test ebx, ebx
js 0x402c61
mov eax, dword [ebp - 0x190]
mov dword [esp + 0x14], 0x400
mov ebx, 0x80004005
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub esp, 0x18
test eax, eax
je 0x402c61
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x18]
sub esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x158]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push esi
mov eax, dword [ebp - 0x178]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
push ecx
test ebx, ebx
js 0x402aec
mov dword [esp], 0xfffffff4
call fcn.0040163f
jmp 0x403755
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.00408769
push edx
test eax, eax
je 0x402d4f
mov dword [esp], ebx
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x154], 2
mov dword [ebp - 0x158], eax
call sub.KERNEL32.dll_lstrlenA
push edx
mov byte [ebx + eax + 1], 0
mov dword [esp], esi
call sub.KERNEL32.dll_lstrlenA
push ecx
mov byte [esi + eax + 1], 0
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x150], ebx
mov dword [esp + 4], edi
mov dword [esp], 0
mov dword [ebp - 0x14c], esi
mov word [ebp - 0x148], ax
mov dword [ebp - 0x13e], edi
call fcn.00407088
lea eax, [ebp - 0x158]
push ebx
push ebx
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, eax
push esi
test eax, eax
je 0x403854
mov dword [esp + 4], 0
mov dword [esp], 0xfffffff9
call fcn.00407088
push ebx
push ebx
jmp 0x403486
cmp esi, 0xbadf00d
jne 0x402132
inc dword [0x42c3f4]
jmp case.0x4016c4.65
xor ebx, ebx
test esi, esi
je 0x402d96
mov dword [esp], 0
call fcn.00401418
push ecx
mov ebx, eax
xor esi, esi
cmp dword [ebp - 0x16c], 0
je 0x402db0
mov dword [esp], 0x11
call fcn.00401418
push edx
mov esi, eax
xor edi, edi
cmp dword [ebp - 0x160], 0
je 0x402dca
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_WritePrivateProfileStringA]
sub esp, 0x10
jmp 0x401b29
mov dword [esp], 1
mov word [ebp - 0x158], 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 - 0x158]
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_GetPrivateProfileStringA]
xor ecx, ecx
sub esp, 0x18
cmp byte [ebx], 0xa
jne 0x403854
jmp 0x403483
cmp dword [ebp - 0x160], 0
jne 0x402eaf
mov dword [esp], 2
call fcn.004015b8
mov esi, eax
push edi
test eax, eax
je 0x403486
mov dword [esp], 0x33
call fcn.00401418
push edx
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ecx
mov ebx, eax
push ecx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
jmp 0x402f37
mov dword [esp], 0x22
mov dword [ebp - 0x18c], edx
call fcn.00401418
mov edx, dword [ebp - 0x18c]
mov ebx, eax
mov eax, dword [ebp - 0x160]
push edi
sar eax, 1
mov dword [ebp - 0x158], eax
cmp byte [ebx], 0
je 0x403486
or eax, 0x100020
mov esi, edx
mov dword [ebp - 0x158], eax
test edx, edx
js 0x402f00
add edx, dword [0x42c3e4]
mov esi, edx
sub esi, 0x7fffffff
lea eax, [ebp - 0x158]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00407dd4
push esi
push esi
test eax, eax
je 0x403486
mov edx, dword [ebp - 0x158]
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
jmp 0x4033ac
mov dword [esp], 2
mov eax, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x160]
mov dword [ebp - 0x18c], eax
call fcn.00401418
push edx
mov dword [ebp - 0x190], eax
mov dword [esp], 0x11
call fcn.00401418
mov edx, esi
push ecx
test esi, esi
js 0x402f85
add edx, dword [0x42c3e4]
sub edx, 0x7fffffff
lea ecx, [ebp - 0x158]
mov dword [esp + 8], 0x100022
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00407ea9
sub esp, 0x10
test eax, eax
jne 0x403486
mov ebx, dword [ebp - 0x158]
test ebx, ebx
je 0x403486
cmp edi, 1
jne 0x402fde
mov dword [esp], 0x23
call fcn.00401418
push esi
mov dword [esp], 0x413840
call sub.KERNEL32.dll_lstrlenA
inc eax
push edi
jmp 0x403029
cmp edi, 4
je 0x403015
xor eax, eax
cmp edi, 3
jne 0x403029
mov eax, dword [ebp - 0x164]
mov dword [esp + 0xc], 0xc00
mov dword [esp + 8], 0x413840
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00403d4a
sub esp, 0x10
jmp 0x403029
mov eax, 3
call fcn.0040146e
mov dword [0x413840], eax
mov eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0x10], 0x413840
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
sub esp, 0x18
test eax, eax
setne cl
mov dword [esp], ebx
mov dword [ebp - 0x18c], ecx
jmp 0x4031e3
mov dword [esp], 0x20019
call fcn.004015b8
push edx
mov esi, eax
mov dword [esp], 0x33
call fcn.00401418
push ecx
mov byte [ebx], 0
test esi, esi
je 0x403486
lea edx, [ebp - 0x178]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x158]
mov dword [ebp - 0x178], 0x400
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_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x4030ea
mov eax, dword [ebp - 0x158]
lea edx, [eax - 1]
cmp edx, 1
jbe 0x4030f4
cmp eax, 4
je 0x4030f4
mov byte [ebx], 0
mov ecx, 1
jmp 0x40312c
mov ecx, dword [ebp - 0x160]
cmp eax, 4
jne 0x403125
mov eax, dword [ebx]
test ecx, ecx
mov dword [esp], ebx
sete cl
mov dword [esp + 4], eax
movzx ecx, cl
mov dword [ebp - 0x18c], ecx
call fcn.00407fc3
mov ecx, dword [ebp - 0x18c]
push edi
push edi
jmp 0x40312c
mov byte [ebx + 0x3ff], 0
mov dword [ebp - 0x18c], ecx
jmp 0x4031e0
mov dword [esp], 0x20019
call fcn.004015b8
push esi
mov esi, eax
mov eax, 3
call fcn.0040146e
mov byte [ebx], 0
test esi, esi
je 0x403486
cmp dword [ebp - 0x160], 0
mov dword [ebp - 0x158], 0x3ff
je 0x40318e
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_RegEnumKeyA]
xor ecx, ecx
sub esp, 0x10
jmp 0x4031d3
lea edx, [ebp - 0x158]
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_RegEnumValueA]
xor ecx, ecx
sub esp, 0x20
test eax, eax
setne cl
mov dword [ebp - 0x18c], ecx
mov byte [ebx + 0x3ff], 0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40368e
mov dword [esp], ebx
call fcn.00407fe8
push ecx
test eax, eax
je case.0x4016c4.65
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403755
mov dword [esp], 0xffffffed
call fcn.00401418
push edx
mov edx, dword [ebp - 0x168]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x16c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00407ba4
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x4023c9
jmp 0x403483
cmp dword [ebp - 0x168], 0
je 0x403266
mov eax, 1
mov esi, 1
call fcn.0040146e
mov byte [0x413440], al
jmp 0x40327e
mov dword [esp], 0x11
call fcn.00401418
push esi
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenA
push edi
mov esi, eax
cmp byte [ebx], 0
je 0x403486
mov dword [esp], ebx
call fcn.00407fe8
push ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0x413440
mov dword [esp], eax
call fcn.00407ca6
sub esp, 0xc
jmp 0x401b29
mov eax, 2
call fcn.0040146e
test eax, eax
jle case.0x4016c4.65
xor esi, esi
cmp byte [ebx], 0
je 0x4033a3
mov dword [esp], ebx
cmp eax, 0x3ff
mov esi, 0x3ff
cmovle esi, eax
xor ebx, ebx
call fcn.00407fe8
mov dword [ebp - 0x18c], eax
push edx
xor edx, edx
lea eax, [ebp - 0x158]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18c]
mov byte [ebp - 0x190], dl
mov dword [esp], eax
call fcn.00407c60
sub esp, 0xc
test eax, eax
je 0x4033a1
cmp dword [ebp - 0x164], 0
movzx eax, byte [ebp - 0x158]
mov dl, byte [ebp - 0x190]
je 0x403343
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407fc3
push ebx
push ebx
jmp 0x40385a
lea ecx, [edi + ebx]
cmp dl, 0xd
je 0x403350
cmp dl, 0xa
jne 0x40338d
cmp dl, al
je 0x40335c
cmp al, 0xd
je 0x403388
cmp al, 0xa
je 0x403388
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
jmp 0x4033a1
mov byte [ecx], al
inc ebx
jmp 0x4033a1
inc ebx
mov byte [edi + ebx - 1], al
test al, al
je 0x4033a1
cmp esi, ebx
je 0x4033a3
mov edx, eax
jmp 0x4032e9
mov esi, ebx
mov byte [edi + esi], 0
test esi, esi
sete cl
movzx ecx, cl
jmp 0x403854
cmp byte [ebx], 0
je case.0x4016c4.65
mov ecx, dword [ebp - 0x164]
mov eax, 2
mov dword [ebp - 0x18c], ecx
call fcn.0040146e
mov dword [esp], ebx
mov esi, eax
call fcn.00407fe8
push ecx
mov ecx, dword [ebp - 0x18c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
cmp dword [ebp - 0x16c], 0
js case.0x4016c4.65
jmp 0x4036e4
mov dword [esp], ebx
call fcn.00407fe8
push edx
test eax, eax
je case.0x4016c4.65
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x403755
mov dword [esp], edi
call fcn.00407fe8
push edi
test eax, eax
je 0x403483
lea edx, [ebp - 0x158]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push esi
test eax, eax
je 0x403483
jmp 0x40349e
mov dword [esp], 2
call fcn.00401418
push edx
lea edx, [ebp - 0x158]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ecx
push ecx
cmp eax, 0xffffffff
jne 0x403490
mov byte [edi], 0
mov byte [ebx], 0
mov ecx, 1
jmp 0x403854
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407fc3
push esi
push esi
lea eax, [ebp - 0x12c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004080a0
jmp 0x40379b
mov dword [esp], 0xfffffff0
call fcn.00401418
push edx
mov esi, eax
mov dword [esp], eax
call fcn.004079c4
push ecx
test eax, eax
jne 0x4034de
mov dword [esp], 0xffffffed
call fcn.00401418
push eax
mov dword [esp], esi
call fcn.00407b01
push edi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call fcn.00407ba4
mov dword [ebp - 0x18c], eax
sub esp, 0xc
inc eax
jne 0x403524
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xffffffef
mov ecx, 1
push esi
jmp 0x403680
mov eax, dword [0x42c48c]
mov dword [esp], 0x40
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x190], eax
mov dword [esp + 4], eax
call edi
mov edx, 0xfffffd66
push ebx
push ebx
mov ebx, eax
test eax, eax
je 0x403655
mov dword [esp], 0
call fcn.00403b2a
push eax
mov eax, dword [ebp - 0x190]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00403b02
mov eax, dword [ebp - 0x168]
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 0x403601
mov eax, dword [ebp - 0x168]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x16c]
mov dword [esp], eax
call fcn.00403d4a
mov eax, edi
sub esp, 0x10
cmp byte [eax], 0
je 0x4035f7
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [ebp - 0x194], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x198], ecx
add edx, ebx
mov dword [esp], edx
call fcn.00407ae4
mov edx, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x198]
sub esp, 0xc
lea eax, [edx + ecx]
jmp 0x4035b8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
call fcn.00407ca6
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0xffffffff
call fcn.00403d4a
sub esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x190]
push eax
test edx, edx
js 0x40350b
mov eax, 0xfffffff3
xor ecx, ecx
mov dword [ebp - 0x18c], ecx
mov dword [esp], eax
call fcn.0040163f
push eax
mov ecx, dword [ebp - 0x18c]
jmp 0x403854
xor eax, eax
call fcn.0040146e
mov ebx, eax
cmp eax, dword [0x42c44c]
jae 0x403486
mov ecx, dword [ebp - 0x168]
imul esi, eax, 0x418
add esi, dword [0x42c448]
test ecx, ecx
js 0x4036f5
jne 0x4036e1
add esi, 0x18
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [ebp - 0x18c], ecx
call fcn.004080a0
jmp 0x4037f2
mov eax, dword [esi + ecx*4]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407fc3
jmp 0x40379b
not ecx
mov dword [ebp - 0x168], ecx
test ecx, ecx
je 0x403713
mov eax, 1
call fcn.0040146e
mov dword [ebp - 0x16c], eax
jmp 0x403731
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
lea eax, [esi + 0x18]
mov dword [esp], eax
call fcn.004081e2
push edi
push edi
or dword [esi + 8], 0x100
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x168]
mov dword [esi + eax*4], edx
cmp dword [ebp - 0x164], 0
je case.0x4016c4.65
mov dword [esp], ebx
call fcn.00401234
push esi
jmp case.0x4016c4.65
xor eax, eax
call fcn.0040146e
cmp eax, 0x1f
ja 0x403486
cmp dword [ebp - 0x164], 0
mov ecx, dword [ebp - 0x168]
je 0x4037c3
test ecx, ecx
je 0x4037a2
mov dword [esp], eax
call fcn.00401347
push ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00401293
push ecx
push ecx
jmp case.0x4016c4.65
mov dword [esp], 0
mov dword [ebp - 0x18c], ecx
call fcn.00401396
push edx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407fc3
jmp 0x4037f2
test ecx, ecx
mov edx, dword [0x42c420]
lea eax, [eax + 0x24]
je 0x4037dc
mov ecx, dword [ebp - 0x16c]
mov dword [edx + eax*4 + 4], ecx
jmp case.0x4016c4.65
mov eax, dword [edx + eax*4 + 4]
mov dword [esp], edi
mov dword [ebp - 0x18c], ecx
mov dword [esp + 4], eax
call fcn.004081e2
push eax
push eax
jmp 0x40368f
mov edx, dword [0x428940]
mov eax, dword [ebp - 0x18c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xb
and edx, esi
mov dword [esp], eax
mov dword [esp + 8], edx
call dword [sym.imp.USER32.dll_SendMessageA]
sub esp, 0x10
cmp dword [ebp - 0x170], 0
je case.0x4016c4.65
mov eax, dword [ebp - 0x18c]
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 [0x42c3e8], ecx
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4