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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2cbc
call fcn.0041fe20
mov eax, dword [0x4a6cd8]
push ebx
inc eax
cmp eax, 0x30
push esi
push edi
mov dword [0x4a6cd8], eax
jge 0x42bfbc
mov edi, dword [ebp + 0xc]
xor eax, eax
lea esi, [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
call fcn.004112f0
mov eax, 0x2000
mov ecx, esi
call fcn.00411340
test al, al
je 0x42bfe3
lea edx, [esp + 0x6a8]
push edx
mov bl, 1
push 0x104
mov byte [esp + 0x15], 1
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x294]
push ecx
push 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
lea edx, [esp + 0x2ac0]
push edx
lea eax, [esp + 0x28bc]
push eax
lea ecx, [esp + 0x4a8]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2a0]
push eax
call fcn.00415140
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x84]
push edx
call fcn.00412a21
lea eax, [esp + 0x4a8]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.004129f3
add esp, 0x10
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
jmp 0x410f74
mov bl, byte [esp + 0xf]
cmp bl, 1
jne 0x411130
mov al, byte [esp + 0x2c]
test al, 3
jne 0x42c02f
test al, 4
jne 0x42c013
lea edx, [esp + 0x8b8]
push edx
lea eax, [esp + 0x24]
push eax
mov eax, 0xfff
call fcn.00410e10
test al, al
je 0x411130
inc dword [esp + 0x10]
xor esi, esi
xor edi, edi
jmp 0x410fc0
movzx ebx, word [esp + esi*2 + 0x8b8]
push ebx
call fcn.0041487f
add esp, 4
test eax, eax
je 0x410fe6
push ebx
call fcn.00414856
add esp, 4
test eax, eax
jne 0x41115f
cmp word [esp + esi*2 + 0x8b8], 0
je 0x41101d
jmp 0x411000
mov ax, word [esp + esi*2 + 0x8b8]
mov word [esp + edi*2 + 0x8b8], ax
inc esi
inc edi
cmp word [esp + esi*2 + 0x8b8], 0
jne 0x411000
xor ecx, ecx
lea eax, [esp + 0x8b8]
mov word [esp + edi*2 + 0x8b8], cx
call fcn.00411180
lea edx, [esp + 0x8b8]
push edx
test al, al
je 0x42c0b6
call fcn.00412665
add esp, 4
test eax, eax
je 0x411090
lea esi, [eax - 1]
test esi, esi
jl 0x411086
jmp 0x411060
movzx edi, word [esp + esi*2 + 0x8b8]
push edi
call fcn.0041487f
add esp, 4
test eax, eax
je 0x411086
push edi
call fcn.00414856
add esp, 4
test eax, eax
jne 0x42c04b
xor eax, eax
mov word [esp + esi*2 + 0x8ba], ax
lea ecx, [esp + 0x8b8]
push ecx
xor bl, bl
call fcn.00412665
add esp, 4
cmp eax, 2
jle 0x4110c9
mov esi, eax
mov dx, word [esp + esi*2 + 0x8b4]
and dx, 0x7f
movzx eax, dx
push eax
call fcn.00414856
add esp, 4
test eax, eax
jne 0x411165
cmp byte [esp + 0xe], 1
je 0x42c06c
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x8c4]
push ecx
mov ecx, esi
call fcn.00411200
cmp eax, 3
jne 0x42c082
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x8bc]
push eax
push ecx
call fcn.00411240
cmp bl, 1
je 0x42c0ac
mov byte [esp + 0xe], 0
cmp byte [esp + 0xd], 1
je 0x410f70
lea esi, [esp + 0x20]
call fcn.004112f0
lea eax, [esp + 0x6a8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
call fcn.004112f0
dec dword [0x4a6cd8]
mov al, byte [esp + 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
inc esi
jmp 0x410fc0
cmp word [esp + esi*2 + 0x8b6], 0x5f
jne 0x4110c9
jmp 0x42c059
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
push str.include_depth_exceeded.__Make_sure_there_are_no_recursive_includes
push ecx
push edx
push eax
call fcn.0043a3a5
dec dword [0x4a6cd8]
xor al, al
jmp 0x411156
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push str.Error_opening_the_file
push edx
push eax
push ecx
call fcn.0043a3a5
lea esi, [esp + 0x20]
call fcn.004112f0
dec dword [0x4a6cd8]
xor al, al
jmp 0x411156
push 0xfff
lea eax, [esp + 0x8bc]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0043938c
jmp 0x410fa8
push 0xfff
lea ecx, [esp + 0x8bc]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00447333
jmp 0x410fa8
sub esi, 1
jns 0x411060
jmp 0x411086
lea esi, [esp + esi*2 + 0x8b6]
xor ecx, ecx
mov word [esi], cx
mov bl, 1
jmp 0x4110c9
mov eax, dword [ebp + 8]
lea edx, [esp + 0x8b8]
push edx
push eax
call fcn.0043a168
jmp 0x411117
sub eax, 0
je 0x42c0a2
sub eax, 2
je 0x411101
sub eax, 2
jne 0x411117
mov byte [esp + 0xf], al
jmp 0x411117
mov byte [esp + 0xd], 0
jmp 0x411117
mov byte [esp + 0xe], 1
jmp 0x411125
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push str.Unterminated_string
push eax
push ecx
push edx
call fcn.0043a3a5
mov byte [esp + 0xd], 0
jmp 0x411130