Function at 0x435980
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.004af0e6
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x4359b1
lea eax, [edi + 4]
pop edi
pop esi
add esp, 0x1c
ret 8
cmp dword [0x514d78], 2
jne 0x4359ea
cmp dword [esp + 0x28], 0xfffffffe
jne 0x4359ea
cmp dword [esp + 0x2c], 0xffffffff
jne 0x4359ea
mov eax, dword [0x514de0]
push eax
call fcn.004b280e
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 [0x514d9c], 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 0x435a2f
mov ecx, edi
and ecx, ebx
cmp ecx, 0xffffffff
je 0x435a2f
cmp dword [esp + 0x20], ebx
ja 0x4361e3
jb 0x435a2f
cmp dword [esp + 0x1c], edi
jae 0x4361e3
call fcn.0044b180
cmp byte [0x51390c], 0
je 0x435a4a
cmp byte [0x527e58], 0
jne 0x43613b
test ebp, ebp
jne 0x435a7b
mov edx, edi
and edx, ebx
cmp edx, 0xffffffff
je 0x435a7b
mov edx, dword [esp + 0x1c]
mov ecx, edi
sub ecx, edx
mov eax, ebx
sbb eax, dword [esp + 0x20]
test eax, eax
ja 0x435a7b
jb 0x435a73
cmp ecx, 0x4000
jae 0x435a7b
sub edi, edx
mov dword [esp + 0x18], edi
jmp 0x435a83
mov dword [esp + 0x18], 0x4000
mov eax, dword [0x514de0]
push eax
call fcn.004b280e
mov ecx, dword [0x514de0]
push ecx
mov ebp, edx
mov edx, dword [esp + 0x20]
push edx
push 1
push esi
mov edi, eax
call fcn.004b21ea
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x435ac5
mov eax, dword [0x514de0]
push eax
call fcn.004b1cfe
add esp, 4
test eax, eax
je 0x43614a
xor eax, eax
cmp dword [esp + 0x14], eax
je 0x435f34
mov dword [0x514da0], eax
mov dword [0x514da8], eax
mov dword [0x514dac], eax
mov dword [0x514db0], eax
mov dword [0x514db4], eax
cmp byte [esi], 0x50
jne 0x435e8e
cmp byte [esi + 1], 0x4b
jne 0x435e8e
cmp byte [esi + 2], 7
jne 0x435e8e
cmp byte [esi + 3], 8
jne 0x435e8e
mov dword [0x514d9c], eax
cmp dword [0x514dc4], eax
je 0x435d09
cmp ebx, 0x18
jb 0x435f40
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 [0x514da0], edx
movzx edx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl dx, 8
movzx ebx, byte [esi + 0xa]
movzx ecx, dx
movzx edx, byte [esi + 0xd]
or ecx, eax
shl dx, 8
movzx eax, dx
movzx edx, byte [esi + 0xc]
shl ecx, 0x10
or ecx, eax
or ecx, edx
movzx edx, byte [esi + 0xb]
shl dx, 8
movzx edx, dx
or edx, ebx
movzx ebx, byte [esi + 9]
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 [0x514da8], eax
xor ebx, ebx
or ecx, ebx
mov dword [0x514dac], 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 [0x514db4], ecx
mov ecx, ebp
sbb ecx, dword [esp + 0x28]
mov dword [0x514db0], edx
cmp eax, dword [0x514da8]
jne 0x435c37
cmp ecx, dword [0x514dac]
je 0x435c98
mov ecx, dword [0x514de0]
add edi, 4
push 0
adc ebp, ebx
push ebp
push edi
push ecx
call fcn.004b2473
add esp, 0x10
test eax, eax
je 0x435c76
mov edx, dword [0x513954]
push edx
push 0x204
call fcn.00466160
push eax
push 0
call fcn.00498e30
add esp, 0xc
push 0xb
call fcn.004a5c80
push 0
push 4
push 1
push esi
call fcn.004351d0
cmp eax, 4
jne 0x4361b2
add dword [esp + 0x1c], eax
adc dword [esp + 0x20], ebx
jmp 0x435a00
mov eax, dword [0x514de0]
push eax
mov dword [0x514d9c], 1
mov ebx, 0x18
call fcn.004b280e
mov ecx, dword [0x514de0]
add edi, ebx
push 0
adc ebp, 0
push ebp
push edi
push ecx
call fcn.004b2473
add esp, 0x14
test eax, eax
je 0x435cf1
mov edx, dword [0x513954]
push edx
push 0x204
call fcn.00466160
push eax
push 0
call fcn.00498e30
add esp, 0xc
push 0xb
call fcn.004a5c80
mov eax, dword [0x514de0]
push eax
call fcn.004b280e
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x435f2f
cmp ebx, 0x10
jb 0x435f40
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 [0x514da0], 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 [0x514da8], eax
mov dword [0x514dac], 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 [0x514db0], edx
mov edx, ebp
sbb edx, dword [esp + 0x28]
mov dword [0x514db4], ebx
cmp ecx, eax
jne 0x435dba
cmp edx, ebx
je 0x435e1c
mov edx, dword [0x514de0]
add edi, 4
push 0
adc ebp, 0
push ebp
push edi
push edx
call fcn.004b2473
add esp, 0x10
test eax, eax
je 0x435df9
mov eax, dword [0x513954]
push eax
push 0x204
call fcn.00466160
push eax
push 0
call fcn.00498e30
add esp, 0xc
push 0xb
call fcn.004a5c80
push 0
push 4
push 1
push esi
call fcn.004351d0
cmp eax, 4
jne 0x4361b2
add dword [esp + 0x1c], eax
adc dword [esp + 0x20], 0
jmp 0x435a00
mov ecx, dword [0x514de0]
push ecx
mov dword [0x514d9c], 1
call fcn.004b280e
mov edx, dword [0x514de0]
mov ebx, 0x10
add edi, ebx
push 0
adc ebp, 0
push ebp
push edi
push edx
call fcn.004b2473
add esp, 0x14
test eax, eax
je 0x435e75
mov eax, dword [0x513954]
push eax
push 0x204
call fcn.00466160
push eax
push 0
call fcn.00498e30
add esp, 0xc
push 0xb
call fcn.004a5c80
mov ecx, dword [0x514de0]
push ecx
call fcn.004b280e
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x435f2f
xor edi, edi
cmp ebx, eax
jbe 0x435f34
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 0x435ec6
cmp cl, 0x4b
jne 0x435ec6
cmp byte [esp + 0x12], 7
jne 0x435ec6
cmp dl, 8
je 0x435ed1
inc edi
cmp edi, ebx
jb 0x435ea0
mov byte [esp + 0x11], cl
jmp 0x435f32
sub edi, 3
xor eax, eax
mov edx, edi
add edx, dword [0x514e48]
push 0
adc eax, dword [0x514e4c]
mov byte [esp + 0x15], cl
mov ecx, dword [0x514de0]
push eax
push edx
push ecx
call fcn.004b2473
add esp, 0x10
test eax, eax
je 0x435f22
mov edx, dword [0x513954]
push edx
push 0x204
call fcn.00466160
push eax
push 0
call fcn.00498e30
add esp, 0xc
push 0xb
call fcn.004a5c80
mov eax, dword [0x514de0]
push eax
call fcn.004b280e
mov ebx, edi
add esp, 4
xor eax, eax
cmp dword [0x514d9c], eax
jne 0x4361e3
push 0
push ebx
push 1
push esi
call fcn.004351d0
cmp eax, ebx
jne 0x4361b2
add dword [esp + 0x1c], ebx
adc dword [esp + 0x20], 0
cmp dword [0x514d9c], 0
jne 0x4361e3
cmp dword [esp + 0x14], 0
jne 0x435a00
mov ecx, dword [esp + 0x30]
and ecx, dword [esp + 0x34]
cmp ecx, 0xffffffff
je 0x435a00
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x20], edx
ja 0x435a00
jb 0x435fa3
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1c], eax
jae 0x435a00
mov ecx, dword [0x514de0]
push ecx
call fcn.004b1cfe
add esp, 4
test eax, eax
je 0x435a00
mov eax, dword [0x514df8]
mov ecx, dword [0x514df4]
mov ebp, 1
add eax, ebp
mov dword [0x514df8], eax
cmp eax, ecx
jae 0x4361e3
dec ecx
cmp eax, ecx
jne 0x436069
mov eax, dword [0x514de4]
lea edx, [eax + 2]
mov ebx, 2
nop
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x435ff0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 0xa]
push edx
call fcn.004af0e6
mov edi, eax
add esp, 4
test edi, edi
je 0x43605a
mov ecx, dword [0x514de4]
mov edx, edi
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, ebx
add edx, ebx
test ax, ax
jne 0x436020
push 0x4c5abc
push edi
call fcn.00457d90
mov eax, dword [0x514de4]
push eax
call fcn.004af1b0
push edi
mov dword [0x514de4], edi
call fcn.004b0bb4
mov edi, eax
add esp, 8
test edi, edi
jne 0x43607d
pop ebp
pop ebx
pop edi
mov eax, 4
pop esi
add esp, 0x1c
ret 8
mov ecx, dword [0x514de4]
push eax
push ecx
call fcn.00434f30
mov edi, eax
mov ebx, 2
mov edx, dword [0x514de0]
push edx
call fcn.004b227e
push 0x4c7100
push edi
call fcn.004b23c0
add esp, 0xc
mov dword [0x514de0], eax
test eax, eax
jne 0x436118
cmp dword [0x514d78], ebp
jne 0x4360b5
cmp dword [0x514d98], 0
jne 0x436231
mov eax, dword [0x514df8]
push eax
call fcn.00435890
cmp eax, 9
je 0x4361f8
cmp eax, ebx
je 0x436216
cmp dword [0x514d78], ebx
jne 0x4360e8
cmp dword [0x514d98], 0
je 0x4360e8
add dword [0x514df8], ebp
mov ecx, dword [0x514de4]
push ecx
call fcn.004b0bb4
mov edi, eax
add esp, 4
test edi, edi
je 0x43605a
push 0x4c7100
push edi
call fcn.004b23c0
add esp, 8
mov dword [0x514de0], eax
test eax, eax
je 0x4360a0
cmp dword [0x514d78], ebx
jne 0x43612d
cmp dword [0x514d98], 0
jne 0x436231
push edi
call fcn.004af1b0
add esp, 4
jmp 0x435a00
pop ebp
pop ebx
pop edi
mov eax, 9
pop esi
add esp, 0x1c
ret 8
cmp dword [0x514d78], 2
jne 0x436172
cmp dword [esp + 0x18], 0
jbe 0x436172
push esi
call fcn.004af1b0
add esp, 4
pop ebp
pop ebx
pop edi
mov eax, 0xb
pop esi
add esp, 0x1c
ret 8
mov edx, dword [0x514de0]
push edx
call fcn.004b1d32
add esp, 4
test eax, eax
je 0x4361e3
push esi
call fcn.004af1b0
mov eax, dword [0x513954]
add esp, 4
push eax
push 0
push eax
push 0
mov ecx, 0x513904
call fcn.00429f30
pop ebp
pop ebx
pop edi
mov eax, 0xb
pop esi
add esp, 0x1c
ret 8
push esi
call fcn.004af1b0
mov eax, dword [0x514dd8]
add esp, 4
test eax, eax
je 0x4361d4
push eax
push 0
push eax
push 0
mov ecx, 0x513904
call fcn.00429fd0
pop ebp
pop ebx
pop edi
mov eax, 0xa
pop esi
add esp, 0x1c
ret 8
push esi
call fcn.004af1b0
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
push edi
call fcn.004af1b0
push esi
call fcn.004af1b0
add esp, 8
pop ebp
pop ebx
pop edi
mov eax, 9
pop esi
add esp, 0x1c
ret 8
push edi
call fcn.004af1b0
push esi
call fcn.004af1b0
add esp, 8
pop ebp
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 8
push edi
call fcn.004af1b0
push esi
call fcn.004af1b0
add esp, 8
pop ebp
pop ebx
pop edi
mov eax, 3
pop esi
add esp, 0x1c
ret 8