Function at 0x50d6a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a65e1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
push 0x1001
mov ecx, eax
call fcn.00439720
push dword [ebp - 0x34]
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x50d7b0
cmp eax, 0x1000
ja 0x50d7b0
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.00439720
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
lea edi, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, edx
cmovae edi, edx
lea ebx, [ecx + eax*2]
mov ecx, dword [ebp - 0x34]
sub ebx, edi
lea eax, [ebp - 0x28]
sar ebx, 1
cmp dword [ebp - 0x14], 8
cmovae eax, edx
sub edi, eax
mov eax, dword [ebp - 0x30]
sub eax, ecx
sar edi, 1
sar eax, 1
push eax
push ecx
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00433ff0
mov ebx, dword [ebp - 0x78]
jmp 0x50d7bf
push 2
push 0x5bfea8
lea ecx, [ebp - 0x28]
call fcn.0041bc10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x50d811
mov eax, dword [ebp - 0x2c]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x50d7f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50d94b
push edx
push ecx
call fcn.00539070
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00516b20
add esp, 8
test eax, eax
je 0x50d862
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041bc10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [0x633de8], 0
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0043b140
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push 0
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.0043b450
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x50d8e8
mov ecx, eax
call fcn.0041bb70
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.0041ba60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0041ba60
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push ebx
cmovae ecx, dword [ebp - 0x28]
push ecx
call fcn.00432ec0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0041ba60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0041ba60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005395e6
mov esp, ebp
pop ebp
ret
call fcn.00555b08
int3