Function at 0x1010e270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10285e39
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x10314008]
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 - 0xec], ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x1010e6f0
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1010e6f0
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1010e2dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1010e6f0
mov eax, dword [ebp - 0x28]
xor esi, esi
add esi, edi
mov ecx, ebx
adc eax, 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0xf8]
push eax
push 0
push 0
push 0
call fcn.1010b210
test al, al
je 0x1010e6f0
lea ecx, [ebp - 0x6c]
call fcn.1006fff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.1006fff0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.1006fff0
mov byte [ebp - 4], 2
mov dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.1010d1d0
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1006bb20
call fcn.1006fff0
mov byte [ebp - 4], 4
mov edx, ecx
lea ecx, [ebp - 0x6c]
call fcn.1010dbd0
lea ecx, [ebp - 0x1c]
call fcn.1006ff60
mov edi, eax
mov dword [ebp - 0xf4], edi
mov byte [ebp - 4], 3
call fcn.1006ff70
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x54]
call fcn.1006ff70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.1006ff70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1006ff70
cmp dword [ebp - 0x28], 0
ja 0x1010e3b5
jb 0x1010e6f0
cmp esi, edi
jb 0x1010e6f0
push ecx
lea ecx, [ebp - 0x44]
call fcn.1006bb20
call fcn.1006fff0
mov dword [ebp - 4], 8
lea eax, [ebp - 0xe5]
push eax
push edi
mov byte [ebp - 0xe5], 0
call fcn.100a4850
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], 0
call fcn.100706b0
lea ecx, [ebp - 0x24]
push ecx
push edi
mov eax, dword [eax]
mov ecx, ebx
push eax
call fcn.1010b0d0
test al, al
je 0x1010e6db
cmp dword [ebp - 0x24], edi
jne 0x1010e6db
lea ecx, [ebp - 0x94]
call fcn.1010d160
mov byte [ebp - 4], 9
lea eax, [ebp - 0x94]
push eax
lea edx, [ebp - 0xf0]
mov dword [ebp - 0xf0], 0
lea ecx, [ebp - 0x44]
call fcn.1010dde0
add esp, 4
test al, al
jne 0x1010e458
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
call fcn.1010efb0
jmp 0x1010e6dd
lea ecx, [ebp - 0xbc]
call fcn.1010d160
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xbc]
call fcn.1010d1d0
lea edx, [ebp - 0xbc]
lea ecx, [ebp - 0x94]
call fcn.101114b0
test al, al
je 0x1010e53b
lea ecx, [ebp - 0xe4]
call fcn.1010d160
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe4]
call fcn.1010d390
lea edx, [ebp - 0xe4]
lea ecx, [ebp - 0x94]
call fcn.101114b0
test al, al
je 0x1010e52c
lea ecx, [ebp - 0x6c]
call fcn.1010d160
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x6c]
call fcn.1010d550
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x94]
call fcn.101114b0
test al, al
je 0x1010e520
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x6c]
call fcn.1010efb0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe4]
call fcn.1010efb0
xor bl, bl
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xbc]
call fcn.1010efb0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x94]
call fcn.1010efb0
jmp 0x1010e6dd
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x6c]
call fcn.1010efb0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe4]
call fcn.1010efb0
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x7c]
call fcn.101114b0
test al, al
jne 0x1010e4fb
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x98]
jne 0x1010e4fb
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x94]
push eax
add ecx, 0x24
call fcn.1010f020
cmp esi, edi
jne 0x1010e57b
cmp dword [ebp - 0x28], 0
jne 0x1010e57b
mov bl, 1
jmp 0x1010e4fd
mov eax, dword [ebx]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x1010e4fb
cmp dword [eax], 0xffffffff
je 0x1010e4fb
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push 4
lea ecx, [ebp - 0x38]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010e4fb
cmp dword [ebp - 0x24], 4
jne 0x1010e4fb
sub esi, dword [ebp - 0xf4]
mov edi, dword [ebp - 0x38]
cmp edi, esi
ja 0x1010e4fb
push ecx
lea ecx, [ebp - 0x34]
call fcn.1006bb20
call fcn.1006fff0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xe5]
push eax
push edi
mov byte [ebp - 0xe5], 0
call fcn.100a4850
lea ecx, [ebp - 0x34]
call fcn.100706b0
mov esi, eax
mov ecx, ebx
lea eax, [ebp - 0x24]
push eax
push edi
push dword [esi]
call fcn.1010b0d0
test al, al
je 0x1010e6c8
cmp dword [ebp - 0x24], edi
jne 0x1010e6c8
lea ecx, [ebp - 0x7c]
call fcn.100706a0
mov edx, dword [eax]
call fcn.10070690
cmp edx, dword [eax]
je 0x1010e6c8
cmp byte [edx], 0
jne 0x1010e6c8
lea ecx, [ebp - 0x34]
call fcn.1006ff60
test al, 7
jne 0x1010e6c8
call fcn.100706a0
mov edx, eax
call fcn.10070690
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x1010e6a6
lea ecx, [ebp - 0x88]
call fcn.1006ff60
cmp eax, 0x10
jne 0x1010e6c8
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x34]
call fcn.1006ff60
mov ecx, dword [esi]
mov edx, eax
call fcn.1010cea0
add esp, 4
lea ecx, [ebp - 0x88]
xor edx, edx
call fcn.100706a0
mov esi, dword [eax]
mov al, byte [esi + edx]
cmp al, byte [ebp + edx - 0x20]
jne 0x1010e6c8
inc edx
cmp edx, 0x10
jb 0x1010e697
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x34]
push eax
call fcn.1010e7d0
mov bl, al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
call fcn.1006ff70
jmp 0x1010e4fd
xor bl, bl
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x34]
call fcn.1006ff70
jmp 0x1010e4fd
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1006ff70
mov al, bl
jmp 0x1010e6f2
xor al, al
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.1025b3e6
mov esp, ebp
pop ebp
ret 4