Function at 0x40b270
Capabilities:
Get common file path
Print debug messages
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x432832
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [0x442184]
push ebp
push esi
push edi
mov dword [esp + 0x130], eax
lea eax, [esp + 0x2c]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x2c]
push ecx
call ebp
call fcn.00425d0d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x144]
push esi
mov dword [esp + 0x140], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebp
mov eax, dword [esp + 0x148]
push eax
push 0x4357f4
push esi
lea ecx, [esp + 0x24]
push str._s_s_s
push ecx
call fcn.00401ad0
mov ebp, dword [esp + 0x2c]
add esp, 0x10
add ebp, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push ebp
call fcn.004016c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x140], 0
call fcn.004019b0
mov ecx, eax
call fcn.0040b060
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], eax
call fcn.004049d0
push str.SChinese
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 2
call fcn.004053e0
mov eax, dword [esp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
mov byte [esp + 0x144], 3
call fcn.004016c0
add esp, 4
lea edx, [esp + 0x18]
add eax, 0x10
push edx
mov ecx, edi
mov dword [esi], eax
call fcn.00409e30
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 4
call fcn.00401a20
mov eax, dword [esp + 0x14]
mov byte [esp + 0x13c], 3
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b404
mov eax, dword [esp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.004016c0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x140], 3
call fcn.004019b0
mov ecx, eax
call fcn.00409cd0
mov dword [edi + 0x210], 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x13c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b435
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 0
mov dword [esp + 0x1c], 0x434f44
call fcn.00404b30
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40b47b
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b472
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.00425c71
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40b4a8
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b49f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.00425c71
add esp, 4
mov dword [esp + 0x13c], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b4cb
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x130]
or eax, 0xffffffff
call fcn.00417188
pop edi
pop esi
pop ebp
add esp, 0x134
ret 8