Function at 0x45df50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a851
mov eax, dword fs:[0]
push eax
sub esp, 0x5c8
mov eax, dword [0x578750]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5cc], ecx
mov eax, dword [0x57af80]
mov dword [ebp - 0x5c4], eax
mov ecx, dword [0x57ab64]
mov dword [ebp - 0x5c0], ecx
push 0
push 0
push 6
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x5bc]
call fcn.00444370
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401b80
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401d90
mov ecx, dword [ebp - 0x5cc]
mov ecx, dword [ecx + 0x20]
call fcn.004e2d7f
cmp dword [eax + 0x64], 0
sete dl
mov byte [ebp - 0x15], dl
movzx eax, byte [ebp - 0x15]
push eax
push 1
lea ecx, [ebp - 0x5bc]
call fcn.00467510
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
add eax, 0x34
mov dword [ebp - 0x5d0], eax
mov ecx, dword [ebp - 0x5d0]
mov edx, dword [ecx]
or edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x5d0]
mov dword [eax], edx
lea ecx, [ebp - 0x10]
call fcn.00401b80
mov byte [ebp - 4], 2
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x45e042
mov dword [ebp - 0x5d4], 0x543e2c
jmp 0x45e04c
mov dword [ebp - 0x5d4], 0x543e34
mov edx, dword [ebp - 0x5d4]
push edx
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0x543e3c
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543e5c
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543e64
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543e88
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
lea ecx, [ebp - 0x10]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0xc], esi
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0x3c], 0x543e90
lea ecx, [ebp - 0x14]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0x30], esi
push 0x104
mov ecx, dword [ebp + 8]
call fcn.00401c20
mov esi, eax
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0x1c], esi
mov ecx, 0x584f80
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
push 0x584f80
lea ecx, [ebp - 0x298]
call fcn.00413820
lea eax, [ebp - 0x22c]
push eax
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x5bc]
call fcn.004e6f5e
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x230], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00434dd0
cmp dword [ebp - 0x230], 0
je 0x45e1e5
mov ecx, dword [0x57af80]
cmp ecx, dword [ebp - 0x5c4]
je 0x45e1bc
mov edx, dword [0x57af80]
push edx
call fcn.004671c0
add esp, 4
mov dword [0x57af88], eax
mov eax, dword [0x57af80]
push eax
push str.Input_Chinese_Code
push 0x543ec0
mov ecx, 0x5a622c
call fcn.004b7f30
mov ecx, dword [0x57ab64]
cmp ecx, dword [ebp - 0x5c0]
je 0x45e1e5
mov edx, dword [0x57ab64]
push edx
push 0x543ed0
push 0x543ee0
mov ecx, 0x5a622c
call fcn.004b7f30
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x298]
push ecx
mov ecx, 0x584f80
call fcn.00413820
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x5c8], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004d61e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004d61e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5bc]
call fcn.00444c30
mov eax, dword [ebp - 0x5c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00504a55
mov esp, ebp
pop ebp
ret 0x14