Function at 0x40d0fe
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
and dword [ebp - 4], 0
lea eax, [ebp - 0x214]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0
push 0x427860
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
push 0x8321
push dword [ebp + 8]
call fcn.0041b2bd
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d168
push eax
call fcn.0041b9a8
pop ecx
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40d16f
xor eax, eax
jmp 0x40d3e0
push ebx
push esi
call fcn.0040d04f
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
push 4
pop ebx
push ebx
push 0x42b52c
push edi
call esi
mov eax, dword [0x42b52c]
test eax, eax
je 0x40d19b
push eax
push dword [0x42b518]
push edi
call esi
cmp dword [0x42b510], 0
je 0x40d1bf
push ebx
push 0x42b520
push edi
call esi
mov eax, dword [0x42b520]
test eax, eax
je 0x40d1cb
push eax
push dword [0x42b510]
jmp 0x40d1c8
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
cmp dword [0x42b514], 0
je 0x40d1ef
push ebx
push 0x42b524
push edi
call esi
mov eax, dword [0x42b524]
test eax, eax
je 0x40d1fb
push eax
push dword [0x42b514]
jmp 0x40d1f8
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
mov eax, dword [0x42b538]
test eax, eax
je 0x40d226
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push 0x42b50c
push edi
mov dword [ebp + 8], eax
call esi
mov eax, dword [0x42b50c]
test eax, eax
je 0x40d236
push eax
push dword [ebp + 8]
jmp 0x40d233
and dword [0x42b50c], 0
push ebx
push 0x42b50c
push edi
call esi
and dword [ebp - 4], 0
cmp dword [0x42d928], 0
je 0x40d27c
call fcn.0040cf93
test eax, eax
mov dword [ebp - 8], eax
je 0x40d27c
push eax
call fcn.0041c080
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x40d27c
inc dword [ebp - 4]
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call esi
push dword [ebp - 8]
call fcn.0041b254
pop ecx
jmp 0x40d284
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
and dword [ebp + 8], 0
cmp dword [0x42e550], 0
jle 0x40d33f
mov dword [ebp - 0xc], 0x42e528
mov eax, dword [ebp - 0xc]
push dword [eax]
lea eax, [ebp - 0x110]
push dword [ebp + 8]
push eax
call fcn.0040c6e1
and dword [ebp - 4], 0
add esp, 0xc
test eax, eax
mov dword [ebp - 8], eax
je 0x40d31a
push eax
call fcn.0041c080
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x40d2df
inc dword [ebp - 4]
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
push dword [ebp - 4]
push dword [ebp - 8]
jmp 0x40d2e4
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
push dword [ebp - 8]
call fcn.0041b254
lea eax, [ebp - 0x110]
push eax
call fcn.0041c080
pop ecx
mov dword [ebp - 4], eax
test eax, eax
pop ecx
je 0x40d322
inc dword [ebp - 4]
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x110]
jmp 0x40d326
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
push ebx
lea eax, [ebp - 4]
push eax
push edi
call esi
inc dword [ebp + 8]
add dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
cmp eax, dword [0x42e550]
jl 0x40d29c
and dword [ebp - 4], 0
push 0xa
pop eax
cmp dword [ebp + 8], eax
jge 0x40d366
sub eax, dword [ebp + 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
dec dword [ebp + 8]
jne 0x40d351
push 0x42cc40
push 0x42d994
call fcn.0041bb30
push 0x42d240
push 0x42dba8
call fcn.0041bb30
add esp, 0x10
push 0x1110
push 0x42d460
push edi
call esi
mov eax, dword [0x42b544]
test eax, eax
je 0x40d3c8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebp + 8], eax
je 0x40d3c8
cmp dword [0x42b590], 0
je 0x40d3c8
push ebx
push 0x42b590
push edi
call esi
push dword [0x42b590]
push dword [ebp + 8]
jmp 0x40d3d1
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
push 1
pop eax
pop esi
pop ebx
pop edi
leave
ret