Function at 0x46b890
Capabilities:
Access peb ldr_data
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b13d
mov eax, dword fs:[0]
push eax
sub esp, 0x5f4
mov eax, dword [0x578750]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5e8], ecx
mov eax, dword [0x57c250]
mov dword [ebp - 0x18], eax
push 0
push 0
push 6
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x5d4]
call fcn.0041ce30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401b80
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401d90
lea ecx, [ebp - 0x5d4]
call fcn.004e5de5
add eax, 0x34
mov dword [ebp - 0x5ec], eax
mov eax, dword [ebp - 0x5ec]
mov ecx, dword [eax]
or ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x5ec]
mov dword [edx], ecx
lea ecx, [ebp - 0x5d4]
call fcn.004e5de5
add eax, 0x34
mov dword [ebp - 0x5f0], eax
mov eax, dword [ebp - 0x5f0]
mov ecx, dword [eax]
and ecx, 0xfffffffd
mov edx, dword [ebp - 0x5f0]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.00401b80
mov byte [ebp - 4], 2
push 0x54a340
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x54a35c
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x54a364
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x54a384
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x54a38c
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x54a3ac
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x54a3b4
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x54a3ec
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
lea ecx, [ebp - 0x10]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5d4]
call fcn.004e5de5
mov dword [eax + 0xc], esi
lea ecx, [ebp - 0x14]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5d4]
call fcn.004e5de5
mov dword [eax + 0x30], esi
mov ecx, dword [ebp + 8]
call fcn.00401c40
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp + 8]
call fcn.004d6200
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x238], 3
jl 0x46bb92
push 0x54a3f4
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*2 - 6]
push edx
call fcn.00507b80
add esp, 8
test eax, eax
je 0x46baa8
push 0x54a3fc
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + eax*2 - 6]
push edx
call fcn.00507b80
add esp, 8
test eax, eax
jne 0x46bafa
mov eax, dword [ebp - 0x238]
sub eax, 3
push eax
lea ecx, [ebp - 0x5d8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041dfd0
mov dword [ebp - 0x5f4], eax
mov edx, dword [ebp - 0x5f4]
mov dword [ebp - 0x5f8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x5f8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00413820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5d8]
call fcn.004d61e0
jmp 0x46bb92
cmp dword [ebp - 0x238], 4
jl 0x46bb92
push 0x54a404
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx*2 - 8]
push eax
call fcn.00507b80
add esp, 8
test eax, eax
je 0x46bb45
push 0x54a410
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx*2 - 8]
push eax
call fcn.00507b80
add esp, 8
test eax, eax
jne 0x46bb92
mov ecx, dword [ebp - 0x238]
sub ecx, 4
push ecx
lea edx, [ebp - 0x5dc]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041dfd0
mov dword [ebp - 0x5fc], eax
mov eax, dword [ebp - 0x5fc]
mov dword [ebp - 0x600], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x600]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00413820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5dc]
call fcn.004d61e0
push 0x104
mov ecx, dword [ebp + 8]
call fcn.00401c20
mov esi, eax
lea ecx, [ebp - 0x5d4]
call fcn.004e5de5
mov dword [eax + 0x1c], esi
mov ecx, 0x584f80
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5d4]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
push 0x584f80
lea ecx, [ebp - 0x2b0]
call fcn.00413820
lea edx, [ebp - 0x234]
push edx
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x5d4]
call fcn.004e6f5e
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x23c], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00434dd0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2b0]
push ecx
mov ecx, 0x584f80
call fcn.00413820
cmp dword [ebp - 0x23c], 0
jne 0x46bc75
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x5e0], 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 - 0x5d4]
call fcn.0041de40
mov eax, dword [ebp - 0x5e0]
jmp 0x46bced
lea ecx, [ebp - 0x5d4]
call fcn.004e5de5
mov ecx, dword [ebp - 0x5e8]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x58], edx
mov eax, dword [0x57c250]
cmp eax, dword [ebp - 0x18]
je 0x46bcb1
mov ecx, dword [0x57c250]
push ecx
push str.Output_Chinese_Code
push 0x54a444
mov ecx, 0x5a622c
call fcn.004b7f30
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x5e4], 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 - 0x5d4]
call fcn.0041de40
mov eax, dword [ebp - 0x5e4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00504a55
mov esp, ebp
pop ebp
ret 0x14