Function at 0x1008f580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cbb17
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x360], edi
call fcn.10070db0
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x358], 0
push ecx
push 9
mov esi, dword [eax + 0x484]
mov ecx, esi
push 0
push 0x10044dcc
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x364], eax
call dword [0x101fc4ac]
call esi
test eax, eax
jne 0x1008fb7a
lea eax, [ebp - 0x110]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1008fb7a
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0xf
mov byte [ebp - 0x34c], 0
push 2
lea eax, [ebp - 0x110]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x350]
mov dword [ebp - 0x350], 0x100446f8
call fcn.100d0d50
mov dword [ebp - 4], 1
xor eax, eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x354]
mov dword [ebp - 0x374], eax
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x354], pe_nt_image_headers32
push ecx
push eax
mov eax, dword [ebp - 0x364]
push dword [ebp - 0x358]
mov esi, dword [eax + 0x4cc]
mov ecx, esi
call dword [0x101fc4ac]
call esi
sub eax, 0
je 0x1008f727
sub eax, 0xea
je 0x1008f81f
sub eax, 0x19
jne 0x1008f6d2
mov eax, dword [ebp - 0x364]
push dword [ebp - 0x358]
mov esi, dword [eax + 0x2b4]
mov ecx, esi
call dword [0x101fc4ac]
call esi
mov edx, dword [ebp - 0x338]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x350], 0x100446f8
cmp edx, 0x10
jb 0x1008fb7a
mov ecx, dword [ebp - 0x34c]
inc edx
mov eax, ecx
mov dword [ebp - 4], 8
cmp edx, 0x1000
jb 0x1008fb70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008fb9a
jmp 0x1008fb70
lea eax, [ebp - 0x35c]
mov dword [ebp - 0x35c], 0
push eax
push 9
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x364]
push dword [ebp - 0x358]
mov esi, dword [eax + 0x484]
mov ecx, esi
call dword [0x101fc4ac]
call esi
xor al, al
mov dword [ebp - 0x368], eax
xor eax, eax
mov dword [ebp - 0x330], eax
push 0
push 0
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x370], eax
push ecx
push 0
lea ecx, [ebp - 0x334]
mov dword [ebp - 0x334], pe_nt_image_headers32
push ecx
lea ecx, [ebp - 0x310]
push ecx
push eax
mov eax, dword [ebp - 0x364]
push dword [ebp - 0x35c]
mov esi, dword [eax + 0x4d4]
mov ecx, esi
call dword [0x101fc4ac]
call esi
sub eax, 0
je 0x1008f82b
sub eax, 0xea
je 0x1008fb64
sub eax, 0x19
jne 0x1008f6d2
mov eax, dword [ebp - 0x364]
push dword [ebp - 0x35c]
mov esi, dword [eax + 0x2b4]
mov ecx, esi
call dword [0x101fc4ac]
call esi
cmp byte [ebp - 0x368], 0
jne 0x1008f6b6
mov esi, dword [edi + 0x48]
add edi, 0x48
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.10069aa0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov edi, dword [ebp - 0x360]
mov eax, dword [ebp - 0x374]
inc eax
jmp 0x1008f65a
cmp dword [ebp - 0x330], 1
jne 0x1008fab0
cmp dword [ebp - 0x334], 2
jb 0x1008fab0
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0xf
mov byte [ebp - 0x328], 0
push 2
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0x100446f8
call fcn.100d0d50
mov edi, dword [ebp - 0x318]
mov byte [ebp - 4], 3
test edi, edi
je 0x1008f8b2
cmp dword [ebp - 0x314], 0x10
lea eax, [ebp - 0x328]
push edi
cmovae eax, dword [ebp - 0x328]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov edi, dword [ebp - 0x318]
cmp edi, 1
jbe 0x1008fb95
cmp dword [ebp - 0x314], 0x10
lea eax, [ebp - 0x328]
mov esi, dword [ebp - 0x328]
cmovae eax, esi
cmp byte [eax + 1], 0x3a
jne 0x1008fa64
mov ecx, dword [ebp - 0x360]
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x3ac]
push eax
lea ecx, [ecx + 0x48]
call fcn.10076a20
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x394], xmm0
cmp byte [ecx + 0xd], 0
jne 0x1008f941
cmp dword [ecx + 0x28], 0x10
lea edx, [ecx + 0x14]
jb 0x1008f918
mov edx, dword [ecx + 0x14]
push dword [ecx + 0x24]
cmp dword [ebp - 0x314], 0x10
lea eax, [ebp - 0x328]
push edx
cmovae eax, esi
push edi
push eax
call fcn.10076b80
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x1008fa64
mov eax, dword [ebp - 0x360]
add eax, 0x48
cmp dword [eax + 4], 0x5d1745d
je 0x1008fb9f
mov ecx, dword [eax]
mov dword [ebp - 0x380], ecx
mov dword [ebp - 0x388], eax
push 0x2c
mov byte [ebp - 4], 4
mov dword [ebp - 0x384], 0
call fcn.101b44b7
mov esi, eax
add esp, 4
mov dword [ebp - 0x384], esi
mov dword [esi + 0x24], 0
lea eax, [ebp - 0x328]
mov dword [esi + 0x28], 0
cmp dword [ebp - 0x314], 0x10
mov ecx, dword [ebp - 0x318]
cmovae eax, dword [ebp - 0x328]
mov byte [ebp - 4], 5
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 0x378], eax
cmp ecx, 0x10
jae 0x1008f9d0
movups xmm0, xmmword [eax]
mov eax, 0xf
movups xmmword [esi + 0x14], xmm0
jmp 0x1008fa18
mov eax, ecx
mov ecx, closesocket
or eax, 0xf
cmp eax, 0x7fffffff
cmova eax, ecx
lea ecx, [esi + 0x14]
mov dword [ebp - 0x37c], eax
inc eax
push eax
call fcn.10073d40
mov ecx, dword [ebp - 0x36c]
inc ecx
mov dword [esi + 0x14], eax
push ecx
push dword [ebp - 0x378]
push eax
call fcn.101b6150
mov eax, dword [ebp - 0x37c]
add esp, 0xc
mov ecx, dword [ebp - 0x36c]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 0x360]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x380]
push esi
push dword [ebp - 0x390]
mov dword [esi + 0x10], 0x100446f8
lea ecx, [ecx + 0x48]
push dword [ebp - 0x394]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], 0
mov dword [ebp - 0x384], 0
call fcn.10072ed0
mov esi, dword [ebp - 0x328]
mov eax, dword [ebp - 0x314]
mov byte [ebp - 4], 1
mov dword [ebp - 0x32c], 0x100446f8
cmp eax, 0x10
jb 0x1008fab0
lea ecx, [eax + 1]
mov eax, esi
mov byte [ebp - 4], 7
cmp ecx, 0x1000
jb 0x1008faa2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008fb9a
push ecx
push esi
call fcn.101b44e7
add esp, 8
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x33c]
test edi, edi
je 0x1008fadc
cmp dword [ebp - 0x338], 0x10
lea eax, [ebp - 0x34c]
push edi
cmovae eax, dword [ebp - 0x34c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
mov edi, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x360]
lea ecx, [ebp - 0x350]
push ecx
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [eax + 0x48]
call fcn.10076a20
mov esi, dword [ebp - 0x398]
cmp byte [esi + 0xd], 0
jne 0x1008fb41
cmp dword [esi + 0x28], 0x10
lea edx, [esi + 0x14]
jb 0x1008fb10
mov edx, dword [esi + 0x14]
push dword [esi + 0x24]
cmp dword [ebp - 0x338], 0x10
lea eax, [ebp - 0x34c]
push edx
cmovae eax, dword [ebp - 0x34c]
push edi
push eax
call fcn.10076b80
shr eax, 0x1f
add esp, 0x10
test al, al
jne 0x1008fb41
mov edi, dword [ebp - 0x360]
jmp 0x1008fb4a
mov edi, dword [ebp - 0x360]
mov esi, dword [edi + 0x48]
mov eax, dword [ebp - 0x368]
mov ecx, 1
cmp esi, dword [edi + 0x48]
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x370]
inc eax
jmp 0x1008f76f
push edx
push ecx
call fcn.101b44e7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b4a00
mov esp, ebp
pop ebp
ret
call fcn.10073d10
call fcn.100ecc9c
call fcn.10073a80
int3