Function at 0x58b980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
jne 0x58bb17
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x65bee0]
mov dword [edi + 0x28a8], eax
mov dword [edi + 0x28ac], ebx
mov edx, dword [0x65c028]
mov ecx, edx
lea esi, [edi + 0x33c4]
lea eax, [ecx + 2]
mov dword [ebp - 0x218], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58b9e2
sub ecx, dword [ebp - 0x218]
sar ecx, 1
cmp ecx, 0x100
jae 0x58ba0e
push edx
push 0x100
push esi
call fcn.00543349
add esp, 0xc
jmp 0x58ba2b
push 0xff
push edx
push 0x100
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov ecx, edi
call fcn.0058c3b0
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
lea esi, [edi + 0x387c]
push esi
call fcn.005433a5
add esp, 8
test eax, eax
jne 0x58ba75
push ecx
lea eax, [edi + 0x3648]
push eax
mov edx, 0x104
mov ecx, esi
call fcn.00594e30
add esp, 8
push 0
push 0
mov ecx, edi
call fcn.00593dc0
mov al, byte [0x650ce4]
cmp al, 2
je 0x58ba8d
cmp al, 3
jne 0x58bab0
push 0x180
push 0x651032
call fcn.005444f8
add esp, 8
test eax, eax
jne 0x58bab0
push 0x651032
call fcn.005445a9
add esp, 4
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58bab5
sub ecx, edx
sar ecx, 1
cmp ecx, 0x105
jae 0x58baeb
push ebx
push 0x105
push 0x651032
call fcn.00543349
add esp, 0xc
mov byte [0x650ce5], 1
jmp 0x58bbf4
push 0x104
push ebx
push 0x105
push 0x651032
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [0x65123a], ax
mov byte [0x650ce5], 1
jmp 0x58bbf4
cmp byte [0x65145e], 5
lea ecx, [edi + 0xb4]
sete byte [ebp - 0x211]
call fcn.00580310
mov dword [edi + 0x136c], 0
mov eax, dword [0x65bee8]
lea ecx, [edi + 0x270c]
mov dword [edi + 0x28a8], eax
mov dword [edi + 0x28ac], ebx
mov dword [edi + 0x28a4], 1
call fcn.00586370
mov eax, dword [edi + 0x270c]
push 0
lea ecx, [edi + 0x270c]
call dword [eax + 0x164]
mov edx, dword [0x65c02c]
mov ecx, edx
lea esi, [edi + 0x33c4]
lea eax, [ecx + 2]
mov dword [ebp - 0x218], eax
jmp 0x58bb90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58bb90
sub ecx, dword [ebp - 0x218]
sar ecx, 1
cmp ecx, 0x100
jae 0x58bbbc
push edx
push 0x100
push esi
call fcn.00543349
add esp, 0xc
jmp 0x58bbd9
push 0xff
push edx
push 0x100
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov ecx, edi
call fcn.0058c3b0
push 0
lea ecx, [edi + 0x2210]
call fcn.00577860
mov ecx, ebx
call fcn.0059cb10
mov ecx, dword [0x650c84]
mov eax, dword [ecx]
call dword [eax + 0x170]
mov ecx, dword [0x650c84]
mov esi, eax
movzx ecx, byte [ecx + 0x12e]
sub ecx, 3
cmp ecx, 0xb
ja 0x58bc1e
call fcn.0056b090
call fcn.005bd480
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x58bc50
mov dl, byte [ebp - 0x211]
mov ecx, esi
call fcn.0059cc50
push 0
push 1
mov ecx, edi
call fcn.00593dc0
cmp esi, 1
jne 0x58bc6a
mov ecx, edi
call fcn.0058c350
jmp 0x58bc6a
mov cl, byte [0x65145e]
cmp cl, 4
je 0x58bc6a
cmp cl, 5
setne al
dec al
and al, cl
mov byte [0x65145e], al
mov ecx, edi
call fcn.0058bdd0
test ebx, ebx
jne 0x58bc86
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00541b41
mov esp, ebp
pop ebp
ret 8