Function at 0x10020810
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x1003e620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, eax
imul ecx, ecx, 0x3a2
push ebx
push esi
push edi
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x2a4], ecx
cmp eax, ecx
ja 0x10020b0b
mov ebx, dword [ebp - 0x2b0]
mov edi, dword [ebp - 0x2ac]
mov esi, dword [ebp - 0x2b0]
jmp 0x10020876
mov edx, dword [ebp - 0x2a8]
cmp eax, 0x2d
ja 0x10020955
je 0x100209cd
cmp eax, 0x26
je 0x10020894
cmp eax, 0x2c
je 0x100208ce
jmp 0x100209af
mov eax, 0xcb
lea esp, [esp]
cmp eax, 0xcb
je 0x100208b8
cmp eax, 0x86ce
jne 0x100208c2
cmp cl, byte [ebx - 0x34]
jp 0x10020899
jmp 0x10020b0b
mov dword [ebp - 0x2a0], 0
add eax, 0x8603
cmp eax, 0x10c06
jbe 0x100208a0
xor ebx, ebx
mov dword [ebp - 0x2ac], ebx
cmp edx, ebx
jne 0x10020904
push str.evsubfumiaaw
push 0x1003455f
push ebx
push 0x1003455f
push 0x100345f0
push 2
call fcn.100021f0
mov ecx, dword [ebp - 0x2a4]
add esp, 0x18
jmp 0x1002098d
mov eax, dword [edx]
push ebx
push 0xc5
push eax
call fcn.10008bb0
push ebx
push ebx
push 0xea
push ebx
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], edx
call fcn.1000e570
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ecx]
push edx
push 0xb8
push 0
push 0
mov esi, eax
call fcn.1000bd40
mov ecx, dword [ebp - 0x2a4]
add esp, 0x2c
xor edi, edi
add esi, eax
adc edi, edx
jmp 0x100209a9
cmp eax, 0x2024
je 0x10020969
cmp eax, 0x401c
je 0x10020b0b
jmp 0x100209af
mov eax, dword [ebp - 0x2b4]
cmp eax, edi
jb 0x1002098d
ja 0x1002097d
cmp dword [ebp - 0x2b8], esi
jbe 0x1002098d
mov ebx, dword [ebp - 0x2b8]
sub ebx, esi
sbb eax, edi
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x298], 0x2024
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x298]
mov edx, dword [ebp + 8]
imul edx, edx, 0xba
add eax, edx
mov dword [ebp - 0x298], eax
cmp eax, ecx
jbe 0x10020870
jmp 0x10020b0b
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20
call fcn.10020650
add esp, 0xc
mov dword [ebp - 0x2ac], edx
cmp al, 1
jne 0x10020b04
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, 0x2b
mov dword [ebp - 0x298], eax
lea esp, [esp]
cmp eax, 0x2b
je 0x10020a96
cmp eax, 0xf7
je 0x10020a20
cmp eax, 0x1c3
je 0x10020b0b
jmp 0x10020aee
push 0xd3
push 0
call fcn.10002b10
add esp, 8
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10020a31
lea edi, [ebp - 0x8c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10020a41
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x294]
push ecx
push 0x104
call ebx
mov ecx, dword [ebp - 0x2a8]
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x2a4]
push eax
push 0x4e
push ecx
mov dword [ebp - 0x2a4], reloc.WS2_32.dll_bind
call fcn.1000fb70
add esp, 0x10
mov byte [ebp - 0x2a0], al
jmp 0x10020ae8
push 0
push 0x2a
push 0
push 0
call fcn.10003080
lea edx, [ebp - 0x8c]
add esp, 0x10
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10020ab0
lea eax, [ebp - 0xc]
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10020ac0
lea edi, [ebp - 0x8c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10020ad0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x298]
add eax, 0xcc
mov dword [ebp - 0x298], eax
cmp eax, 0x28f
jb 0x10020a00
mov byte [ebp - 0x2a0], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2a0]
mov edx, dword [ebp - 0x29c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027670
mov esp, ebp
pop ebp
ret