Function at 0x100789e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bb5ed
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10248f44]
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 ebx, ecx
mov edi, dword [ebp + 8]
xor al, al
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x35], al
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test edi, edi
je 0x10078b2f
lea eax, [edi + 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.1004d8a0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x10078a7f
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push 0x1022de54
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
call fcn.10089750
add esp, 4
test eax, eax
jne 0x10078a7f
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10078acb
push eax
call fcn.10193392
add esp, 4
jmp 0x10078acb
lea eax, [edi + 0x2c]
push eax
lea ecx, [ebp - 0x50]
call fcn.1004d8a0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.10047850
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x10078acb
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10078ac1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078c2c
push edx
push ecx
call fcn.1018a765
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x10078b4d
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10078b05
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10078afb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078c2c
push edx
push ecx
call fcn.1018a765
add esp, 8
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10078b1c
push eax
call fcn.10193392
add esp, 4
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10078b2c
push ecx
call fcn.10193392
add esp, 4
mov al, byte [ebp - 0x35]
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.1018a722
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push 0x1022de54
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
call fcn.10089750
add esp, 4
test eax, eax
jne 0x10078ad1
cmp dword [esi + 0x10], eax
je 0x10078ad1
cmp dword [esi + 0x14], 0x10
jb 0x10078b81
mov esi, dword [esi]
push 0x10230b68
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.10089750
add esp, 4
test eax, eax
jne 0x10078ad1
push 0x1000
call fcn.1019ce70
mov edi, eax
add esp, 4
test edi, edi
jne 0x10078be1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10078b05
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10078afb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10078c2c
jmp 0x10078afb
cmp byte [ebx + 0x20c], 0
jne 0x10078c16
push dword [ebp - 0x2c]
push 0x1000
push 1
push edi
call fcn.101973fd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10078c16
push dword [ebp - 0x30]
push esi
push 1
push edi
call fcn.10196fc7
add esp, 0x10
test esi, esi
jne 0x10078be1
push edi
call fcn.1019be4e
add esp, 4
cmp byte [ebx + 0x20c], 0
sete byte [ebp - 0x35]
jmp 0x10078bae
call fcn.1019291f
int3