Function at 0x52c250
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
xor eax, eax
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x110]
push esi
cmp ecx, eax
push edi
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov byte [ebp + 0x14], al
mov dword [ebp + 0x18], eax
mov dword [ebp + 8], eax
jge 0x52c3f8
mov eax, dword [0x6833d0]
push ebx
mov ebx, dword [esp + 0x118]
mov ecx, dword [eax + 0x6c]
cmp byte [ecx + 0x3d], 1
jne 0x52c336
or ecx, 0xffffffff
mov edi, str.WINDOW_
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
lea edx, [esp + ecx + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x67398c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.004c6210
add esp, 4
test al, al
jne 0x52c394
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x10]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x67398c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push 0x8000
push ecx
call fcn.00614875
add esp, 8
mov esi, eax
cmp esi, 0xffffffff
pop ebx
je 0x52c3f1
push 2
push 0
push esi
call fcn.00614b56
push esi
call fcn.00614b45
mov edi, eax
push edi
call fcn.006137fc
push 0
push 0
push esi
mov dword [ebp + 0xc], eax
call fcn.00614b56
mov edx, dword [ebp + 0xc]
push edi
push edx
push esi
call fcn.0061467f
push esi
call fcn.006145cc
add esp, 0x30
mov dword [ebp], 1
mov dword [ebp + 4], edi
mov ecx, dword [esp + 0x118]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x52c420
test ecx, ecx
jl 0x52c420
lea eax, [ebp + 4]
push eax
push ebp
push ecx
push 0x736c7020
call fcn.004c5530
mov ecx, dword [esp + 0x128]
add esp, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x52c437
lea edx, [eax + 0x20]
mov dword [ebp + 0x10], edx
mov eax, dword [eax + 4]
mov dword [ebp + 0x18], eax
mov byte [ebp + 0x14], 1
cmp ecx, 0x14b7
je 0x52c447
cmp ecx, 0x14b6
jne 0x52c44f
push ecx
mov ecx, ebp
call fcn.0052c5c0
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x104
ret 8