Function at 0x10007e00
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10040a37
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x594], edi
jne 0x10007e32
xor eax, eax
jmp 0x1000839d
mov esi, dword [esp + 0x190]
mov eax, dword [ebx + 0x284]
cmp esi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
jne 0x10007e5e
xor eax, eax
jmp 0x1000839d
mov ecx, ebx
call fcn.10006720
mov eax, dword [esp + 0x194]
xor ecx, ecx
cmp eax, edi
sete cl
mov dword [ebx + 0x6c0], ecx
lea ecx, [esp + 0x4c]
call fcn.1000a400
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x18c], edi
call fcn.1000a4b0
push edi
push 0x10000080
push 3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 1
push 0x80000000
push esi
mov dword [esp + 0x40], eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10007ed7
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
push esi
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000832c
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x6c]
push 0x11c
push ecx
push ebp
mov dword [ebx + 0x6bc], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000832c
cmp dword [esp + 0x18], 0x11c
je 0x10007f17
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008331
lea edi, [ebx + 0x6c4]
mov ecx, 0x3f
lea esi, [esp + 0x7c]
mov edx, dword [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x17c]
lea ecx, [esp + 0x18]
mov dword [ebx + 0x6a8], edx
push 0
movsw word es:[edi], word [esi]
push ecx
lea edx, [esp + 0x40]
push 0x14
push edx
push ebp
mov dword [ebx + 0x5a0], eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000832c
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x10007f73
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008331
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, eax
shl ecx, 3
push ecx
call fcn.100355a6
lea esi, [ebx + 0x270]
mov edi, eax
add esp, 4
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.10011f80
add eax, dword [esp + 0x74]
lea edx, [eax*4 + 0x28]
push edx
call fcn.100355a6
add esp, 4
mov dword [esp + 0x20], eax
test edi, edi
je 0x10008331
mov eax, dword [esp + 0x48]
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000832c
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [eax + eax*2]
shl edx, 4
add edx, eax
mov eax, edi
shl edx, 3
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000832c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x1c]
push ecx
lea edi, [ebx + 0x264]
push esi
push edx
push eax
mov ecx, edi
call fcn.10011bc0
test eax, eax
je 0x10008331
mov ecx, edi
call fcn.10011f80
mov ecx, edi
mov esi, eax
call fcn.10012040
sub esi, eax
test esi, esi
mov dword [ebx + 0x59c], esi
jle 0x100080ae
mov ecx, esi
shl ecx, 4
add ecx, 4
push ecx
call fcn.100355a6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x188], 1
je 0x1000807a
push fcn.1000a1d0
push fcn.1000a1b0
lea edi, [eax + 4]
push esi
push 0x10
push edi
mov dword [eax], esi
call fcn.1003587b
mov eax, edi
jmp 0x1000807c
xor eax, eax
test eax, eax
mov byte [esp + 0x188], 0
mov dword [ebx + 0x598], eax
jne 0x100080ae
call fcn.100120a0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x188], 0xffffffff
call fcn.1000a440
xor eax, eax
jmp 0x1000839d
mov edx, dword [esp + 0x44]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000832c
mov dword [esp + 0x10], 0
lea esi, [ebx + 0x294]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x38]
push 8
push ecx
push ebp
call edi
test eax, eax
je 0x1000832c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000816d
mov edx, dword [esp + 0x34]
push eax
push esi
mov dword [esi - 4], edx
call fcn.100040c0
add esp, 8
test eax, eax
je 0x10008331
push esi
call fcn.10004120
add esp, 4
test eax, eax
je 0x10008331
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push eax
push ebp
call edi
push esi
mov edi, eax
call fcn.10004140
add esp, 4
test edi, edi
je 0x1000832c
mov eax, dword [esp + 0x30]
cmp word [esp + 0x68], 3
mov dword [esi + 4], eax
jb 0x1000816d
mov eax, dword [esp + 0x10]
add esi, 0xc
inc eax
cmp eax, 0x40
mov dword [esp + 0x10], eax
jl 0x100080d5
mov ecx, dword [esp + 0x40]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000832c
mov eax, dword [esp + 0x70]
xor edi, edi
test eax, eax
jle 0x1000822a
push 0x2c
call fcn.100355a6
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x188], 2
je 0x100081b9
mov ecx, eax
call fcn.1000eb10
mov esi, eax
jmp 0x100081bb
xor esi, esi
test esi, esi
mov byte [esp + 0x188], 0
mov dword [esp + 0x28], esi
je 0x1000832c
inc edi
lea eax, [ebx + 0x264]
push edi
push eax
mov ecx, esi
call fcn.1000eb70
test eax, eax
je 0x10008331
mov edx, dword [esp + 0x20]
mov ecx, esi
push edx
push ebp
call fcn.1000ee20
test eax, eax
je 0x10008331
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 0
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], ecx
mov dword [eax + 0x20], esi
mov edx, dword [esi + 0x20]
mov dword [edx + 0x24], esi
mov eax, dword [esp + 0x70]
cmp edi, eax
jl 0x10008194
mov dword [ebx + 0x28c], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [ebx + 8]
push ebp
push ebx
mov dword [esp + 0x20], ecx
call fcn.1000a860
test eax, eax
je 0x10008331
mov edi, dword [esp + 0x190]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x70]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x100082a8
mov ecx, dword [esp + 0x3c]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000832c
mov ecx, dword [esp + 0x14]
call fcn.1000ac90
test eax, eax
je 0x10008331
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x100082ba
mov dword [ebx + 0x6c0], 1
mov eax, dword [ebx + 0x6c0]
test eax, eax
je 0x10008310
mov ecx, ebx
call fcn.10009be0
mov ebx, dword [ebx + 0x2c]
test ebx, ebx
je 0x100082d9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
call fcn.1000b010
mov edi, 0x1004c128
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x2c], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10008363
lea eax, [ebx + 0x134]
mov ecx, ebx
push eax
call fcn.10009940
test eax, eax
je 0x10008331
mov dword [esp + 0x2c], 1
jmp 0x10008363
call fcn.100120a0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10008355
push esi
lea ecx, [esp + 0x50]
call fcn.1000a5b0
cmp dword [ebx + 0x6bc], esi
jne 0x10008355
mov dword [ebx + 0x6bc], 0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10008363
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10008374
push eax
call fcn.100350d1
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10008385
push eax
call fcn.100350d1
add esp, 4
lea ecx, [esp + 0x4c]
mov dword [esp + 0x188], 0xffffffff
call fcn.1000a440
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x17c
ret 8