Function at 0x10021a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100740f4
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x100f8008]
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 - 0x2fc], edx
mov dword [ebp - 0x2f8], ecx
mov ecx, 0x101052d5
call fcn.1005cb05
push str.E70F1AA0_AB8B_11CF_8CA3_00805F48A192
lea ecx, [ebp - 0x2d8]
call fcn.10017700
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c0]
push str.9D60A9E0_337A_11D0_BD88_0000C082E69A
call fcn.10017700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
push str.8D5F1830_C273_11CF_95C8_00805F48A192
call fcn.10017700
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
push str.3972523D_2AF1_11D1_B655_00805F3642CC
call fcn.10017700
mov dword [ebp - 4], 3
xor ebx, ebx
mov edx, dword [ebp - 0x2fc]
lea edi, [ebp - 0x2d8]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x2f4], ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10021b1b
mov eax, dword [edi]
cmp dword [edx + 0x14], 8
mov esi, edx
jb 0x10021b25
mov esi, dword [edx]
cmp ecx, dword [edi + 0x10]
jne 0x10021b56
mov edx, ecx
test ecx, ecx
je 0x10021b8b
sub esi, eax
mov cx, word [eax + esi]
cmp cx, word [eax]
jne 0x10021b4a
add eax, 2
sub edx, 1
jne 0x10021b32
mov bl, 1
jmp 0x10021de5
mov ecx, dword [ebp - 0x2f4]
mov edx, dword [ebp - 0x2fc]
inc ebx
add edi, 0x18
cmp ebx, 4
jl 0x10021b11
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x10021b92
mov bl, 1
jmp 0x10021de5
mov byte [ebp - 4], 4
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov byte [ebp - 4], 7
xor eax, eax
push 0xb
push str.mswsock.dll
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.10017a50
mov byte [ebp - 4], 8
mov byte [ebp - 4], 9
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 0xc
xor eax, eax
push 0xa
push str.rsvpsp.dll
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.10017a50
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov byte [ebp - 4], 0x11
xor eax, eax
push 9
push str.msafd.dll
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.10017a50
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 0x16
xor eax, eax
push 0xa
push str.ws2_64.dll
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.10017a50
mov byte [ebp - 4], 0x17
xor esi, esi
mov ebx, dword [ebp - 0x2f8]
lea edi, [ebp - 0x278]
nop dword [eax]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0
mov byte [ebp - 4], 0x1b
xor eax, eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 7
lea edx, [ecx + 2]
mov word [ebp - 0x314], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021d22
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x314]
call fcn.10017a50
mov byte [ebp - 4], 0x1c
lea edx, [ebp - 0x314]
push edi
lea ecx, [ebp - 0x2f0]
call fcn.10036870
add esp, 4
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x314]
call fcn.10017980
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1e
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebp - 0x2e0]
jne 0x10021da6
cmp dword [ebp - 0x2dc], 8
lea edx, [ebp - 0x2f0]
mov ecx, ebx
cmovae edx, dword [ebp - 0x2f0]
cmp dword [ebx + 0x14], 8
jb 0x10021d9d
mov ecx, dword [ebx]
call fcn.100349e0
test al, al
jne 0x10021e1f
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x2f0]
call fcn.10017980
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x17
inc esi
add edi, 0x18
cmp esi, 4
jb 0x10021ce0
xor bl, bl
mov byte [ebp - 4], 3
lea eax, [ebp - 0x278]
push fcn.100176a0
push 4
push 0x18
push eax
call fcn.1005adf3
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2d8]
push fcn.100176a0
push 4
push 0x18
push eax
call fcn.1005adf3
mov al, bl
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.1005a96e
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x2f0]
call fcn.10017980
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x17
mov bl, 1
jmp 0x10021dcc