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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448c38
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x461068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x254], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x244]
push 0x200
push 0
push eax
mov dword [ebp - 0x258], ebx
mov byte [ebp - 0x245], 1
call fcn.00427180
add esp, 8
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00402cc0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, 0xffffffff
je 0x407904
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
lea ecx, [ecx + 0x1ff]
shr ecx, 9
test edx, edx
mov dword [ebp - 0x250], ecx
cmove eax, ecx
mov ecx, 0x640
test eax, eax
cmove eax, ecx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x24c], eax
mov eax, ebx
jb 0x40777d
mov eax, dword [ebx]
push 0x4590e4
push eax
call fcn.00429d4a
mov edi, eax
add esp, 8
test edi, edi
je 0x407904
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push 0x459ee0
call fcn.0040b710
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004073b0
xor ebx, ebx
cmp dword [ebp - 0x24c], ebx
jbe 0x4078f3
nop dword [eax]
nop dword [eax + eax]
push 0x200
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00427180
add esp, 0xc
push edi
call fcn.0042f1b8
add esp, 4
test eax, eax
jne 0x40780a
push edi
push 0x200
lea eax, [ebp - 0x244]
push 1
push eax
call fcn.0042a2f8
add esp, 0x10
push edi
call fcn.0042f1e3
add esp, 4
test eax, eax
jne 0x4078cf
lea ecx, [ebp - 0x244]
call fcn.00404610
push dword [ebp - 0x254]
lea eax, [ebp - 0x244]
push 0x200
push 1
push eax
call fcn.0042a661
add esp, 0x10
cmp eax, 0x200
jne 0x4078ad
inc word [esi + 0x12]
mov ax, word [esi + 0x12]
cmp ax, word [esi + 0xc]
jne 0x40788f
inc word [esi + 0x10]
xor eax, eax
mov word [esi + 0x12], ax
mov ax, word [esi + 0x10]
cmp ax, word [esi + 0xa]
jne 0x40788f
xor eax, eax
mov word [esi + 0x10], ax
mov ax, word [esi + 0xe]
inc ax
movzx ecx, ax
mov word [esi + 0xe], ax
cmp cx, word [esi + 8]
jbe 0x40788f
mov word [esi + 8], cx
mov byte [ebp - 0x245], 0
inc ebx
cmp ebx, dword [ebp - 0x24c]
jb 0x4077d0
push edi
call fcn.00429dd7
mov bl, byte [ebp - 0x245]
add esp, 4
jmp 0x407906
mov dword [esi + 0x14], 0xffffffff
mov eax, 0x461e1c
cmp dword [0x461e30], 8
cmovae eax, dword [0x461e1c]
push eax
push 0x459f8c
jmp 0x4078e3
mov eax, dword [ebp - 0x258]
cmp dword [eax + 0x14], 8
jb 0x4078dd
mov eax, dword [eax]
push eax
push 0x459f48
call fcn.0040b710
add esp, 8
xor al, al
mov byte [ebp - 0x245], al
push edi
call fcn.00429dd7
mov bl, byte [ebp - 0x245]
add esp, 4
jmp 0x407906
xor bl, bl
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40794c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407942
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40796a
push edx
push ecx
call fcn.00424e9e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424e8d
mov esp, ebp
pop ebp
ret
call fcn.00429c39
int3