Function at 0x40b5e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c86bd
mov eax, dword fs:[0]
push eax
sub esp, 0x3ec
mov eax, dword [0x5053c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3f0], ecx
push 0
call fcn.004599ce
add esp, 4
call fcn.0043e850
push 0x54b3b0
push 0x96
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call fcn.00426c90
lea eax, [ebp - 0x319]
mov dword [ebp - 0x318], eax
push 0
push 0
lea ecx, [ebp - 0x2c0]
call fcn.0040ac20
mov dword [ebp - 4], 0
mov cl, byte [0x54b449]
mov byte [ebp - 0x3f4], cl
cmp byte [ebp - 0x3f4], 0
je 0x40b66e
jmp 0x40b6ae
mov dword [0x5074e8], 0
mov dword [0x5074ec], 0
push 0x4d7a78
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x320], eax
mov edx, dword [ebp - 0x320]
push edx
push 0x4d7a78
lea ecx, [ebp - 0x2c0]
call fcn.0040acd0
jmp 0x40b6f2
push str.Lang_chn.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5074e8], eax
mov dword [0x5074ec], 1
push 0x4d7a64
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
push eax
push 0x4d7a64
lea ecx, [ebp - 0x2c0]
call fcn.0040acd0
lea ecx, [ebp - 0x32d]
mov dword [ebp - 0x32c], ecx
push 0
push 0
lea ecx, [ebp - 0x2dc]
call fcn.0040ac20
mov byte [ebp - 4], 1
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea edx, [ebp - 0x11b]
push edx
call fcn.00480360
add esp, 0xc
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b755
mov ecx, 0x5074fc
call fcn.0040c1d0
jmp 0x40b7ff
lea ecx, [ebp - 0x11c]
push ecx
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x350], eax
mov edx, dword [ebp - 0x350]
push edx
lea eax, [ebp - 0x11c]
push eax
mov ecx, 0x5074fc
call fcn.0040acd0
mov byte [ebp - 0x351], 0x5c
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x351]
push ecx
mov ecx, 0x5074fc
call fcn.0040c4c0
mov dword [ebp - 0x2e0], eax
mov edx, dword [ebp - 0x2e0]
add edx, 1
push edx
push 0
lea eax, [ebp - 0x304]
push eax
mov ecx, 0x5074fc
call fcn.0040c290
mov dword [ebp - 0x3f8], eax
mov ecx, dword [ebp - 0x3f8]
mov dword [ebp - 0x358], ecx
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push 0
mov edx, dword [ebp - 0x358]
push edx
mov ecx, 0x5074fc
call fcn.0040adc0
mov byte [ebp - 4], 1
push 0
push 1
lea ecx, [ebp - 0x304]
call fcn.0040ac20
push 0xffffffffffffffff
push 0
push 0x5074fc
mov ecx, 0x507518
call fcn.0040adc0
push str.bpa_
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x35c]
push eax
push str.bpa_
mov ecx, 0x507518
call fcn.0040c740
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, 0x507518
call fcn.0040c5f0
push str.def.txt
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x360], eax
mov edx, dword [ebp - 0x360]
push edx
push str.def.txt
mov ecx, 0x507518
call fcn.0040c740
push 0xffffffffffffffff
push 0
push 0x5074fc
mov ecx, 0x507550
call fcn.0040adc0
push str.bpa_
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x364], eax
mov eax, dword [ebp - 0x364]
push eax
push str.bpa_
mov ecx, 0x507550
call fcn.0040c740
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, 0x507550
call fcn.0040c5f0
push str.err.txt
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x368], eax
mov edx, dword [ebp - 0x368]
push edx
push str.err.txt
mov ecx, 0x507550
call fcn.0040c740
push 0xffffffffffffffff
push 0
push 0x5074fc
mov ecx, 0x507534
call fcn.0040adc0
push str.bpa_
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp - 0x36c]
push eax
push str.bpa_
mov ecx, 0x507534
call fcn.0040c740
push str.tokens.txt
call fcn.0047fdb0
add esp, 4
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
push ecx
push str.tokens.txt
mov ecx, 0x507534
call fcn.0040c740
mov dword [ebp - 0x2e4], 1
jmp 0x40b973
mov edx, dword [ebp - 0x2e4]
add edx, 1
mov dword [ebp - 0x2e4], edx
cmp dword [ebp - 0x2e4], 0x100
jge 0x40b9db
lea ecx, [ebp - 0x2e8]
call fcn.004032a0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2e4]
push eax
push str..COM_d
lea ecx, [ebp - 0x2e8]
push ecx
call fcn.00402d70
add esp, 0xc
mov edx, dword [ebp - 0x2e8]
push edx
mov eax, dword [ebp - 0x2e4]
sub eax, 1
shl eax, 4
add eax, str..COM1
push eax
call fcn.00480570
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e8]
call fcn.00402970
jmp 0x40b964
push 1
push 0x4d7a30
call fcn.0040bb40
add esp, 8
test eax, eax
jne 0x40ba2c
mov dword [ebp - 0x308], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2dc]
call fcn.0040ac20
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c0]
call fcn.0040ac20
mov eax, dword [ebp - 0x308]
jmp 0x40bb1d
cmp dword [0x5074f0], 0
jne 0x40ba86
push 2
push 0x4d7a2c
call fcn.0040bb40
add esp, 8
test eax, eax
jne 0x40ba86
mov dword [ebp - 0x30c], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2dc]
call fcn.0040ac20
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c0]
call fcn.0040ac20
mov eax, dword [ebp - 0x30c]
jmp 0x40bb1d
push 0
lea ecx, [ebp - 0x2a4]
call fcn.004258a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3f0]
lea edx, [ebp - 0x2a4]
mov dword [ecx + 0x20], edx
lea ecx, [ebp - 0x2a4]
call fcn.00441fbf
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x310], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1d8]
call fcn.00402f50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.00452ad0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a4]
call fcn.00441785
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x2dc]
call fcn.0040ac20
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c0]
call fcn.0040ac20
mov eax, dword [ebp - 0x310]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480296
mov esp, ebp
pop ebp
ret