Function at 0x4064e6
Capabilities:
Set current directory

Disassembly:
push 0x6c
mov eax, 0x47fed5
call fcn.00477fa0
mov ebx, ecx
lea esi, [ebp - 0x18]
call fcn.0040178d
and dword [ebp - 4], 0
lea edi, [ebx + 0x440]
call fcn.00402ed6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00403c45
lea eax, [ebp - 0x18]
push eax
call fcn.004016ec
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00403c45
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x488a94
push eax
call fcn.00403b58
push ecx
mov dword [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x14], esp
call fcn.0040178d
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00401b64
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 2
call fcn.00430a83
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
call fcn.004017d6
pop ecx
test eax, eax
je 0x4066cd
push dword [ebp - 0x10]
lea eax, [ebp - 0x78]
push eax
call fcn.00430aee
test eax, eax
je 0x4066cd
push 0x483e6c
push str.PARAM
push str.DEBUG
lea eax, [ebp - 0x78]
push eax
lea esi, [ebp - 0x14]
call fcn.00431655
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x4066bc
lea esi, [ebx + 0x4a0]
lea eax, [ebp - 0x14]
mov edi, esi
call fcn.00402ed6
mov ecx, dword [esi]
lea edi, [ebp - 0x18]
call fcn.00401736
push 0x488a94
mov eax, edi
push eax
mov byte [ebp - 4], 5
call fcn.00402f35
test eax, eax
je 0x406622
push str..config
mov eax, edi
push eax
call fcn.00402f35
test eax, eax
je 0x406622
lea eax, [ebp - 0x14]
lea edi, [ebx + 0x440]
call fcn.00402ed6
jmp 0x4066af
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
call fcn.00401cc1
pop ecx
pop ecx
mov edi, esi
mov byte [ebp - 4], 6
call fcn.00402ed6
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00403c45
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00416b39
pop ecx
pop ecx
lea edi, [ebx + 0x49c]
mov byte [ebp - 4], 7
call fcn.00402ed6
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00403c45
push 0x483e6c
push str.ARCHIVE_PATH_TO_TEST
push str.DEBUG
lea eax, [ebp - 0x78]
push eax
lea esi, [ebp - 0x1c]
call fcn.00431655
lea edi, [ebx + 0x440]
mov byte [ebp - 4], 8
call fcn.00402ed6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00403c45
and dword [ebx + 0x444], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00403c45
xor esi, esi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403c45
jmp 0x4066cf
xor esi, esi
mov eax, dword [0x4a444c]
mov ecx, 0x4a444c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
cmp dword [ebx + 0x444], esi
je 0x40675a
mov eax, dword [ebx + 0x440]
push ecx
sub eax, 0x10
mov dword [ebp - 0x1c], esp
mov edi, esp
call fcn.00403bb0
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.0040973e
cmp eax, esi
jne 0x40674a
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403c45
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 2
call fcn.00430ac7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403c45
xor eax, eax
call fcn.0047803f
ret
lea eax, [ebx + 0x468]
lea edi, [ebp - 0x14]
call fcn.00402ed6
jmp 0x406783
mov ecx, dword [ebx + 0x4a0]
lea edi, [ebp - 0x1c]
call fcn.00416c03
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00402ed6
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00403c45
mov edi, dword [ebp - 0x14]
push ecx
add edi, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov eax, edi
mov dword [ebp - 0x1c], esp
call fcn.00403bb0
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov ecx, ebx
call fcn.00409e78
cmp eax, esi
jne 0x4067bd
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
jmp 0x406725
cmp dword [ebx + 0x444], esi
je 0x4067e1
cmp dword [ebx + 0x498], esi
je 0x4067e1
call fcn.00402e6e
test eax, eax
jne 0x4067e1
mov ecx, ebx
call fcn.00406ce9
test eax, eax
jne 0x4067b6
push 8
push dword [0x4a446c]
mov dword [0x4a27d8], 0x488af4
mov dword [0x4a27b4], esi
mov dword [0x4a27d0], esi
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x4a27c8], eax
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [eax], esi
mov eax, esp
lea ecx, [ebp - 0x2c]
mov dword [eax], ecx
mov eax, ebx
mov dword [ebp - 0x1c], esp
call fcn.00406da2
mov eax, dword [ebx + 0x478]
cmp dword [eax - 0xc], esi
je 0x406845
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, ebx
call fcn.0040a6ce
call fcn.0040a86f
test eax, eax
jne 0x40688a
xor esi, esi
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
call fcn.00403c45
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 2
call fcn.00430ac7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403c45
mov eax, esi
jmp 0x406744
add ebx, 4
push ebx
call fcn.00407162
mov eax, edi
call fcn.00403c45
xor esi, esi
inc esi
jmp 0x40686b