Function at 0x522d70
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
push edi
cmp esi, ebp
mov dword [esp + 0x10], ecx
jne 0x522d8d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea edi, [esi + 0x29c]
push edi
call fcn.005ef190
test eax, eax
je 0x522da7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea ebx, [esi + 0x2a0]
push ebx
call fcn.005f1fe0
mov eax, dword [edi]
push ebx
push eax
call fcn.005ef3f0
mov eax, dword [edi]
cmp eax, ebp
jne 0x522dd2
push ebp
call fcn.005f18c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0xffffffffffffffff
push ebp
push eax
call fcn.005ef930
test eax, eax
je 0x522df1
mov ecx, dword [edi]
push ecx
call fcn.005f18c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov edx, dword [edi]
push edx
call fcn.005efab0
test eax, eax
je 0x522e0f
mov eax, dword [edi]
push eax
call fcn.005f18c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 0x2cc]
mov edx, dword [esi + 0x214]
push 0x1000
push ecx
push edx
call fcn.005fbc1c
add esp, 0xc
cmp eax, ebp
jg 0x522e40
mov eax, dword [edi]
push eax
call fcn.005f18c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov edx, dword [edi]
mov ecx, dword [esi + 0x2cc]
push eax
push ecx
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.005f1f40
mov edx, dword [esi + 0x2d0]
mov eax, dword [edi]
push edx
push eax
call fcn.005f0ed0
test eax, eax
jne 0x522e6f
mov dword [esi + 0x260], ebp
mov word [esi + 0x25c], 1
mov eax, dword [edi]
xor edx, edx
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 0x10], ebp
setne dl
inc edx
mov word [esi + 0x25e], dx
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x260], ecx
mov ebx, dword [edi]
xor ecx, ecx
mov edx, dword [ebx + 0x14]
mov cx, word [esi + 0x25e]
mov ax, word [edx + 0xc]
shl ax, 3
mov word [esi + 0x26a], ax
mov edx, dword [ebx + 0x14]
mov eax, dword [edx + 0xc]
mov word [esi + 0x26c], bp
imul eax, dword [esi + 0x260]
imul eax, ecx
mov dword [esi + 0x264], eax
xor eax, eax
mov ax, word [esi + 0x26a]
mov dword [esi + 0x244], 0x14
imul eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x248], 0x10108
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [esi + 0x268], ax
mov edx, dword [ecx + 0x78]
imul edx, dword [esi + 0x264]
lea eax, [esi + 0x25c]
mov dword [esi + 0x24c], edx
mov dword [esi + 0x250], ebp
mov dword [esi + 0x254], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [eax + 8]
mov eax, edx
xor edx, edx
div ecx
mov edx, eax
and edx, reloc.DPLAYX.dll_Ordinal_1
jns 0x522f44
dec edx
or edx, 0xfffffffe
inc edx
je 0x522f58
inc eax
mov edx, eax
and edx, reloc.DPLAYX.dll_Ordinal_1
jns 0x522f56
dec edx
or edx, 0xfffffffe
inc edx
jne 0x522f46
imul ecx, eax
mov dword [esi + 0x24c], ecx
mov edx, ecx
shr ecx, 1
mov dword [esi + 0x220], ebp
mov dword [esi + 0x224], ebp
mov dword [esi + 0x234], edx
mov dword [esi + 0x23c], ebp
mov dword [esi + 0x240], ebp
mov dword [esi + 0x270], ebp
mov dword [esi + 0x278], edx
mov dword [esi + 0x27c], edx
mov dword [esi + 0x280], ebp
lea ebp, [ecx - 1]
dec edx
mov dword [esi + 0x238], ecx
mov dword [esi + 0x274], ecx
mov dword [esi + 0x284], ebp
mov dword [esi + 0x288], ecx
mov dword [esi + 0x28c], ecx
mov dword [esi + 0x290], edx
mov dword [esi + 0x294], ecx
mov dword [esi + 0x228], 0
mov edx, dword [ebx + 0x14]
push 0
push 0
mov edx, dword [edx + 8]
mov dword [esi + 0x2d8], eax
mov dword [esi + 0x2d4], edx
mov ebp, dword [ebx + 0x14]
mov eax, ecx
xor edx, edx
div dword [ebp + 8]
xor edx, edx
mov dword [esi + 0x2dc], eax
mov ebx, dword [ebx + 0x14]
mov eax, ecx
div dword [ebx + 8]
mov dword [esi + 0x2e0], eax
mov eax, dword [esi + 0x214]
push eax
call fcn.005fc0f3
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x14]
push eax
call fcn.005f1fb0
mov ecx, dword [edi]
push ecx
call fcn.005efd50
mov edx, dword [edi]
push edx
call fcn.005efa20
mov eax, dword [edi]
push eax
call fcn.005f18c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4