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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64fcab
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x128
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
jl 0x4e16ab
cmp eax, dword [esi + 0x18]
jge 0x4e16ab
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4e16ab
lea eax, [eax + eax*4]
push 0x69a9d0
shl eax, 6
mov dword [esp + 0x18], eax
lea eax, [eax + ecx + 0x40]
push eax
call dword [fcn.0065f1b8]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4e16ab
push ebp
call fcn.00476080
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x18], ebx
jne 0x4e10aa
push ebp
call dword [fcn.0065f1c0]
add esp, 4
jmp 0x4e16ab
jle 0x4e16ab
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4e10d0
cmp dword [esi + 0x28], ebx
jge 0x4e10f4
test eax, eax
je 0x4e10d0
push eax
call fcn.00643cfc
add esp, 4
mov dword [esi + 0x20], 0
lea edi, [ebx + 0x400]
mov dword [esi + 0x28], 0
push edi
call fcn.00643b70
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x4e16ab
mov dword [esi + 0x28], edi
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x20]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
push ebp
call dword [fcn.0065f1d4]
mov eax, dword [esi + 0x20]
push ebp
push 1
push ebx
push eax
call dword [fcn.0065f1bc]
add esp, 0x1c
cmp eax, 1
push ebp
je 0x4e113a
call dword [fcn.0065f1c0]
add esp, 4
jmp 0x4e16ab
call dword [fcn.0065f1c0]
xor edi, edi
add esp, 4
xor eax, eax
cmp ebx, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
mov dword [esi + 0x70], edi
jle 0x4e1167
mov ecx, dword [esi + 0x20]
cmp byte [ecx + eax], 0xa
jne 0x4e1162
inc dword [esi + 0x70]
inc eax
cmp eax, ebx
jl 0x4e1159
mov ecx, dword [esi + 0x70]
cmp ecx, edi
jle 0x4e16ab
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x4e118e
cmp dword [esi + 0x74], ecx
jge 0x4e11bd
cmp eax, edi
je 0x4e118e
push eax
call fcn.00643cfc
add esp, 4
mov dword [esi + 0x6c], edi
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x74], edi
add ecx, 0x12c
shl ecx, 5
push ecx
call fcn.00643b70
add esp, 4
cmp eax, edi
mov dword [esi + 0x6c], eax
je 0x4e16ab
mov edx, dword [esi + 0x70]
add edx, 0x12c
mov dword [esi + 0x74], edx
mov ecx, dword [esi + 0x74]
mov edi, dword [esi + 0x6c]
shl ecx, 5
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + eax + 0x3e]
cmp eax, 4
ja case.0x4e11e7.0
jmp dword [eax*4 + 0x4e16c8]
mov dword [esp + 0x1c], 0xa
jmp 0x4e121e
mov dword [esp + 0x1c], 0x64
jmp 0x4e121e
mov dword [esp + 0x1c], 0x3e8
jmp 0x4e121e
mov dword [esp + 0x1c], 0x2710
jmp 0x4e121e
mov dword [esp + 0x1c], 1
mov ecx, dword [esi + 0x20]
xor eax, eax
test ebx, ebx
mov dword [esp + 0x34], ecx
jle 0x4e1486
xor ebp, ebp
mov edx, dword [esi + 0x70]
mov edi, dword [esp + 0x10]
cmp edi, edx
jge 0x4e1486
cmp dword [esp + 0x28], edx
jge 0x4e1486
mov edx, eax
cmp eax, ebx
mov dword [esp + 0x2c], edx
jge 0x4e1271
cmp byte [ecx + edx], 0xa
je 0x4e1265
inc edx
cmp edx, ebx
jl 0x4e1254
mov dword [esp + 0x2c], edx
jmp 0x4e1271
cmp edx, ebx
mov dword [esp + 0x2c], edx
jge 0x4e1271
mov byte [ecx + edx], 0
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
add edx, 0x18
mov dword [esp + 0x24], 0
mov edi, 1
mov dword [esp + 0x30], edx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
movsx eax, word [ecx + eax + 0x12]
cmp eax, 3
ja case.default.0x4e129e
jmp dword [eax*4 + 0x4e16dc]
push edi
lea edx, [esp + 0x3c]
push 0x69cca8
push edx
jmp 0x4e12df
push edi
push 0x6a0950
jmp 0x4e12da
push edi
lea ecx, [esp + 0x3c]
push 0x6a094c
push ecx
jmp 0x4e12df
push edi
lea edx, [esp + 0x3c]
push 0x69cc68
push edx
jmp 0x4e12df
push edi
push 0x6a094c
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.004720b0
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x40]
add esp, 0x10
movsx ecx, word [eax + ecx]
dec ecx
cmp ecx, 6
ja case.default.0x4e12fd
jmp dword [ecx*4 + 0x4e16ec]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x38]
movsx eax, word [edx + eax + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.004e0da0
mov edx, dword [esi + 0x6c]
mov dword [edx + ebp], eax
mov eax, dword [esi + 0x6c]
cmp dword [eax + ebp], 0
je 0x4e142c
jmp case.default.0x4e12fd
lea ecx, [esp + 0x38]
push ecx
call dword [fcn.0065f1dc]
fmul qword [0x663768]
add esp, 4
fadd qword [0x65f9a0]
call fcn.00645030
mov edx, dword [esi + 0x6c]
mov dword [edx + ebp + 4], eax
jmp case.default.0x4e12fd
lea eax, [esp + 0x38]
push eax
call dword [fcn.0065f1dc]
fmul qword [0x663768]
add esp, 4
fadd qword [0x65f9a0]
call fcn.00645030
mov ecx, dword [esi + 0x6c]
mov dword [ecx + ebp + 8], eax
jmp case.default.0x4e12fd
lea edx, [esp + 0x38]
push edx
call dword [fcn.0065f1dc]
fmul qword [0x663768]
add esp, 4
fadd qword [0x65f9a0]
call fcn.00645030
mov ecx, dword [esi + 0x6c]
mov dword [ecx + ebp + 0xc], eax
jmp case.default.0x4e12fd
lea edx, [esp + 0x38]
push edx
call dword [fcn.0065f1dc]
fmul qword [0x663768]
add esp, 4
fadd qword [0x65f9a0]
call fcn.00645030
mov ecx, dword [esi + 0x6c]
mov dword [ecx + ebp + 0x10], eax
jmp case.default.0x4e12fd
lea edx, [esp + 0x38]
push edx
call dword [fcn.0065f1dc]
fidiv dword [esp + 0x20]
add esp, 4
fadd qword [0x65f9a0]
call fcn.00645030
mov ecx, dword [esi + 0x6c]
mov dword [ecx + ebp + 0x18], eax
jmp case.default.0x4e12fd
lea edx, [esp + 0x38]
push edx
call dword [fcn.0065f1dc]
mov eax, dword [esi + 0x6c]
add esp, 4
fstp dword [eax + ebp + 0x14]
mov edx, dword [esp + 0x30]
add edx, 2
inc edi
mov dword [esp + 0x30], edx
lea ecx, [edi - 1]
cmp ecx, 0xa
jge 0x4e1434
jmp 0x4e128d
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x20]
mov edi, dword [esi + 0x14]
mov ebx, dword [esp + 0x14]
lea eax, [edx + 1]
lea edx, [ecx + eax]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x10]
inc edx
cmp edx, dword [ebx + edi + 0x14]
mov dword [esp + 0x10], edx
jle 0x4e1479
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x4e1479
mov ebx, dword [esp + 0x28]
add ebp, 0x20
inc ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x18]
cmp eax, ebx
jge 0x4e1486
jmp 0x4e147d
mov ebx, dword [esp + 0x18]
inc eax
cmp eax, ebx
jl 0x4e1231
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 0x70], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], ebp
lea ecx, [ecx + eax + 0x18]
mov edx, 0xa
mov ebx, 1
movsx eax, word [ecx]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x4e14bb
jmp dword [eax*4 + 0x4e1708]
mov dword [esp + 0x18], ebx
jmp case.default.0x4e14bb
mov ebp, ebx
jmp case.default.0x4e14bb
mov dword [esp + 0x10], ebx
jmp case.default.0x4e14bb
mov dword [esp + 0x24], ebx
add ecx, 2
dec edx
jne 0x4e14b0
xor ebx, ebx
test edi, edi
jle 0x4e15e1
xor eax, eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
jne 0x4e1532
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4e1527
test ebp, ebp
jne 0x4e151a
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4e150d
mov edx, dword [esi + 0x6c]
mov dword [eax + edx + 0x10], ebp
jmp 0x4e153a
mov ecx, dword [esi + 0x6c]
add ecx, eax
mov edx, dword [ecx + 0xc]
mov dword [ecx + 0x10], edx
jmp 0x4e153a
mov ecx, dword [esi + 0x6c]
add ecx, eax
mov edx, dword [ecx + 8]
mov dword [ecx + 0x10], edx
jmp 0x4e153a
mov ecx, dword [esi + 0x6c]
add ecx, eax
mov edx, dword [ecx + 4]
mov dword [ecx + 0x10], edx
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4e1545
mov ecx, dword [esi + 0x6c]
add ecx, eax
mov edx, dword [ecx + 0x10]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4e1561
mov ecx, dword [esi + 0x6c]
add ecx, eax
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 0x10]
cmp edx, edi
jb 0x4e155e
mov edx, edi
mov dword [ecx + 0xc], edx
mov edx, dword [esi + 0x6c]
mov edi, dword [eax + edx + 0xc]
lea ecx, [eax + edx]
mov edx, dword [eax + edx + 4]
cmp edx, edi
jb 0x4e1575
mov edx, edi
mov dword [ecx + 0xc], edx
mov ecx, dword [esi + 0x6c]
add ecx, eax
mov edx, dword [ecx + 0x10]
mov edi, dword [ecx + 0xc]
cmp edx, edi
jb 0x4e1589
mov edx, edi
test ebp, ebp
mov dword [ecx + 0xc], edx
jne 0x4e15a7
mov edx, dword [esi + 0x6c]
mov edi, dword [eax + edx + 0x10]
lea ecx, [eax + edx]
mov edx, dword [eax + edx + 4]
cmp edx, edi
ja 0x4e15a4
mov edx, edi
mov dword [ecx + 8], edx
mov ecx, dword [esi + 0x6c]
add ecx, eax
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
cmp edx, edi
ja 0x4e15b8
mov edx, edi
mov dword [ecx + 8], edx
mov edx, dword [esi + 0x6c]
mov edi, dword [eax + edx + 8]
lea ecx, [eax + edx]
mov edx, dword [eax + edx + 0x10]
cmp edx, edi
ja 0x4e15cf
mov edx, edi
mov dword [ecx + 8], edx
mov ecx, dword [esi + 0x70]
inc ebx
add eax, 0x20
cmp ebx, ecx
jl 0x4e14e8
lea ecx, [esp + 0x20]
call fcn.00643d62
mov eax, dword [esp + 0x14]
mov ebx, dword [esi + 0x14]
add eax, ebx
mov dword [esp + 0x140], 0
push eax
push 0
call fcn.00476a10
add esp, 4
push eax
push 0
call fcn.00476a10
add esp, 4
push eax
push 0x73aab0
lea eax, [esp + 0x30]
push 0x69db68
push eax
call fcn.00643d50
mov ecx, dword [esp + 0x38]
push 0x69a9ec
push ecx
call dword [fcn.0065f1b8]
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4e1697
push 0
push 0
push edi
call dword [fcn.0065f1d4]
mov eax, dword [esi + 0x70]
add esp, 0xc
test eax, eax
jle 0x4e166b
mov edx, dword [esi + 0x6c]
push edi
shl eax, 5
push 1
push eax
push edx
call dword [fcn.0065f1b4]
add esp, 0x10
push edi
call dword [fcn.0065f1c0]
mov eax, dword [esi + 0x70]
add esp, 4
test eax, eax
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x20]
jle 0x4e16a6
call fcn.00643d26
mov eax, 1
jmp 0x4e16ad
mov dword [esp + 0x140], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00643d26
xor eax, eax
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 4