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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6af93b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x7e2670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x48]
add ecx, 0x20
call fcn.0040dff0
mov dword [ebp - 0x14], 0x760920
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
and ecx, 0x40
je 0x536dfe
mov dword [ebp - 0x14], 0x760924
jmp 0x536e10
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
and eax, 0x20
je 0x536e10
mov dword [ebp - 0x14], 0x760928
mov ecx, dword [ebp - 0x48]
mov dword [ecx], 0
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.00489570
push eax
call fcn.00669fd1
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
mov edx, dword [ebp - 0x48]
cmp dword [edx], 0
jne 0x536e48
mov ecx, dword [ebp - 0x48]
call fcn.00536b30
jmp 0x537244
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x18], 1
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
and edx, 0x10
je 0x5370e0
push 2
push 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push ecx
call fcn.00669e99
add esp, 0xc
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
push eax
call fcn.00669daa
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x10], eax
push 0
push 0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
push eax
call fcn.00669e99
add esp, 0xc
mov dword [ebp - 0x1c], 0x400
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x1c]
jge 0x536ebf
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x5370db
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00576bfc
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
je 0x536f09
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
push edx
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00669b18
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xd], al
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x5370c9
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
and ecx, 0xfffffffa
mov edx, dword [ebp - 0x48]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x24]
shl eax, 4
cmp dword [eax + 0x7de1a0], 0
je 0x536fec
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0x7de1a4]
jge 0x536f84
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jge 0x536f77
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x18]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [eax + 0x7de1a0]
mov eax, dword [ebp - 0x18]
movsx ecx, byte [ecx + eax]
cmp edx, ecx
je 0x536f79
jmp 0x536f84
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x536f3e
mov eax, dword [ebp - 0x24]
shl eax, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax + 0x7de1a4]
jne 0x536fd7
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
or ecx, dword [edx + 0x7de1ac]
mov edx, dword [ebp - 0x48]
mov dword [edx + 4], ecx
cmp dword [ebp - 0x18], 2
jne 0x536fbd
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x18], 2
mov ecx, dword [ebp - 0x24]
shl ecx, 4
mov edx, dword [ecx + 0x7de1a8]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0x24
call fcn.0040dc60
jmp 0x536fec
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
jmp 0x536f2b
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x18]
jle 0x537008
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push ecx
call fcn.00669e99
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x53709c
lea ecx, [ebp - 0x28]
call fcn.00401490
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004018a0
push eax
call fcn.00668860
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00419080
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
lea eax, [ebp - 0x28]
push eax
call fcn.004540f0
lea ecx, [ebp - 0x38]
push ecx
call fcn.0053bea0
add esp, 8
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x24
call fcn.0040fe20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004014d0
mov ecx, dword [ebp - 0x48]
add ecx, 0x24
call fcn.0040e940
movzx ecx, al
test ecx, ecx
je 0x5370c9
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
cmp eax, 0x3c
jne 0x5370c9
push 0x76092c
mov ecx, dword [ebp - 0x48]
add ecx, 0x24
call fcn.0040dc60
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00576bf1
add esp, 4
jmp 0x5371d5
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
and ecx, 0x20
je 0x5371d5
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
and eax, 0x40
je 0x537120
push 2
push 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
push edx
call fcn.00669e99
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push ecx
call fcn.00669daa
add esp, 4
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x10], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
shl eax, 4
cmp dword [eax + 0x7de1a0], 0
je 0x5371d5
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
and eax, dword [ecx + 0x7de1ac]
je 0x5371c7
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ecx + 0x7de1a4]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 2
jne 0x53716d
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x18], 2
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ecx + 0x7de1a8]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0x24
call fcn.0040dc60
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x10], 0
je 0x537197
mov dword [ebp - 0x18], 0
jmp 0x5371c5
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ecx + 0x7de1a0]
push edx
call fcn.00669854
add esp, 0x10
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xd], al
jmp 0x5371d5
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x537127
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x5371e7
mov ecx, dword [ebp - 0x48]
call fcn.00536b30
jmp 0x537244
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
and eax, 0x40
je 0x537200
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x14], eax
jmp 0x537209
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x14], edx
cmp dword [ebp - 0x18], 0
je 0x537241
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0
call fcn.0048c2f0
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push 0x760934
call fcn.0048c2f0
mov eax, dword [ebp - 0x48]
add eax, 0x20
push eax
call fcn.00535290
add esp, 0x18
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4