Function at 0x10050df7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], 0x72226312
xor ecx, ecx
mov dword [ebp - 0x10], 0x9ba5f27a
push 2
mov dword [ebp - 0xc], ecx
pop edx
jmp 0x10050e24
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x28], edx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edx
jl 0x10050e1a
mov byte [ebp - 1], cl
cmp byte [ebp - 1], cl
je 0x10050e39
push ecx
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
neg eax
push 0x53d3
sbb eax, eax
xor edx, edx
neg eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
imul ecx, eax
mov eax, dword [ebp - 8]
cmp ecx, eax
mov eax, dword [ebp - 8]
setle dl
xor ecx, ecx
cmp eax, edx
mov eax, dword [ebp - 8]
setne cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp - 8]
setl dl
xor ebx, ebx
cmp edx, eax
mov eax, dword [ebp - 8]
setl bl
xor ecx, ecx
cmp ebx, eax
setge cl
xor esi, esi
inc esi
mov dword [ebp - 0x10], ecx
push esi
push edi
push 0x789d
call fcn.1004b037
add esp, 0x10
lea ecx, [ebp - 0x3c]
push 3
call fcn.100181d6
mov dword [ebp - 8], 9
xor ebx, ebx
mov dword [ebp - 0xc], 0xb56411d7
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x14], 0x490ce61f
mov dword [ebp - 0x18], 0xffff
mov dword [ebp - 0x10], 0x9e13a3a
mov dword [ebp - 0xc], 0x17bb5c02
mov dword [ebp - 0xc], 0xfffffffb
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x14], 0x2cf1a504
mov dword [ebp - 0xc], ebx
jmp 0x10050f03
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x3c]
mov dword [eax + ecx*4], esi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x10050ef7
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [eax]
mov eax, dword [eax + 8]
imul eax, edx
cmp eax, 0xffffffff
setle cl
cmp ecx, edx
jge 0x10050f23
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 8], ebx
je 0x10050f33
cmp dword [ebp - 0xc], ebx
jne 0x10050f35
mov esi, ebx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], 1
jg 0x10050f47
cmp dword [ebp - 8], ebx
jne 0x10050f47
mov ecx, ebx
jmp 0x10050f4a
xor ecx, ecx
inc ecx
xor eax, eax
cmp ecx, 1
setne al
xor edx, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
neg ecx
cmp ecx, eax
mov eax, dword [ebp - 0x10]
setge dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [ebp - 0x3c]
setg cl
mov dword [ebp - 0xc], ecx
mov edx, dword [eax]
mov ecx, edx
mov eax, dword [ebp - 0xc]
sub ecx, eax
je 0x10050f88
test edx, edx
je 0x10050f88
xor eax, eax
inc eax
jmp 0x10050f8a
mov eax, ebx
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x10]
setne dl
xor ecx, ecx
cmp edx, eax
setl cl
mov dword [ebp - 0xc], ecx
mov ecx, 0xfff9
mov eax, dword [ebp - 0xc]
cmp ecx, eax
sbb eax, eax
xor edx, edx
neg eax
cmp esi, eax
mov eax, dword [ebp - 0x1c]
setl dl
xor ecx, ecx
cmp edx, eax
setne cl
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0xc], 1
call fcn.10018258
push edi
call fcn.100322b0
mov dword [ebp - 0x1c], 0x82a1
mov esi, eax
pop ecx
mov dword [ebp - 8], ebx
jmp 0x10050ff2
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x20], 0x69f4
inc dword [ebp - 8]
cmp dword [ebp - 8], 1
jl 0x10050fe4
mov dword [ebp - 8], ebx
jmp 0x1005100b
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x30], 8
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x10050ffd
mov eax, dword [ebp - 0x20]
xor ecx, ecx
imul eax, dword [ebp - 0x1c]
cmp eax, 7
setge cl
mov dword [ebp - 0x30], ecx
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10051037
push ebx
push 0x4b9
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret