Function at 0x436230
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4aba9b
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.004a0d60
mov eax, dword [0x4c0080]
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebp
push edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 0x101c], ebp
cmp eax, ebp
je 0x436302
lea ecx, [esp + 0x14]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x14]
test edx, edx
jne 0x436294
xor ebx, ebx
jmp 0x4362a1
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x4362b0
cmp ebx, dword [edi - 4]
jle 0x4362cf
lea ecx, [esp + 0x10]
call fcn.00404ac0
push ebx
lea ecx, [esp + 0x14]
call fcn.00404720
cmp eax, ebp
je 0x4363a8
mov edi, dword [esp + 0x10]
lea eax, [ebx + ebx]
lea ecx, [ebx + ebx + 2]
cmp ecx, eax
jb 0x4362f2
mov ecx, eax
lea esi, [esp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov dword [edi - 8], ebx
mov ecx, dword [esp + 0x10]
mov word [eax + ecx], bp
jmp 0x4363a8
call fcn.00436460
mov esi, eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esi]
cmp eax, ebx
je 0x4363ac
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, ebp
mov edx, dword [0x4c0084]
jge 0x43632e
lea edi, [eax - 0xc]
cmp edi, edx
jne 0x436333
cmp dword [ebx - 0xc], ebp
jge 0x43636c
mov esi, dword [ebx - 8]
lea ecx, [esp + 0x10]
push esi
call fcn.00404a20
test eax, eax
je 0x4363a8
mov eax, dword [esp + 0x10]
lea edi, [esi + esi]
push edi
lea edx, [esi + esi + 2]
push ebx
push edx
push eax
call fcn.004039f0
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [ecx - 8], esi
mov edx, dword [esp + 0x10]
mov word [edi + edx], bp
jmp 0x4363a8
add eax, 0xfffffff4
cmp eax, edx
je 0x436398
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43638e
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0049c000
add esp, 4
mov ecx, dword [0x4c0080]
mov dword [esp + 0x10], ecx
mov eax, dword [esi]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
mov esi, dword [esp + 0x1024]
lea ecx, [eax - 0xc]
cmp edx, ebp
jl 0x4363c8
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x436411
mov edx, dword [0x4c0080]
mov ebp, eax
test eax, eax
mov dword [esi], edx
jne 0x4363da
xor edi, edi
jmp 0x4363e3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
push edi
mov ecx, esi
call fcn.00404a20
test eax, eax
je 0x436411
mov ecx, dword [esi]
lea ebx, [edi + edi]
push ebx
lea eax, [edi + edi + 2]
push ebp
push eax
push ecx
call fcn.004039f0
mov edx, dword [esi]
add esp, 0x10
mov dword [edx - 8], edi
mov eax, dword [esi]
mov word [eax + ebx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x436440
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x436440
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
mov ecx, dword [esp + 0x1014]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1010
ret 8