Function at 0x415020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bef72
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4eaf00]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x4eaf00]
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 0x4150a1
sub eax, edx
push eax
lea edx, [esp + 0x158]
push edx
lea ecx, [esp + 0x140]
call fcn.00404400
mov dword [esp + 0x270], edi
cmp dword [0x4f6a30], edi
jne 0x4150fc
cmp byte [0x4f6a38], 0
je 0x4150e5
mov byte [0x4f6a38], 0
call fcn.00407cd0
call fcn.00407d50
push 0x407ea0
mov dword [0x4f6a30], eax
call fcn.0047bb5c
add esp, 4
mov ecx, dword [0x4f6a30]
call fcn.004451d0
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 0x415122
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x108]
call fcn.00404400
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 0x415193
mov eax, dword [esp + 0x38]
push eax
call fcn.0045afe4
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 0x4151c1
mov ecx, dword [esp + 0x104]
push ecx
call fcn.0045afe4
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 0x415206
mov eax, dword [eax + 4]
jmp 0x415209
add eax, 4
cmp dword [esp + 0x134], esi
mov ecx, dword [esp + 0x120]
jae 0x415220
lea ecx, [esp + 0x120]
push eax
call fcn.00415750
cmp dword [esp + 0x68], esi
jb 0x415239
mov edx, dword [esp + 0x54]
push edx
call fcn.0045afe4
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 0x41527c
mov eax, dword [eax + 4]
jmp 0x41527f
add eax, 4
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040a1a0
mov byte [esp + 0x270], 0xa
cmp dword [esp + 0x4c], esi
jb 0x4152a5
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0045afe4
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 0x4153b2
mov bl, 0xb
jmp 0x4152e0
push edi
push 0x4cdcd7
lea ecx, [esp + 0x108]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], edi
mov byte [esp + 0x10c], 0
call fcn.00404400
mov byte [esp + 0x270], bl
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx + 4]
push 0xa
lea ecx, [esp + ecx + 0x70]
call fcn.004056b0
lea ecx, [esp + 0x100]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.0040e3c0
add esp, 8
cmp dword [esp + 0x114], edi
jbe 0x415371
push 0xffffffffffffffff
push 1
lea edi, [esp + 0x108]
call fcn.0040b3b0
add eax, 1
push eax
mov ecx, edi
call fcn.004033a0
mov ecx, edi
push ecx
lea esi, [esp + 0x18]
call fcn.00409ba0
xor edi, edi
mov esi, 0x10
mov byte [esp + 0x270], 0xa
cmp dword [esp + 0x118], esi
jb 0x415392
mov edx, dword [esp + 0x104]
push edx
call fcn.0045afe4
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 0x4152e0
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 0x415559
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 0x415540
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 0x415423
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
jmp 0x41542a
add eax, 4
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41544f
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 0x415458
call fcn.0047be2e
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x18], 0x10
jb 0x415465
mov ecx, dword [edi + esi + 4]
jmp 0x415469
lea ecx, [edi + esi + 4]
mov edx, dword [esp + 0x24]
push edx
call fcn.00415750
test al, al
mov esi, 0x10
sete bl
mov byte [esp + 0x270], 0xa
cmp dword [esp + 0x68], esi
jb 0x415498
mov eax, dword [esp + 0x54]
push eax
call fcn.0045afe4
add esp, 4
test bl, bl
jne 0x4154b1
add dword [esp + 0x2c], 1
add dword [esp + 0x30], 0x1c
mov ebx, dword [esp + 0x2c]
xor edi, edi
jmp 0x4153c0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x270], 7
call fcn.0040a300
lea ecx, [esp + 0xc4]
push ecx
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.0049f7e6
mov eax, dword [esp + 0x1c]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x415508
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.0045afe4
add esp, 4
cmp dword [esp + 0x134], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x41552d
mov ecx, dword [esp + 0x120]
push ecx
call fcn.0045afe4
add esp, 4
cmp dword [esp + 0x150], esi
mov dword [esp + 0x130], ebx
jmp 0x415703
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 0x415562
call fcn.0047be2e
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.00404320
mov ebx, 0x10
mov byte [esp + 0x270], 0xa
cmp dword [esp + 0x118], ebx
jb 0x4155bc
mov eax, dword [esp + 0x104]
push eax
call fcn.0045afe4
add esp, 4
mov ecx, dword [0x4f3b20]
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 0x40fa50
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 0x415640
call fcn.0040bd30
lea ecx, [esp + 0x74]
mov byte [esp + 0x270], 0xe
call fcn.00403810
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.0049f7e6
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, edi
je 0x4156d0
mov ebx, dword [esp + 0x1c]
cmp esi, ebx
je 0x4156c2
add esi, 0x18
cmp dword [esi], 0x10
jb 0x4156a7
mov edx, dword [esi - 0x14]
push edx
call fcn.0045afe4
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 0x415696
mov esi, dword [esp + 0x18]
push esi
call fcn.0045afe4
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 0x4156f5
mov ecx, dword [esp + 0x120]
push ecx
call fcn.0045afe4
add esp, 4
cmp dword [esp + 0x150], ebx
mov dword [esp + 0x130], edi
mov byte [esp + 0x120], 0
mov dword [esp + 0x134], 0xf
jb 0x415728
mov edx, dword [esp + 0x13c]
push edx
call fcn.0045afe4
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.0047b434
mov esp, ebp
pop ebp
ret 4