Function at 0x10001790
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esi + 4], ebx
call ebp
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ecx
lea edx, [esp + 0x20]
push 0x800
push edx
push eax
call ebx
test eax, eax
je 0x100019ab
mov edi, str.Standard_Jet_DB
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x20]
push str.Standard_Jet_DB
push ecx
call fcn.1000a2a0
add esp, 0xc
test eax, eax
jne 0x1000193f
lea edx, [esp + 0x18]
push 2
push edx
mov ecx, esi
call fcn.100015d0
mov al, byte [esp + 0x2c]
cmp al, 1
jne 0x100018af
mov eax, dword [esi]
push 0
push 0
push 0x2000
push eax
call ebp
cmp eax, 0x2000
jne 0x100019ab
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x800
push edx
push eax
call ebx
test eax, eax
je 0x100019ab
push 3
push 0x800
lea ecx, [esp + 0x20]
push 2
push ecx
mov ecx, esi
call fcn.10001730
cmp eax, 0x800
jne 0x100019ab
cmp word [esp + 0x18], 0x102
jne 0x100019ab
cmp word [esp + 0x1a], 0xfc1
jae 0x100019ab
pop edi
mov dword [esp + 0xc], 3
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
test al, al
jne 0x100019ab
mov edx, dword [esi]
push 0
push 0
push 0x1000
push edx
call ebp
cmp eax, 0x1000
jne 0x100019ab
mov edx, dword [esi]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x800
push ecx
push edx
call ebx
test eax, eax
je 0x100019ab
push 2
push 0x800
lea eax, [esp + 0x20]
push 2
push eax
mov ecx, esi
call fcn.10001730
cmp eax, 0x800
jne 0x100019ab
cmp word [esp + 0x18], 0x102
jne 0x100019ab
cmp word [esp + 0x1a], 0x4356
jne 0x100019ab
pop edi
mov dword [esp + 0xc], 2
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, esi
call fcn.100015d0
mov edx, dword [esi]
push 0
push 0
push 0x1000
push edx
call ebp
cmp eax, 0x1000
jne 0x100019ab
mov edx, dword [esi]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x20]
push 0x800
push ecx
push edx
call ebx
test eax, eax
je 0x100019ab
push 1
push 0x800
lea eax, [esp + 0x20]
push 2
push eax
mov ecx, esi
call fcn.10001730
cmp eax, 0x800
jne 0x100019ab
cmp word [esp + 0x18], 5
jne 0x100019ab
cmp dword [esp + 0x1c], 2
je 0x10001b31
mov ecx, dword [esi]
push 0
push 0
push 0
push ecx
call ebp
xor ebx, ebx
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push eax
push edx
lea eax, [esp + 0x20]
push 0x800
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001a7e
push 2
push 0x800
lea edx, [esp + 0x20]
push ebx
push edx
mov ecx, esi
call fcn.10001730
cmp eax, 0x800
jne 0x10001a17
cmp word [esp + 0x18], 0x102
jne 0x10001a17
cmp word [esp + 0x1a], 0x4356
je 0x10001928
test bl, 1
jne 0x10001a51
mov eax, ebx
push 3
shr eax, 1
push 0x800
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.10001730
cmp eax, 0x800
jne 0x10001a51
cmp word [esp + 0x18], 0x102
jne 0x10001a51
cmp word [esp + 0x1a], 0xfc1
jb 0x10001898
push 1
push 0x800
lea edx, [esp + 0x20]
push ebx
push edx
mov ecx, esi
call fcn.10001730
cmp eax, 0x800
jne 0x10001a7e
cmp word [esp + 0x18], 5
jne 0x10001a7e
cmp dword [esp + 0x1c], ebx
je 0x10001b31
inc ebx
cmp ebx, 0x7d0
jb 0x100019b8
mov eax, dword [esi + 0x148]
test eax, eax
je 0x10001b39
mov eax, dword [esi]
push 0
push 0
push 0
push eax
mov dword [esi + 0x148], 0
call ebp
xor ebx, ebx
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push 0x800
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001b19
mov ax, word [esp + 0x18]
mov cx, word [esp + 0x1a]
cmp ax, 0x102
jne 0x10001af5
cmp cx, 0x4356
je 0x10001928
test bl, 1
jne 0x10001b0d
cmp ax, 0x102
jne 0x10001b0d
cmp cx, 0xfc1
jb 0x10001898
jmp 0x10001b19
cmp ax, 5
jne 0x10001b19
cmp dword [esp + 0x1c], ebx
je 0x10001b31
inc ebx
cmp ebx, 0x7d0
jb 0x10001ab0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret