Function at 0x410ac0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a4b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x274
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0
mov esi, ecx
mov dword [ebp - 0x4c], 0xf
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x64], esi
mov byte [ebp - 0x60], 0
lea eax, [ebp - 0x178]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410b48
sub ecx, edx
lea eax, [ebp - 0x178]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00406290
push 0xb
push str.config.ini
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0041ab20
mov byte [ebp - 0x30], 0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x410b83
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.00416820
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040ff70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x11], al
cmp ecx, 8
jb 0x410bdc
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410bd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410c19
push ecx
push edx
call fcn.00438d0e
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 0x10
jb 0x410c29
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410c1f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410c1f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00438d0e
add esp, 8
cmp byte [ebp - 0x11], 0
je 0x410db0
lea eax, [ebp - 0x280]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410c63
sub ecx, edx
lea eax, [ebp - 0x280]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406290
push 0xb
push str.config.ini
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0041ab20
cmp dword [eax + 0x14], 0x10
jb 0x410c97
mov eax, dword [eax]
sub esp, 0xc
lea ecx, [ebp - 0x130]
push eax
call fcn.004130a0
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x134], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x410d07
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410cfd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410cfd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00438d0e
add esp, 8
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x130]
push 0xa
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
add ecx, dword [eax + 4]
mov byte [ebp - 0x2c], 0
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x130]
call fcn.00416170
add esp, 4
lea ecx, [ebp - 0x120]
call fcn.0040cdb0
test eax, eax
jne 0x410d6c
push eax
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x130]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
xorps xmm0, xmm0
lea ecx, [ebp - 0x130]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x60]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [esi + 0x10], xmm0
call fcn.00409940
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0xc]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret