Function at 0x530240
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 0x53025d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea edi, [esi + 0x29c]
push edi
call fcn.00607610
test eax, eax
je 0x530277
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
lea ebx, [esi + 0x2a0]
push ebx
call fcn.0060a460
mov eax, dword [edi]
push ebx
push eax
call fcn.00607870
mov eax, dword [edi]
cmp eax, ebp
jne 0x5302a2
push ebp
call fcn.00609d40
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0xffffffffffffffff
push ebp
push eax
call fcn.00607db0
test eax, eax
je 0x5302c1
mov ecx, dword [edi]
push ecx
call fcn.00609d40
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
mov edx, dword [edi]
push edx
call fcn.00607f30
test eax, eax
je 0x5302df
mov eax, dword [edi]
push eax
call fcn.00609d40
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.0061467f
add esp, 0xc
cmp eax, ebp
jg 0x530310
mov eax, dword [edi]
push eax
call fcn.00609d40
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.0060a3c0
mov edx, dword [esi + 0x2d0]
mov eax, dword [edi]
push edx
push eax
call fcn.00609350
test eax, eax
jne 0x53033f
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 0x530414
dec edx
or edx, 0xfffffffe
inc edx
je 0x530428
inc eax
mov edx, eax
and edx, reloc.DPLAYX.dll_Ordinal_1
jns 0x530426
dec edx
or edx, 0xfffffffe
inc edx
jne 0x530416
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.00614b56
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x14]
push eax
call fcn.0060a430
mov ecx, dword [edi]
push ecx
call fcn.006081d0
mov edx, dword [edi]
push edx
call fcn.00607ea0
mov eax, dword [edi]
push eax
call fcn.00609d40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4