Function at 0x535d80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x544677
mov eax, dword fs:[0]
push eax
mov eax, 0x3f14
call fcn.005091e0
mov eax, dword [0x597c40]
xor eax, esp
mov dword [esp + 0x3f10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597c40]
xor eax, esp
push eax
lea eax, [esp + 0x3f28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3f38]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
call fcn.004111a6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x535dec
push 0x80004005
call fcn.00401670
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push pe_nt_image_headers32
mov dword [esp + 0x3f34], edi
call fcn.00406394
add esp, 4
cmp dword [ebp + 0x14], 1
mov ebx, eax
jne 0x535e6e
lea eax, [esp + 0x20]
call fcn.00533f00
mov eax, dword [ebp]
mov edi, dword [eax - 0xc]
test edi, edi
jns 0x535e35
push 0x80070057
call fcn.00401670
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x535e4e
push edi
mov ecx, ebp
call fcn.004015d0
mov eax, dword [ebp]
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.00535600
add esp, 8
mov esi, ebx
lea eax, [esp + 0x20]
call fcn.005354c0
mov esi, dword [esp + 0x1c]
cmp dword [ebp + 0x14], 2
jne 0x535f2f
mov edx, dword [ebp + 8]
cmp dword [edx - 0xc], 0
jne 0x535ebf
push 0x571c16
mov ecx, esi
call fcn.00401d00
mov dword [esp + 0x3f30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x535eb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x536083
lea eax, [esp + 0x20]
call fcn.00533f00
push 0x571c10
push edx
call fcn.0050465d
add esp, 8
mov esi, eax
jmp 0x535ee0
push esi
push 0x3e80
lea ecx, [esp + 0xac]
push 1
push ecx
call fcn.005048be
mov edi, eax
add esp, 0x10
test edi, edi
je 0x535f13
lea edx, [esp + 0xa4]
push edi
push edx
lea ecx, [esp + 0x28]
call fcn.00535600
add esp, 8
cmp edi, 0x3e80
je 0x535ee0
push esi
call fcn.00504948
add esp, 4
mov esi, ebx
lea eax, [esp + 0x20]
call fcn.005354c0
xor edi, edi
movzx ecx, byte [edi + ebx]
push 0x10
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00504a52
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535f50
sub eax, edx
cmp eax, 1
jne 0x535f6f
mov dl, byte [esp + 0x14]
mov byte [esp + 0x15], dl
mov byte [esp + 0x14], 0x30
mov byte [esp + 0x16], cl
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x535f76
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401a20
inc edi
cmp edi, 0x20
jl 0x535f31
push ebx
call fcn.00406389
mov ecx, dword [ebp + 0x1c]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
add esp, 4
cmp eax, esi
je 0x535ff4
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x535fe6
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x535fe6
push eax
call fcn.00401bd0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x535fdd
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x535ff4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401e20
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x53601f
cmp eax, dword [esi]
jne 0x53601f
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x536054
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x536038
call fcn.00401580
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
lea ecx, [esi + 0x10]
push ecx
push eax
lea edx, [edi + 0x10]
push edx
call fcn.00504340
add esp, 0x10
lea eax, [edi + 0x10]
mov edi, dword [esp + 0x1c]
mov dword [edi], eax
mov dword [esp + 0x3f30], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x536081
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x3f28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3f10]
xor ecx, esp
call fcn.00504076
add esp, 0x3f20
ret 4