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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538242
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x59a0a0]
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 ebx, ecx
mov dword [ebp - 0x90], ebx
lea edi, [ebx + 0x20]
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4da8ea
mov eax, dword [edi]
jmp 0x4da8ec
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x559688
mov eax, dword [ebx + 4]
test al, 0x40
je 0x4da904
mov eax, 0x559690
jmp 0x4da90e
test al, 0x20
mov eax, 0x559698
cmove eax, ecx
push eax
push dword [ebp + 8]
mov dword [ebx], 0
call fcn.004ae8fa
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4da932
mov ecx, ebx
call fcn.004dacc0
jmp 0x4dac88
mov ecx, dword [ebx + 4]
xor esi, esi
mov byte [ebp - 0x85], 1
mov dword [ebx + 0x18], 1
test cl, 0x10
je 0x4daba4
push 2
push esi
push eax
call fcn.004aebfd
add esp, 0xc
push dword [ebx]
call fcn.004af1f6
add esp, 4
mov dword [ebx + 0x10], eax
push esi
push esi
push dword [ebx]
call fcn.004aebfd
mov eax, dword [ebx + 0x10]
mov edi, 0x400
add esp, 0xc
mov dword [ebp - 0x8c], edi
cmp eax, edi
jge 0x4da995
mov edi, eax
mov dword [ebp - 0x8c], edi
test edi, edi
je 0x4dac48
push edi
call fcn.0049aa41
add esp, 4
mov dword [ebp - 0x94], eax
push dword [ebx]
push 1
push edi
push eax
call fcn.004af3cd
add esp, 0x10
cmp eax, 1
sete al
mov byte [ebp - 0x85], al
test al, al
je 0x4dab8a
and dword [ebx + 4], 0xfffffffa
xor eax, eax
mov dword [ebp - 0x98], eax
cmp dword [0x59ab40], eax
je 0x4daa69
xor edx, edx
mov edi, dword [edx + 0x59ab44]
test edi, edi
jle 0x4daa19
mov ebx, dword [ebp - 0x8c]
cmp esi, ebx
jge 0x4daa0d
mov eax, dword [ebp - 0x94]
mov ecx, dword [edx + 0x59ab40]
mov al, byte [eax + esi]
cmp al, byte [esi + ecx]
jne 0x4daa0d
inc esi
cmp esi, edi
jl 0x4da9f0
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x98]
cmp esi, edi
je 0x4daa35
inc eax
xor esi, esi
mov edx, eax
mov dword [ebp - 0x98], eax
shl edx, 4
cmp dword [edx + 0x59ab40], esi
jne 0x4da9e0
jmp 0x4daa63
shl eax, 4
mov dword [ebp - 0x98], eax
mov eax, dword [eax + 0x59ab4c]
or dword [ebx + 4], eax
cmp esi, 2
jne 0x4daa4f
mov dword [ebx + 0x18], esi
mov eax, dword [ebp - 0x98]
lea ecx, [ebx + 0x38]
push dword [eax + 0x59ab48]
call fcn.00405170
mov edi, dword [ebp - 0x8c]
cmp edi, esi
jle 0x4daa7a
push 0
push esi
push dword [ebx]
call fcn.004aebfd
add esp, 0xc
test esi, esi
jne 0x4dab53
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push edi
push dword [ebp - 0x94]
mov dword [ebp - 4], eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x84]
mov dword [eax], 0x55927c
call fcn.0040fe60
xor ecx, ecx
mov byte [ebp - 4], 1
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049aa41
add esp, 4
lea ecx, [ebp - 0x2c]
mov edi, eax
push dword [ebp - 0x8c]
call fcn.004047c0
mov eax, dword [ebp - 0x8c]
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], eax
push edi
mov dword [ecx], 0x5596a0
lea ecx, [ebp - 0x84]
call fcn.004dba80
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00405040
push edi
call fcn.0049aa3c
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov ecx, esp
cmovae eax, dword [ebp - 0x2c]
mov dword [ecx], eax
lea ecx, [ebp - 0x44]
call fcn.004d8200
add esp, 4
lea ecx, [ebx + 0x38]
push eax
call fcn.004040c0
lea ecx, [ebp - 0x44]
call fcn.00403110
lea ecx, [ebp - 0x84]
call fcn.00410670
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403110
cmp dword [ebx + 0x48], 0
lea ecx, [ebx + 0x38]
mov edi, dword [ebp - 0x94]
sete al
test al, al
je 0x4dab90
cmp byte [edi], 0x3c
jne 0x4dab90
push 0x5593cc
call fcn.00405170
push edi
call fcn.0049aa3c
mov al, byte [ebp - 0x85]
add esp, 4
jmp 0x4dac40
mov edi, dword [ebp - 0x94]
push edi
call fcn.0049aa3c
mov al, byte [ebp - 0x85]
add esp, 4
jmp 0x4dac40
test cl, 0x20
je 0x4dac4b
test cl, 0x40
je 0x4dabcc
push 2
push 0
push eax
call fcn.004aebfd
add esp, 0xc
push dword [ebx]
call fcn.004af1f6
add esp, 4
mov dword [ebx + 0x10], eax
xor edi, edi
cmp dword [0x59ab40], esi
je 0x4dac48
mov ecx, dword [ebx + 4]
xor eax, eax
nop dword [eax + eax]
test dword [eax + 0x59ab4c], ecx
jne 0x4dabf8
inc edi
mov eax, edi
shl eax, 4
cmp dword [eax + 0x59ab40], esi
jne 0x4dabe0
jmp 0x4dac48
shl edi, 4
mov esi, dword [edi + 0x59ab44]
cmp esi, 2
jne 0x4dac09
mov dword [ebx + 0x18], esi
push dword [edi + 0x59ab48]
lea ecx, [ebx + 0x38]
call fcn.00405170
cmp dword [ebx + 0x10], 0
je 0x4dac21
xor esi, esi
jmp 0x4dac48
push dword [ebx]
push 1
push esi
push dword [edi + 0x59ab40]
call fcn.004af6b5
add esp, 0x10
cmp eax, 1
sete al
mov byte [ebp - 0x85], al
test al, al
je 0x4da926
lea edi, [ebx + 0x20]
test byte [ebx + 4], 0x40
je 0x4dac59
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], eax
jmp 0x4dac5c
mov dword [ebx + 0x14], esi
test esi, esi
je 0x4dac82
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
mov esi, esp
mov ecx, edi
mov dword [eax], 0
mov dword [esi], 0x5595b4
call fcn.004dbfd0
add esp, 0x10
mov al, byte [ebp - 0x85]
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.0049aa22
mov esp, ebp
pop ebp
ret 4