Function at 0x539db0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa5c
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0xa58], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
test eax, eax
push edi
je 0x539de5
add eax, 4
jmp 0x539dea
mov eax, 0x67b348
lea edi, [esp + 0x38]
call fcn.00407270
mov eax, dword [esi + 4]
test eax, eax
je 0x539dff
lea ecx, [eax + 4]
jmp 0x539e01
xor ecx, ecx
call fcn.0048a090
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
je 0x53a030
push ebx
lea ebx, [esp + 0x14]
mov ecx, esi
call fcn.00539c90
mov edx, dword [esp + 0x10]
xor ebx, ebx
cmp edx, ebx
je 0x539e4d
test dword [edx], 0xffffff00
je 0x539e4d
cmp byte [edx + 4], bl
lea eax, [edx + 4]
je 0x539e4d
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x539e40
sub eax, esi
jmp 0x539e4f
xor eax, eax
cmp edx, ebx
je 0x539e58
add edx, 4
jmp 0x539e5d
mov edx, 0x67b348
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx]
push eax
push edx
mov edx, dword [esi + 8]
call edx
mov esi, eax
cmp esi, ebx
je 0x539e9b
lea edi, [esp + 0x10]
call fcn.00401700
lea ecx, [esp + 0x38]
call fcn.00401770
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x539ea8
add eax, 4
jmp 0x539eaa
xor eax, eax
push 0x2000
push 0x67b484
lea esi, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x31], bl
mov byte [esp + 0x30], bl
mov dword [esp + 0x38], ebx
call fcn.004865f0
cmp dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
jne 0x539f2d
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x539ef7
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x539f00
call fcn.00457970
lea ebx, [esp + 0x20]
call fcn.00486bd0
lea edi, [esp + 0x10]
call fcn.00401700
lea ecx, [esp + 0x38]
call fcn.00401770
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
cmp edi, eax
jbe 0x539f40
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00487150
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x539f91
lea esi, [esp + 0x18]
call fcn.00487190
lea eax, [esp + 0x20]
call fcn.00407130
lea edi, [esp + 0x10]
call fcn.00401700
lea ecx, [esp + 0x38]
call fcn.00401770
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0xc], 0
jmp 0x539fa4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push eax
push edi
push 1
push esi
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x53a00b
mov edx, dword [ebx]
add dword [esp + 0xc], eax
push eax
mov eax, dword [edx + 4]
push esi
mov ecx, ebx
call eax
mov ebx, eax
test ebx, ebx
je 0x539fa0
lea esi, [esp + 0x18]
call fcn.00487190
lea eax, [esp + 0x20]
call fcn.00407130
lea edi, [esp + 0x10]
call fcn.00401700
lea ecx, [esp + 0x38]
call fcn.00401770
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 0x34]
je 0x53a053
lea esi, [esp + 0x18]
call fcn.00487190
lea eax, [esp + 0x20]
call fcn.00407130
lea edi, [esp + 0x10]
call fcn.00401700
lea ecx, [esp + 0x38]
call fcn.00401770
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa58]
xor ecx, esp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 8
lea esi, [esp + 0xc]
call fcn.0054d410
mov edx, dword [esp + 0xc]
test edx, edx
je 0x53a085
test dword [edx], 0xffffff00
je 0x53a085
cmp byte [edx + 4], 0
lea eax, [edx + 4]
je 0x53a085
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x53a078
sub eax, esi
jmp 0x53a087
xor eax, eax
test edx, edx
lea ecx, [edx + 4]
jne 0x53a093
mov ecx, 0x67b348
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 8]
push ecx
mov ecx, ebx
call eax
lea edi, [esp + 0xc]
mov ebx, eax
call fcn.00401700
lea esi, [esp + 0x18]
call fcn.00487190
lea eax, [esp + 0x20]
call fcn.00407130
lea edi, [esp + 0x10]
call fcn.00401700
lea ecx, [esp + 0x38]
call fcn.00401770
test ebx, ebx
jne 0x539ff2
mov ecx, dword [esp + 0xa64]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 8