Function at 0x537490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d65d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
call fcn.005b97a0
test eax, eax
je 0x537776
mov ecx, dword [ebp + 8]
xor edx, edx
mov ebx, ecx
shr ebx, 4
mov eax, ebx
div dword [esi + 0xc]
mov eax, dword [esi + 8]
test eax, eax
je 0x5374fb
mov eax, dword [eax + edx*4]
test eax, eax
je 0x5374fb
cmp dword [eax + 8], ecx
je 0x5374ed
mov eax, dword [eax]
test eax, eax
jne 0x5374e0
jmp 0x5374fb
test eax, eax
je 0x5374fb
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x63094c]
mov dword [ebp - 0x18], eax
push 0x104
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00598462
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.005984b1
mov ecx, dword [0x63094c]
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x18]
push 0x104
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00598462
push eax
push 0
push 0x635850
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.005984b1
mov edx, dword [ebp - 0x14]
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x1c], edi
je 0x53775b
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00599397
push 0
push 0x1000
lea eax, [ebp - 0x38]
push 0
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0059de29
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 4
mov edx, dword [ecx]
call dword [edx + 8]
lea ecx, [ebp - 0x7c]
call fcn.0059e13a
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.0059df05
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.005993b6
mov eax, ebx
xor edx, edx
div dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 4], 1
test eax, eax
mov ebx, edx
mov dword [ebp + 0xc], ebx
je 0x53761e
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x53761e
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
cmp ecx, edx
je 0x537616
mov eax, dword [eax]
test eax, eax
jne 0x537604
jmp 0x53761e
test eax, eax
jne 0x5376dd
mov eax, dword [esi + 8]
test eax, eax
jne 0x537657
mov ebx, dword [esi + 0xc]
lea edi, [ebx*4]
push edi
call fcn.00596900
mov edx, eax
mov ecx, edi
mov dword [esi + 8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x53768e
mov eax, dword [esi + 0x1c]
push 0x10
lea ecx, [esi + 0x18]
push eax
push ecx
call fcn.00591ec5
mov ecx, dword [esi + 0x1c]
mov edx, ecx
shl edx, 4
dec ecx
test ecx, ecx
lea eax, [edx + eax - 0xc]
jl 0x53768e
mov edx, dword [esi + 0x14]
dec ecx
mov dword [eax], edx
mov dword [esi + 0x14], eax
sub eax, 0x10
test ecx, ecx
jge 0x53767e
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
lea edx, [eax + 8]
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
mov dword [edx], 0
xor ecx, ecx
add edx, 4
mov edi, ecx
dec ecx
test edi, edi
jne 0x5376a8
lea edx, [eax + 0xc]
xor ecx, ecx
mov dword [edx], edi
add edx, 4
mov edi, ecx
dec ecx
test edi, edi
jne 0x5376b9
mov edx, dword [ebp + 8]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov ecx, dword [esi + 8]
mov edi, dword [ebp - 0x1c]
mov edx, dword [ecx + ebx*4]
mov dword [eax], edx
mov ecx, dword [esi + 8]
mov dword [ecx + ebx*4], eax
lea ecx, [ebp - 0x14]
mov dword [eax + 0xc], edi
mov byte [ebp - 4], 0
call fcn.00598032
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00598032
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00598032
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00598032
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8