Function at 0x415360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bbac2
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4e6f00]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x4e6f00]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x154]
push ecx
push 0x104
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 0xf
xor edi, edi
lea eax, [esp + 0x154]
mov dword [esp + 0x150], ebx
mov dword [esp + 0x14c], edi
mov byte [esp + 0x13c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4153e1
sub eax, edx
push eax
lea edx, [esp + 0x158]
push edx
lea ecx, [esp + 0x140]
call fcn.004043c0
mov dword [esp + 0x270], edi
cmp dword [0x4f2a30], edi
jne 0x41543c
cmp byte [0x4f2a38], 0
je 0x415425
mov byte [0x4f2a38], 0
call fcn.00407d10
call fcn.00407ca0
push 0x407e70
mov dword [0x4f2a30], eax
call fcn.0047868c
add esp, 4
mov ecx, dword [0x4f2a30]
call fcn.00445420
mov ecx, eax
mov dword [esp + 0x118], ebx
mov dword [esp + 0x114], edi
mov byte [esp + 0x104], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x415462
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x108]
call fcn.004043c0
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x38]
push str.localconfig_
push ecx
mov byte [esp + 0x27c], 1
call fcn.0040d910
add esp, 0xc
push str..txt
push eax
lea edx, [esp + 0x124]
push edx
mov byte [esp + 0x27c], 2
call fcn.0040d7a0
add esp, 0xc
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x4154d3
mov eax, dword [esp + 0x38]
push eax
call fcn.00457af4
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
mov byte [esp + 0x270], 5
cmp dword [esp + 0x118], esi
jb 0x415501
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00457af4
add esp, 4
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x120], edi
mov byte [esp + 0x110], 0
call fcn.0040d860
add esp, 0xc
mov byte [esp + 0x270], 6
cmp dword [eax + 0x18], esi
jb 0x415546
mov eax, dword [eax + 4]
jmp 0x415549
add eax, 4
cmp dword [esp + 0x134], esi
mov ecx, dword [esp + 0x120]
jae 0x415560
lea ecx, [esp + 0x120]
push eax
call fcn.00415a90
cmp dword [esp + 0x68], esi
jb 0x415579
mov edx, dword [esp + 0x54]
push edx
call fcn.00457af4
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x27c], 7
call fcn.0040d860
add esp, 0xc
mov byte [esp + 0x270], 8
cmp dword [eax + 0x18], esi
jb 0x4155bc
mov eax, dword [eax + 4]
jmp 0x4155bf
add eax, 4
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040a180
mov byte [esp + 0x270], 0xa
cmp dword [esp + 0x4c], esi
jb 0x4155e5
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00457af4
add esp, 4
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x74]
lea eax, [esp + eax + 0x6c]
and cl, 6
neg cl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
sbb ecx, ecx
not ecx
test eax, ecx
je 0x4156f2
mov bl, 0xb
jmp 0x415620
push edi
push 0x4c9beb
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], edi
mov byte [esp + 0x10c], 0
call fcn.004043c0
mov byte [esp + 0x270], bl
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx + 4]
push 0xa
lea ecx, [esp + ecx + 0x70]
call fcn.00405690
lea ecx, [esp + 0x100]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040e3c0
add esp, 8
cmp dword [esp + 0x114], edi
jbe 0x4156b1
push 0xffffffffffffffff
push 1
lea edi, [esp + 0x108]
call fcn.0040b390
add eax, 1
push eax
mov ecx, edi
call fcn.00403390
mov ecx, edi
push ecx
lea esi, [esp + 0x18]
call fcn.00409bc0
xor edi, edi
mov esi, 0x10
mov byte [esp + 0x270], 0xa
cmp dword [esp + 0x118], esi
jb 0x4156d2
mov edx, dword [esp + 0x104]
push edx
call fcn.00457af4
add esp, 4
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 4]
mov ecx, dword [esp + eax + 0x74]
lea eax, [esp + eax + 0x6c]
and cl, 6
neg cl
sbb ecx, ecx
not ecx
test eax, ecx
jne 0x415620
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edi
lea esp, [esp]
mov esi, dword [esp + 0x18]
cmp esi, edi
je 0x415899
mov edi, dword [esp + 0x1c]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x415880
mov edi, dword [esp + 0x30]
lea eax, [edi + esi]
push eax
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.0040d860
add esp, 0xc
mov byte [esp + 0x270], 0xc
cmp dword [eax + 0x18], 0x10
jb 0x415763
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
jmp 0x41576a
add eax, 4
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41578f
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x415798
call fcn.0047895e
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x18], 0x10
jb 0x4157a5
mov ecx, dword [edi + esi + 4]
jmp 0x4157a9
lea ecx, [edi + esi + 4]
mov edx, dword [esp + 0x24]
push edx
call fcn.00415a90
test al, al
mov esi, 0x10
sete bl
mov byte [esp + 0x270], 0xa
cmp dword [esp + 0x68], esi
jb 0x4157d8
mov eax, dword [esp + 0x54]
push eax
call fcn.00457af4
add esp, 4
test bl, bl
jne 0x4157f1
add dword [esp + 0x2c], 1
add dword [esp + 0x30], 0x1c
mov ebx, dword [esp + 0x2c]
xor edi, edi
jmp 0x415700
lea ecx, [esp + 0xc4]
mov byte [esp + 0x270], 7
call fcn.0040a2e0
lea ecx, [esp + 0xc4]
push ecx
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.0049c316
mov eax, dword [esp + 0x1c]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x415848
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
push edx
call fcn.0040ecb0
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.00457af4
add esp, 4
cmp dword [esp + 0x134], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x41586d
mov ecx, dword [esp + 0x120]
push ecx
call fcn.00457af4
add esp, 4
cmp dword [esp + 0x150], esi
mov dword [esp + 0x130], ebx
jmp 0x415a43
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
jne 0x4158a2
call fcn.0047895e
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x108]
push edx
call fcn.0040d860
add esp, 0xc
push 0xffffffffffffffff
mov byte [esp + 0x274], 0xd
mov ecx, dword [esp + 0x2c]
push edi
push eax
add ecx, 0x194
call fcn.004042e0
mov ebx, 0x10
mov byte [esp + 0x270], 0xa
cmp dword [esp + 0x118], ebx
jb 0x4158fc
mov eax, dword [esp + 0x104]
push eax
call fcn.00457af4
add esp, 4
mov ecx, dword [0x4efb20]
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], edi
mov byte [esp + 0x104], 0
mov esi, dword [ecx + 0x10]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push 1
mov ecx, esi
call eax
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0x18]
push method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_52
push 0x40fdd0
mov ecx, esi
call eax
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xc4]
mov dword [esp + 0x28], ecx
mov dword [esp + eax + 0x6c], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x74]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x74], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x270], 0xf
cmp byte [esp + 0xbc], 0
je 0x415980
call fcn.0040bd90
lea ecx, [esp + 0x74]
mov byte [esp + 0x270], 0xe
call fcn.004037f0
mov byte [esp + 0x270], 7
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xc4]
mov dword [esp + eax + 0x6c], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push ecx
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.0049c316
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, edi
je 0x415a10
mov ebx, dword [esp + 0x1c]
cmp esi, ebx
je 0x415a02
add esi, 0x18
cmp dword [esi], 0x10
jb 0x4159e7
mov edx, dword [esi - 0x14]
push edx
call fcn.00457af4
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], edi
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, ebx
jne 0x4159d6
mov esi, dword [esp + 0x18]
push esi
call fcn.00457af4
add esp, 4
mov ebx, 0x10
cmp dword [esp + 0x134], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
jb 0x415a35
mov ecx, dword [esp + 0x120]
push ecx
call fcn.00457af4
add esp, 4
cmp dword [esp + 0x150], ebx
mov dword [esp + 0x130], edi
mov byte [esp + 0x120], 0
mov dword [esp + 0x134], 0xf
jb 0x415a68
mov edx, dword [esp + 0x13c]
push edx
call fcn.00457af4
add esp, 4
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00477f65
mov esp, ebp
pop ebp
ret 4