Function at 0x10027670
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100a0e08
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov esi, ecx
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100276bd
mov eax, 0x80070057
jmp 0x1002788f
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x28]
push ecx
call fcn.10028330
mov ebx, dword [esp + 0x18]
mov edx, dword [edi + 0x18]
mov eax, dword [edi]
mov dword [esp + 0x2c], edx
test ebx, ebx
je 0x100276e4
cmp ebx, eax
je 0x100276e9
call fcn.10057548
mov ebp, dword [esp + 0x1c]
cmp ebp, dword [esp + 0x2c]
jne 0x1002780e
push 0xffffffffffffffff
xor ebp, ebp
lea eax, [esi + 0xc]
push ebp
xor ecx, ecx
push eax
lea eax, [esp + 0x54]
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], cx
call fcn.10002850
push 1
push 0x100c4db8
lea eax, [esp + 0x50]
mov dword [esp + 0x7c], ebp
call fcn.100024a0
mov ebx, dword [esp + 0x7c]
mov edx, dword [esi]
mov ecx, dword [edx + 0x1c]
lea eax, [esp + 0x34]
push eax
push 3
push ebx
push esi
call ecx
mov eax, 8
cmp word [esp + 0x34], ax
je 0x1002776d
cmp dword [esp + 0x60], eax
jb 0x10027763
mov edx, dword [esp + 0x4c]
push edx
call fcn.10057104
add esp, 4
mov eax, 0x80004005
jmp 0x1002788f
mov edx, dword [esp + 0x3c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10027776
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x50]
call fcn.100024a0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x100277aa
lea eax, [esp + 0x4c]
push ebp
push ebp
push 3
push ebp
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100277d9
call fcn.10002c20
lea esi, [esp + 0x48]
mov edi, eax
call fcn.10013040
mov eax, edi
jmp 0x1002788f
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
call fcn.10027f30
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.10028330
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
lea esi, [esp + 0x48]
call fcn.10013040
test ebx, ebx
jne 0x1002784c
call fcn.10057548
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x10027823
call fcn.10057548
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10027850
call fcn.10002c20
jmp 0x1002788f
mov eax, dword [ebx]
jmp 0x10027819
mov dword [esp + 0x24], 0
test ebx, ebx
jne 0x100278b0
call fcn.10057548
cmp ebp, dword [ebx + 0x18]
jne 0x1002786b
call fcn.10057548
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10027845
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1005710f
add esp, 0x64
ret 0x14
mov ebx, dword [ebx]
jmp 0x10027861