Function at 0x43fe70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push esi
push edi
xor edi, edi
push 0x4000
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], edi
call fcn.004c2cc7
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x43fea1
lea eax, [edi + 4]
pop edi
pop esi
add esp, 0x1c
ret 8
cmp dword [0x521390], 2
jne 0x43feda
cmp dword [esp + 0x28], 0xfffffffe
jne 0x43feda
cmp dword [esp + 0x2c], 0xffffffff
jne 0x43feda
mov eax, dword [0x5213f8]
push eax
call fcn.004c56d9
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], 1
push ebx
mov dword [0x5213b4], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
push ebp
lea ebx, [ebx]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
test ebp, ebp
jne 0x43ff1f
mov ecx, edi
and ecx, ebx
cmp ecx, 0xffffffff
je 0x43ff1f
cmp dword [esp + 0x20], ebx
ja 0x4406d1
jb 0x43ff1f
cmp dword [esp + 0x1c], edi
jae 0x4406d1
call fcn.00453df0
cmp byte [0x51ff18], 0
je 0x43ff3a
cmp byte [0x535c28], 0
jne 0x44061b
test ebp, ebp
jne 0x43ff6b
mov edx, edi
and edx, ebx
cmp edx, 0xffffffff
je 0x43ff6b
mov edx, dword [esp + 0x1c]
mov ecx, edi
sub ecx, edx
mov eax, ebx
sbb eax, dword [esp + 0x20]
test eax, eax
ja 0x43ff6b
jb 0x43ff63
cmp ecx, 0x4000
jae 0x43ff6b
sub edi, edx
mov dword [esp + 0x18], edi
jmp 0x43ff73
mov dword [esp + 0x18], 0x4000
mov eax, dword [0x5213f8]
push eax
call fcn.004c56d9
mov ecx, dword [0x5213f8]
push ecx
mov ebp, edx
mov edx, dword [esp + 0x20]
push edx
push 1
push esi
mov edi, eax
call fcn.004c5285
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x44062a
xor eax, eax
cmp dword [esp + 0x14], eax
je 0x440414
mov dword [0x5213b8], eax
mov dword [0x5213c0], eax
mov dword [0x5213c4], eax
mov dword [0x5213c8], eax
mov dword [0x5213cc], eax
cmp byte [esi], 0x50
jne 0x44036e
cmp byte [esi + 1], 0x4b
jne 0x44036e
cmp byte [esi + 2], 7
jne 0x44036e
cmp byte [esi + 3], 8
jne 0x44036e
mov dword [0x5213b4], eax
cmp dword [0x5213dc], eax
je 0x4401e9
cmp ebx, 0x18
jb 0x440420
movzx eax, byte [esi + 7]
movzx edx, byte [esi + 6]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esi + 5]
or ecx, edx
shl ax, 8
movzx edx, ax
movzx eax, byte [esi + 4]
shl ecx, 0x10
or ecx, edx
or ecx, eax
mov dword [0x5213b8], ecx
movzx cx, byte [esi + 0xf]
movzx eax, byte [esi + 0xd]
movzx edx, byte [esi + 0xe]
movzx ebx, byte [esi + 0xa]
shl cx, 8
shl ax, 8
movzx ecx, cx
or ecx, edx
movzx edx, ax
shl ecx, 0x10
or ecx, edx
movzx dx, byte [esi + 0xb]
movzx eax, byte [esi + 0xc]
shl dx, 8
movzx edx, dx
or edx, ebx
movzx ebx, byte [esi + 9]
or ecx, eax
shl bx, 8
movzx ebx, bx
xor eax, eax
shl edx, 0x10
or edx, ebx
movzx ebx, byte [esi + 8]
or edx, ebx
or eax, edx
mov dword [0x5213c0], eax
xor ebx, ebx
or ecx, ebx
mov dword [0x5213c4], ecx
movzx eax, byte [esi + 0x17]
movzx edx, byte [esi + 0x16]
shl ax, 8
movzx ebx, byte [esi + 0x12]
movzx ecx, ax
movzx eax, byte [esi + 0x15]
shl ax, 8
or ecx, edx
movzx edx, ax
movzx eax, byte [esi + 0x14]
shl ecx, 0x10
or ecx, edx
or ecx, eax
movzx eax, byte [esi + 0x13]
shl ax, 8
movzx eax, ax
or eax, ebx
movzx ebx, byte [esi + 0x11]
shl bx, 8
shl eax, 0x10
movzx ebx, bx
or eax, ebx
movzx ebx, byte [esi + 0x10]
or eax, ebx
xor edx, edx
xor ebx, ebx
or edx, eax
or ecx, ebx
mov eax, edi
sub eax, dword [esp + 0x24]
mov dword [0x5213cc], ecx
mov ecx, ebp
sbb ecx, dword [esp + 0x28]
mov dword [0x5213c8], edx
cmp eax, dword [0x5213c0]
jne 0x440117
cmp ecx, dword [0x5213c4]
je 0x440178
mov ecx, dword [0x5213f8]
add edi, 4
push 0
adc ebp, ebx
push ebp
push edi
push ecx
call fcn.004c533e
add esp, 0x10
test eax, eax
je 0x440156
mov edx, dword [0x51ff6c]
push edx
push 0x205
call fcn.00475cc0
push eax
push 0
call fcn.004adf30
add esp, 0xc
push 0xb
call fcn.004b8b90
push 0
push 4
push 1
push esi
call fcn.0043f6d0
cmp eax, 4
jne 0x4406a3
add dword [esp + 0x1c], eax
adc dword [esp + 0x20], ebx
jmp 0x43fef0
mov eax, dword [0x5213f8]
push eax
mov dword [0x5213b4], 1
mov ebx, 0x18
call fcn.004c56d9
mov ecx, dword [0x5213f8]
add edi, ebx
push 0
adc ebp, 0
push ebp
push edi
push ecx
call fcn.004c533e
add esp, 0x14
test eax, eax
je 0x4401d1
mov edx, dword [0x51ff6c]
push edx
push 0x205
call fcn.00475cc0
push eax
push 0
call fcn.004adf30
add esp, 0xc
push 0xb
call fcn.004b8b90
mov eax, dword [0x5213f8]
push eax
call fcn.004c56d9
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x44040f
cmp ebx, 0x10
jb 0x440420
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esi + 5]
or edx, eax
shl cx, 8
shl edx, 0x10
movzx eax, cx
movzx ecx, byte [esi + 4]
or edx, eax
or edx, ecx
mov dword [0x5213b8], edx
movzx edx, byte [esi + 0xb]
movzx ecx, byte [esi + 0xa]
shl dx, 8
movzx eax, dx
movzx edx, byte [esi + 9]
or eax, ecx
shl dx, 8
movzx ecx, dx
movzx edx, byte [esi + 8]
shl eax, 0x10
or eax, ecx
or eax, edx
xor ebx, ebx
mov dword [0x5213c0], eax
mov dword [0x5213c4], ebx
movzx ecx, byte [esi + 0xf]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esi + 0xe]
or edx, ecx
movzx ecx, byte [esi + 0xd]
shl cx, 8
shl edx, 0x10
movzx ecx, cx
or edx, ecx
movzx ecx, byte [esi + 0xc]
or edx, ecx
mov ecx, edi
sub ecx, dword [esp + 0x24]
mov dword [0x5213c8], edx
mov edx, ebp
sbb edx, dword [esp + 0x28]
mov dword [0x5213cc], ebx
cmp ecx, eax
jne 0x44029a
cmp edx, ebx
je 0x4402fc
mov edx, dword [0x5213f8]
add edi, 4
push 0
adc ebp, 0
push ebp
push edi
push edx
call fcn.004c533e
add esp, 0x10
test eax, eax
je 0x4402d9
mov eax, dword [0x51ff6c]
push eax
push 0x205
call fcn.00475cc0
push eax
push 0
call fcn.004adf30
add esp, 0xc
push 0xb
call fcn.004b8b90
push 0
push 4
push 1
push esi
call fcn.0043f6d0
cmp eax, 4
jne 0x4406a3
add dword [esp + 0x1c], eax
adc dword [esp + 0x20], 0
jmp 0x43fef0
mov ecx, dword [0x5213f8]
push ecx
mov dword [0x5213b4], 1
call fcn.004c56d9
mov edx, dword [0x5213f8]
mov ebx, 0x10
add edi, ebx
push 0
adc ebp, 0
push ebp
push edi
push edx
call fcn.004c533e
add esp, 0x14
test eax, eax
je 0x440355
mov eax, dword [0x51ff6c]
push eax
push 0x205
call fcn.00475cc0
push eax
push 0
call fcn.004adf30
add esp, 0xc
push 0xb
call fcn.004b8b90
mov ecx, dword [0x5213f8]
push ecx
call fcn.004c56d9
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x44040f
xor edi, edi
cmp ebx, eax
jbe 0x440414
mov cl, byte [esp + 0x11]
mov dl, byte [esp + 0x13]
mov al, cl
mov cl, byte [esp + 0x12]
mov byte [esp + 0x12], dl
mov dl, byte [edi + esi]
mov byte [esp + 0x13], dl
cmp al, 0x50
jne 0x4403a6
cmp cl, 0x4b
jne 0x4403a6
cmp byte [esp + 0x12], 7
jne 0x4403a6
cmp dl, 8
je 0x4403b1
inc edi
cmp edi, ebx
jb 0x440380
mov byte [esp + 0x11], cl
jmp 0x440412
sub edi, 3
xor eax, eax
mov edx, edi
add edx, dword [0x521460]
push 0
adc eax, dword [0x521464]
mov byte [esp + 0x15], cl
mov ecx, dword [0x5213f8]
push eax
push edx
push ecx
call fcn.004c533e
add esp, 0x10
test eax, eax
je 0x440402
mov edx, dword [0x51ff6c]
push edx
push 0x205
call fcn.00475cc0
push eax
push 0
call fcn.004adf30
add esp, 0xc
push 0xb
call fcn.004b8b90
mov eax, dword [0x5213f8]
push eax
call fcn.004c56d9
mov ebx, edi
add esp, 4
xor eax, eax
cmp dword [0x5213b4], eax
jne 0x4406d1
push 0
push ebx
push 1
push esi
call fcn.0043f6d0
cmp eax, ebx
jne 0x4406a3
add dword [esp + 0x1c], ebx
adc dword [esp + 0x20], 0
cmp dword [0x5213b4], 0
jne 0x4406d1
cmp dword [esp + 0x14], 0
jne 0x43fef0
mov ecx, dword [esp + 0x30]
and ecx, dword [esp + 0x34]
cmp ecx, 0xffffffff
je 0x43fef0
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x20], edx
ja 0x43fef0
jb 0x440483
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1c], eax
jae 0x43fef0
mov ecx, dword [0x5213f8]
push ecx
call fcn.004c4f7d
add esp, 4
test eax, eax
je 0x43fef0
mov eax, dword [0x521410]
mov ecx, dword [0x52140c]
mov ebp, 1
add eax, ebp
mov dword [0x521410], eax
cmp eax, ecx
jae 0x4406d1
dec ecx
cmp eax, ecx
jne 0x440549
mov eax, dword [0x5213fc]
lea edx, [eax + 2]
mov ebx, 2
nop
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4404d0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 0xa]
push edx
call fcn.004c2cc7
mov edi, eax
add esp, 4
test edi, edi
je 0x44053a
mov ecx, dword [0x5213fc]
mov edx, edi
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, ebx
add edx, ebx
test ax, ax
jne 0x440500
push 0x4d8b60
push edi
call fcn.00462140
mov eax, dword [0x5213fc]
push eax
call fcn.004c23c4
push edi
mov dword [0x5213fc], edi
call fcn.004c3cbd
mov edi, eax
add esp, 8
test edi, edi
jne 0x44055d
pop ebp
pop ebx
pop edi
mov eax, 4
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [0x5213fc]
push eax
push ecx
call fcn.0043f430
mov edi, eax
mov ebx, 2
mov edx, dword [0x5213f8]
push edx
call fcn.004c4622
push 0x4da470
push edi
call fcn.004c4e68
add esp, 0xc
mov dword [0x5213f8], eax
test eax, eax
jne 0x4405f8
cmp dword [0x521390], ebp
jne 0x440595
cmp dword [0x5213b0], 0
jne 0x44071f
mov eax, dword [0x521410]
push eax
call fcn.0043fd80
cmp eax, 9
je 0x4406e6
cmp eax, ebx
je 0x440704
cmp dword [0x521390], ebx
jne 0x4405c8
cmp dword [0x5213b0], 0
je 0x4405c8
add dword [0x521410], ebp
mov ecx, dword [0x5213fc]
push ecx
call fcn.004c3cbd
mov edi, eax
add esp, 4
test edi, edi
je 0x44053a
push 0x4da470
push edi
call fcn.004c4e68
add esp, 8
mov dword [0x5213f8], eax
test eax, eax
je 0x440580
cmp dword [0x521390], ebx
jne 0x44060d
cmp dword [0x5213b0], 0
jne 0x44071f
push edi
call fcn.004c23c4
add esp, 4
jmp 0x43fef0
pop ebp
pop ebx
pop edi
mov eax, 9
pop esi
add esp, 0x1c
ret 8
mov edx, dword [0x5213f8]
push edx
call fcn.004c4f7d
add esp, 4
test eax, eax
jne 0x4406d1
cmp dword [0x521390], 2
jne 0x440668
cmp dword [esp + 0x18], eax
jbe 0x440668
push esi
call fcn.004c23c4
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 0xb
pop esi
add esp, 0x1c
ret 8
mov eax, dword [0x5213f8]
push eax
call fcn.004c4fb1
add esp, 4
test eax, eax
je 0x4406d1
push esi
call fcn.004c23c4
mov ecx, dword [0x51ff6c]
add esp, 4
push ecx
mov ecx, 0x51ff10
call fcn.00434490
pop ebp
pop ebx
pop edi
mov eax, 0xb
pop esi
add esp, 0x1c
ret 8
push esi
call fcn.004c23c4
mov eax, dword [0x5213f0]
add esp, 4
test eax, eax
je 0x4406c2
push eax
push 0
mov ecx, 0x51ff10
call fcn.004343a0
pop ebp
pop ebx
pop edi
mov eax, 0xa
pop esi
add esp, 0x1c
ret 8
push esi
call fcn.004c23c4
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
push edi
call fcn.004c23c4
push esi
call fcn.004c23c4
add esp, 8
pop ebp
pop ebx
pop edi
mov eax, 9
pop esi
add esp, 0x1c
ret 8
push edi
call fcn.004c23c4
push esi
call fcn.004c23c4
add esp, 8
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 8
push edi
call fcn.004c23c4
push esi
call fcn.004c23c4
add esp, 8
pop ebp
pop ebx
pop edi
mov eax, 3
pop esi
add esp, 0x1c
ret 8