Function at 0x410060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46bf44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov eax, dword [0x480630]
push ebx
xor eax, ebp
push esi
mov dword [esp + 0x158], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [0x4800d8]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
xor edi, edi
push edx
mov ecx, esi
mov dword [esp + 0x170], edi
call fcn.0040f970
push 0x13c
mov dword [esp + 0x24], edi
call fcn.004563ae
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x16c], 1
je 0x4100e8
mov ecx, eax
call fcn.004498d0
mov dword [esp + 0x1c], eax
jmp 0x4100ec
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x1c], edi
mov byte [esp + 0x16c], 0
jne 0x410129
mov eax, dword [esp + 0x18]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410122
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410122
push esi
call fcn.00457c3f
add esp, 4
xor eax, eax
jmp 0x410503
mov edx, dword [0x4800d8]
mov dword [esp + 0x10], edx
push 0x104
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 2
call fcn.004042d0
test eax, eax
je 0x41015f
mov eax, dword [esp + 0x10]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
call fcn.00404410
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
mov dword [edi - 8], eax
push 0x5c
lea ecx, [esp + 0x14]
mov byte [eax + edi], 0
call fcn.00404b00
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c], 0x5c
call fcn.00403ab0
mov eax, dword [esi + 0x44]
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00403ab0
push str..cfg
push str..cfg
call ebx
push eax
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
push ebx
push edi
push str.Create_Temp_Cfg_From__s_to__s
push 0x80
call fcn.004047f0
add esp, 0x10
call fcn.004178f0
mov edx, dword [eax]
push 0
push 0
push 1
push ebx
push edi
mov ecx, eax
call dword [edx + 0x1c]
mov edi, dword [esp + 0x1c]
xor ecx, ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], ecx
push ebx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x4000
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 1
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 4]
test eax, eax
jne 0x410468
mov ecx, edi
call fcn.00449770
test eax, eax
je 0x410461
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 3
call dword [edx + 0x4c]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x410461
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
mov ecx, 0x105
lea eax, [esp + 0x50]
nop
cmp byte [eax], 0
je 0x4102bb
inc eax
dec ecx
jne 0x4102b0
jmp 0x4102e1
test ecx, ecx
je 0x4102e1
mov edx, dword [esp + 0x28]
mov eax, 0x105
sub eax, ecx
push edx
mov ecx, 0x105
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x58]
push edx
call fcn.004084d0
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x50]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4102e8
sub eax, edi
mov edi, dword [edx]
push eax
lea eax, [esp + 0x54]
push eax
push 1
mov ecx, edx
call dword [edi + 0x2c]
test eax, eax
je 0x41030f
cmp eax, 0x11012
jne 0x410454
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41044c
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x1e8]
push eax
push 2
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0xa4]
push eax
push 3
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0xa8]
push eax
push 4
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0xb8]
push eax
push 5
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x1ec]
push eax
push 6
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x1f0]
push eax
push 7
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0xb0]
push eax
push 8
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x1f4]
push eax
push 9
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x1f8]
push eax
push 0xa
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x1fc]
push eax
push 0xb
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x200]
push eax
push 0xc
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x204]
push eax
push 0xd
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x208]
push eax
push 0xe
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0xb4]
push eax
push 0xf
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x20c]
push eax
push 0x10
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0xac]
push eax
push 0x11
call dword [edx + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
lea eax, [esi + 0x210]
push eax
push 0x12
call dword [edx + 0x24]
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
call dword [edx + 8]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
call fcn.004178f0
mov edx, dword [eax]
push 0
push 0
push ebx
mov ecx, eax
call dword [edx + 0x20]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4104b6
cmp dword [esi + 0x1e8], 2
jne 0x4104b6
mov ecx, dword [esi + 0x204]
xor eax, eax
cmp eax, ecx
sbb esi, esi
lea ecx, [esp + 0x10]
neg esi
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
mov eax, esi
jmp 0x410503
mov eax, dword [0x4800dc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x4104db
add ebx, 0xfffffff4
push ebx
call edi
test eax, eax
jg 0x4104db
push ebx
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4104ff
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x4104ff
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret 8