Function at 0x422cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4af890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x48dc74
push eax
call fcn.0043d640
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x422cfa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret
push esi
push edi
xor edx, edx
mov edi, 0xffff
push 2
push edx
push ebx
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x414], edx
call fcn.00472db6
add esp, 0xc
test eax, eax
je 0x422d2c
xor eax, eax
mov dword [ebp - 0x414], eax
jmp 0x422e09
push ebx
call fcn.00473328
add esp, 4
mov dword [ebp - 0x418], eax
cmp eax, 0xffff
jae 0x422d4a
mov edi, eax
mov dword [ebp - 0x40c], eax
mov esi, 4
cmp edi, esi
jbe 0x422e03
jmp 0x422d60
add esi, 0x400
cmp esi, edi
jbe 0x422d6c
mov esi, edi
sub eax, esi
mov edi, 0x404
mov dword [ebp - 0x410], eax
cmp esi, 0x404
ja 0x422d83
mov edi, esi
push 0
push eax
push ebx
call fcn.00472db6
add esp, 0xc
test eax, eax
jne 0x422e03
push ebx
push 1
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
jne 0x422e03
lea eax, [edi - 3]
test eax, eax
jle 0x422def
dec eax
cmp byte [ebp + eax - 0x408], 0x50
jne 0x422ddb
cmp byte [ebp + eax - 0x407], 0x4b
jne 0x422ddb
cmp byte [ebp + eax - 0x406], 5
jne 0x422ddb
cmp byte [ebp + eax - 0x405], 6
je 0x422de1
test eax, eax
jg 0x422db2
jmp 0x422def
add eax, dword [ebp - 0x410]
mov dword [ebp - 0x414], eax
jne 0x422e03
mov edi, dword [ebp - 0x40c]
mov eax, dword [ebp - 0x418]
cmp esi, edi
jb 0x422d60
mov eax, dword [ebp - 0x414]
mov esi, eax
neg esi
push 0
sbb esi, esi
push eax
neg esi
push ebx
dec esi
call fcn.00472db6
add esp, 0xc
test eax, eax
je 0x422e25
or esi, 0xffffffff
push ebx
push 1
lea eax, [ebp - 0x410]
push 4
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
je 0x422e41
or esi, 0xffffffff
push ebx
push 1
lea eax, [ebp - 0x40c]
push 2
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
je 0x422e69
mov dword [ebp - 0x410], 0
or esi, 0xffffffff
jmp 0x422e76
movsx eax, word [ebp - 0x40c]
mov dword [ebp - 0x410], eax
push ebx
push 1
lea eax, [ebp - 0x40c]
push 2
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
je 0x422e9e
mov dword [ebp - 0x418], 0
or esi, 0xffffffff
jmp 0x422eab
movsx eax, word [ebp - 0x40c]
mov dword [ebp - 0x418], eax
push ebx
push 1
lea eax, [ebp - 0x40c]
push 2
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
je 0x422edd
or esi, 0xffffffff
mov dword [ebp - 0x498], 0
xor edi, edi
xor eax, eax
mov dword [ebp - 0x41c], eax
jmp 0x422ef0
movsx edi, word [ebp - 0x40c]
mov dword [ebp - 0x498], edi
mov dword [ebp - 0x41c], edi
push ebx
push 1
lea eax, [ebp - 0x40c]
push 2
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
je 0x422f16
mov eax, dword [ebp - 0x41c]
xor ecx, ecx
or esi, 0xffffffff
jmp 0x422f1f
movsx ecx, word [ebp - 0x40c]
mov eax, edi
cmp ecx, eax
jne 0x422f35
cmp dword [ebp - 0x418], 0
jne 0x422f35
cmp dword [ebp - 0x410], 0
je 0x422f3a
mov esi, 0xffffff99
push ebx
push 1
lea eax, [ebp - 0x410]
push 4
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
je 0x422f5a
xor edi, edi
or esi, 0xffffffff
jmp 0x422f60
mov edi, dword [ebp - 0x410]
push ebx
push 1
lea eax, [ebp - 0x410]
mov dword [ebp - 0x47c], edi
push 4
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
je 0x422f8e
mov dword [ebp - 0x478], 0
or esi, 0xffffffff
jmp 0x422f9a
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x478], eax
push ebx
push 1
lea eax, [ebp - 0x40c]
push 2
push eax
call fcn.004729cb
add esp, 0x10
cmp eax, 1
je 0x422fc2
mov dword [ebp - 0x494], 0
or esi, 0xffffffff
jmp 0x422fcf
movsx eax, word [ebp - 0x40c]
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x478]
mov edx, dword [ebp - 0x414]
lea eax, [edi + ecx]
cmp edx, eax
jb 0x423031
test esi, esi
jne 0x423031
mov eax, edx
mov dword [ebp - 0x49c], ebx
sub eax, edi
mov dword [ebp - 0x480], edx
sub eax, ecx
mov dword [ebp - 0x420], esi
push 0x80
mov dword [ebp - 0x490], eax
call fcn.0040e6f0
add esp, 4
lea esi, [ebp - 0x49c]
mov ecx, 0x20
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00472598
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret