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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x55930c]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xd0], ecx
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0xd0]
add ecx, 0x20
call fcn.00477010
mov dword [ebp - 8], 0x5345b4
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
and ecx, 0x40
je 0x4b54c9
mov dword [ebp - 8], 0x5345bc
jmp 0x4b54de
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
and eax, 0x20
je 0x4b54de
mov dword [ebp - 8], 0x5345c4
mov ecx, dword [ebp - 0xd0]
mov dword [ecx], 0
mov edx, dword [ebp - 8]
push edx
lea ecx, [ebp + 8]
call fcn.004aa8c0
push eax
call fcn.004ef3c5
add esp, 8
mov ecx, dword [ebp - 0xd0]
mov dword [ecx], eax
mov edx, dword [ebp - 0xd0]
cmp dword [edx], 0
jne 0x4b5522
mov ecx, dword [ebp - 0xd0]
call fcn.004b5260
jmp 0x4b5a19
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xd0]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx + 4]
and edx, 0x10
je 0x4b586f
push 2
push 0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
push ecx
call fcn.004ef27a
add esp, 0xc
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx]
push eax
call fcn.004ef182
add esp, 4
mov ecx, dword [ebp - 0xd0]
mov dword [ecx + 0x10], eax
push 0
push 0
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx]
push eax
call fcn.004ef27a
add esp, 0xc
mov dword [ebp - 0x10], 0x400
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x10]
jge 0x4b55b1
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x4b586a
mov edx, dword [ebp - 0x10]
push edx
call fcn.004e68e6
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x4b5604
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx]
push edx
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004eefc8
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4b5852
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
and ecx, 0xfffffffa
mov edx, dword [ebp - 0xd0]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x18]
shl eax, 4
cmp dword [eax + 0x558b30], 0
je 0x4b56f9
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x558b34]
jge 0x4b5685
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jge 0x4b5678
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [eax + 0x558b30]
mov eax, dword [ebp - 0xc]
movsx ecx, byte [ecx + eax]
cmp edx, ecx
je 0x4b567a
jmp 0x4b5685
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4b563f
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x558b34]
jne 0x4b56e4
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
or ecx, dword [edx + 0x558b3c]
mov edx, dword [ebp - 0xd0]
mov dword [edx + 4], ecx
cmp dword [ebp - 0xc], 2
jne 0x4b56c7
mov eax, dword [ebp - 0xd0]
mov dword [eax + 0x18], 2
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ecx + 0x558b38]
push edx
mov ecx, dword [ebp - 0xd0]
add ecx, 0x3c
call fcn.004c0260
jmp 0x4b56f9
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
jmp 0x4b562c
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jle 0x4b5718
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
push ecx
call fcn.004ef27a
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x4b581f
lea ecx, [ebp - 0x88]
call fcn.004752b0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push ecx
mov ecx, esp
push 0x5345cc
call fcn.004aa810
lea ecx, [ebp - 0x68]
call fcn.004bf230
mov eax, dword [ebp - 0x10]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e68e6
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x88]
call fcn.004c0460
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
push ecx
mov ecx, esp
push 0x5345d8
call fcn.004aa810
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x68]
call fcn.004b3ef0
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x88]
call fcn.00476f80
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.004ecc45
add esp, 4
push ecx
mov ecx, esp
lea edx, [ebp - 0x88]
push edx
call fcn.004be850
lea eax, [ebp - 0xc0]
push eax
call fcn.004b95e0
add esp, 8
push eax
mov ecx, dword [ebp - 0xd0]
add ecx, 0x3c
call fcn.00475300
lea ecx, [ebp - 0xc0]
call fcn.004752e0
lea ecx, [ebp - 0x68]
call fcn.004bf290
lea ecx, [ebp - 0x88]
call fcn.004752e0
mov ecx, dword [ebp - 0xd0]
add ecx, 0x3c
call fcn.00475370
movzx ecx, al
test ecx, ecx
je 0x4b5852
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x3c
jne 0x4b5852
push 0x5345e8
mov ecx, dword [ebp - 0xd0]
add ecx, 0x3c
call fcn.004c0260
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc4], ecx
mov edx, dword [ebp - 0xc4]
push edx
call fcn.004ecc45
add esp, 4
jmp 0x4b599e
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
and ecx, 0x20
je 0x4b599e
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
and eax, 0x40
je 0x4b58be
push 2
push 0
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx]
push edx
call fcn.004ef27a
add esp, 0xc
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
push ecx
call fcn.004ef182
add esp, 4
mov edx, dword [ebp - 0xd0]
mov dword [edx + 0x10], eax
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
shl eax, 4
cmp dword [eax + 0x558b30], 0
je 0x4b599e
mov ecx, dword [ebp - 0x8c]
shl ecx, 4
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
and eax, dword [ecx + 0x558b3c]
je 0x4b598a
mov ecx, dword [ebp - 0x8c]
shl ecx, 4
mov edx, dword [ecx + 0x558b34]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 2
jne 0x4b5921
mov eax, dword [ebp - 0xd0]
mov dword [eax + 0x18], 2
mov ecx, dword [ebp - 0x8c]
shl ecx, 4
mov edx, dword [ecx + 0x558b38]
push edx
mov ecx, dword [ebp - 0xd0]
add ecx, 0x3c
call fcn.004c0260
mov eax, dword [ebp - 0xd0]
cmp dword [eax + 0x10], 0
je 0x4b5954
mov dword [ebp - 0xc], 0
jmp 0x4b5988
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x8c]
shl ecx, 4
mov edx, dword [ecx + 0x558b30]
push edx
call fcn.004f1372
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 1], al
jmp 0x4b599e
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
jmp 0x4b58c8
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x4b59b3
mov ecx, dword [ebp - 0xd0]
call fcn.004b5260
jmp 0x4b5a19
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
and eax, 0x40
je 0x4b59d5
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x14], eax
jmp 0x4b59e1
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x4b5a16
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.004aa810
push ecx
mov ecx, esp
push 0x5345f4
call fcn.004aa810
mov eax, dword [ebp - 0xd0]
add eax, 0x20
push eax
call fcn.004b3a60
add esp, 0x18
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004e9752
mov esp, ebp
pop ebp
ret 4