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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x46614c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 4], ecx
push 0x10
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x53c]
push ecx
call fcn.0041f180
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.00401500
add esp, 8
push 0x4660f8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00446630
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4462c1
mov eax, 0x114
jmp 0x446616
push 2
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.0044f3e6
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044f2ee
add esp, 4
mov dword [ebp - 0xfc], eax
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0044f3e6
add esp, 0xc
mov eax, dword [ebp - 0xfc]
xor edx, edx
mov ecx, 0x1f
div ecx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
test edx, edx
je 0x44649e
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 0x1f
lea edx, [ebp - 0xf8]
push edx
call fcn.0044f134
add esp, 0x10
cmp eax, 1
je 0x44633a
jmp 0x44649e
push 0x1f
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00421ee0
add esp, 0xc
push 0x10
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.004492d8
add esp, 0xc
test eax, eax
jne 0x446397
mov ecx, dword [ebp - 0xf8]
cmp ecx, dword [ebp - 0x24]
jne 0x446397
mov edx, dword [ebp - 0xf4]
cmp edx, dword [ebp - 4]
jne 0x446397
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044ab6c
add esp, 4
xor eax, eax
jmp 0x446616
cmp dword [ebp - 0xf8], 0
jne 0x4463b2
cmp dword [ebp - 0xf4], 0
jne 0x4463b2
movsx ecx, byte [ebp + 0xc]
cmp ecx, 2
jne 0x4463ed
movzx edx, byte [ebp - 0xe0]
cmp edx, 2
jne 0x446499
movsx eax, byte [ebp + 0xc]
cmp eax, 2
jne 0x446499
mov ecx, dword [ebp - 0xf8]
cmp ecx, dword [ebp - 0x24]
jne 0x446499
mov edx, dword [ebp - 0xf4]
cmp edx, dword [ebp - 4]
jne 0x446499
mov dword [ebp - 0x100], 0xffffffe1
push 1
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0044f3e6
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xf8], edx
mov al, byte [ebp + 0xc]
mov byte [ebp - 0xe0], al
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xf4], ecx
push 0x10
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.00448ea0
add esp, 0xc
mov byte [ebp - 0xdf], 0x64
push 6
lea ecx, [ebp - 0xde]
push ecx
call fcn.00421d80
add esp, 8
push 0x1f
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.00421e20
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 0x1f
lea edx, [ebp - 0xf8]
push edx
call fcn.0044ee12
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044ab6c
add esp, 4
xor eax, eax
jmp 0x446616
jmp 0x446305
mov cl, byte [ebp + 0xc]
mov byte [ebp - 0xe0], cl
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0xf8], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0xf4], eax
mov byte [ebp - 0xdf], 0x64
push 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x18
push ecx
lea edx, [ebp - 0xf0]
push edx
call fcn.00448ea0
add esp, 0xc
push 0x1f
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00421e20
add esp, 0xc
movsx edx, byte [ebp + 0xc]
cmp edx, 2
jne 0x446533
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044f3e6
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 0x1f
lea edx, [ebp - 0xf8]
push edx
call fcn.0044ee12
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044ab6c
add esp, 4
xor eax, eax
jmp 0x446616
cmp dword [ebp - 0xfc], 0
je 0x4465b3
mov ecx, dword [ebp - 0xfc]
push ecx
call fcn.00448db8
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x44656a
mov edx, dword [ebp - 0xc]
push edx
call fcn.0044ab6c
add esp, 4
mov eax, 0x104
jmp 0x446616
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044f3e6
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0044f134
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0044ab6c
add esp, 4
push 0x4660fc
mov edx, dword [ebp + 8]
push edx
call fcn.00446630
add esp, 8
mov dword [ebp - 0xc], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0044f3e6
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 0x1f
lea edx, [ebp - 0xf8]
push edx
call fcn.0044ee12
add esp, 0x10
cmp dword [ebp - 0xfc], 0
je 0x446608
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 0xfc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0044ee12
add esp, 0x10
mov eax, dword [ebp - 0x28]
push eax
call fcn.00448cdb
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0044ab6c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044892a
mov esp, ebp
pop ebp
ret