Function at 0x42a32b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8ec
mov eax, dword [0x4a2750]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x8b0], eax
mov dword [ebp - 0x8b8], 0
mov dword [ebp - 0x8bc], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x42a605
lea eax, [ebp - 0x878]
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll__stat64
test eax, eax
jns 0x42a399
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42a1b0
jmp 0x42a507
mov dword [esp + 4], 0x42a1d0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call sub.cygwin1.dll__fopen64
mov ebx, eax
test eax, eax
jne 0x42a3cc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42a1f0
jmp 0x42a507
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x800
mov dword [esp + 4], 1
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sub.cygwin1.dll_fread
cmp eax, 0x800
je 0x42a40c
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42a210
jmp 0x42a507
lea eax, [ebp - 0x618]
mov dword [ebp - 0x8cc], eax
cmp byte [ebp - 0x618], 0x50
jne 0x42a449
cmp byte [ebp - 0x617], 0x4d
jne 0x42a449
lea esi, [ebp - 0x5e8]
mov eax, 0x42a230
mov ecx, 0xc
cld
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x42a460
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42a23d
jmp 0x42a507
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0xfffffc00
mov dword [esp + 8], 0xffffffff
mov dword [esp], ebx
call sub.cygwin1.dll__fseeko64
test eax, eax
je 0x42a498
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42a270
jmp 0x42a507
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x200
mov dword [esp + 4], 2
mov eax, dword [0x4a2750]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_fread
cmp eax, 0x200
je 0x42a4d7
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42a290
jmp 0x42a507
mov dword [esp], ebx
call sub.cygwin1.dll_fclose
mov eax, dword [0x4a2750]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call fcn.0042e819
cmp ax, 0x4c4b
je 0x42a521
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42a2d0
mov eax, dword [0x4a2750]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call fcn.004505f1
mov eax, 0xffffffff
jmp 0x42ae15
mov ebx, dword [ebp - 0x850]
mov esi, dword [ebp - 0x84c]
mov edx, ebx
mov ecx, esi
add edx, 0xfffff400
adc ecx, 0xffffffff
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x28], 0x800
mov dword [edi + 0x2c], 0
mov dword [edi + 0x20], 0
mov edi, dword [ebp - 0x8bc]
lea eax, [edi + edi*4]
lea eax, [ebp + eax*4 - 0x898]
mov dword [ebp - 0x8c4], eax
mov eax, edx
mov edx, ecx
test ecx, ecx
jns 0x42a582
mov eax, ebx
mov edx, esi
add eax, 0xfffffbff
adc edx, 0xffffffff
mov ecx, eax
shrd ecx, edx, 0xb
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
and eax, 0x7ff
mov edx, 0
mov edi, edx
or edi, eax
je 0x42a5a1
add ecx, 1
mov eax, dword [ebp - 0x8c4]
mov dword [eax], ecx
mov edx, dword [ebp - 0x8bc]
lea ecx, [edx + edx*4]
lea ecx, [ebp + ecx*4 - 0x18]
lea edx, [ecx - 0x890]
mov dword [edx + 8], 2
mov eax, dword [ebp - 0x8cc]
add eax, 0x30
mov dword [edx + 4], eax
mov eax, dword [0x45a018]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [edx + 0xc], eax
mov dword [ecx - 0x890], 0
inc dword [ebp - 0x8b8]
mov eax, dword [ecx - 0x880]
add dword [0x45a018], eax
add dword [0x45a184], eax
inc dword [ebp - 0x8bc]
mov esi, dword [ebp - 0x8bc]
lea eax, [esi + esi*4]
lea eax, [ebp + eax*4 - 0x8a8]
mov dword [eax + 8], 4
mov dword [eax + 4], 0x42a2f7
mov edx, eax
mov eax, dword [0x4a2750]
mov eax, dword [eax + 0x10]
test eax, eax
jns 0x42a634
add eax, 3
sar eax, 2
mov dword [edx + 0xc], eax
mov edi, dword [ebp - 0x8bc]
lea eax, [edi + edi*4]
lea eax, [ebp + eax*4 - 0x18]
lea edi, [eax - 0x880]
mov edx, dword [0x45a018]
sub edx, dword [eax - 0x884]
mov dword [ebp - 0x8d0], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
test edx, edx
jns 0x42a674
add eax, 0x7ff
adc edx, 0
mov ecx, eax
shrd ecx, edx, 0xb
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
mov dword [ebp - 0x8e0], eax
mov dword [ebp - 0x8dc], edx
mov eax, dword [ebp - 0x8e0]
and eax, 0x7ff
mov edx, 0
mov esi, edx
or esi, eax
je 0x42a6a8
add ecx, 1
mov eax, dword [ebp - 0x8d0]
sub eax, ecx
mov dword [edi], eax
mov edi, dword [ebp - 0x8bc]
lea edx, [edi + edi*4]
mov eax, dword [0x458020]
mov dword [ebp + edx*4 - 0x8a8], eax
inc edi
mov dword [ebp - 0x8bc], edi
cmp dword [0x45800c], 1
jle 0x42a71b
call sub.cygwin1.dll___getreent
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
test edx, edx
jne 0x42a6eb
mov edx, 0x42a301
mov dword [esp + 0xc], edx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 0
je 0x42a6ff
mov edx, 0x42a302
jmp 0x42a704
mov edx, 0x42a301
mov dword [esp + 8], edx
mov dword [esp + 4], 0x42a311
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
cmp dword [ebp - 0x8b8], 0
setne al
movzx eax, al
dec eax
and eax, 0xfffffa00
add eax, 0x800
mov dword [ebp - 0x8b4], eax
mov esi, dword [ebp - 0x8b0]
mov dword [ebp - 0x8ac], esi
mov byte [esi], 0x45
mov edi, dword [ebp - 0x8b0]
mov byte [edi + 1], 0x52
mov dword [esp + 4], eax
mov eax, edi
add eax, 2
mov dword [esp], eax
call fcn.0042471e
mov eax, 0x800
cdq
idiv dword [ebp - 0x8b4]
imul eax, dword [0x45a018]
mov dword [esp + 4], eax
mov eax, edi
add eax, 4
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], 1
mov eax, edi
add eax, 8
mov dword [esp], eax
call fcn.0042471e
mov dword [esp + 4], 1
mov eax, edi
add eax, 0xa
mov dword [esp], eax
call fcn.0042471e
add edi, dword [ebp - 0x8b4]
mov byte [edi], 0x50
mov byte [edi + 1], 0x4d
mov ebx, dword [ebp - 0x8bc]
inc ebx
mov dword [esp + 4], ebx
mov eax, edi
add eax, 4
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], 1
mov eax, edi
add eax, 8
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], ebx
mov eax, edi
add eax, 0xc
mov dword [esp], eax
call fcn.0042476f
mov dword [edi + 0x10], 0x6c707041
mov dword [edi + 0x14], 0x65
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0x6c707041
mov dword [edi + 0x34], 0x61705f65
mov dword [edi + 0x38], 0x74697472
mov dword [edi + 0x3c], 0x5f6e6f69
mov dword [edi + 0x40], 0x70616d
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [esp + 4], 0
mov eax, edi
add eax, 0x50
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], ebx
mov eax, edi
add eax, 0x54
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], 0x33
mov eax, edi
add eax, 0x58
mov dword [esp], eax
call fcn.0042476f
mov dword [ebp - 0x8c0], 0
mov eax, dword [ebp - 0x8bc]
cmp dword [ebp - 0x8c0], eax
jge 0x42aad0
mov eax, dword [ebp - 0x8c0]
add eax, 2
imul eax, dword [ebp - 0x8b4]
add eax, dword [ebp - 0x8b0]
mov dword [ebp - 0x8cc], eax
mov edx, dword [ebp - 0x8c0]
lea eax, [edx + edx*4]
lea ebx, [ebp + eax*4 - 0x8a8]
cmp dword [ebx + 8], 2
jne 0x42a9b4
lea eax, [ebp - 0x818]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x8ac]
mov dword [esp], ecx
call sub.cygwin1.dll_memcpy
mov edx, 0x800
mov eax, edx
cdq
idiv dword [ebp - 0x8b4]
mov esi, eax
imul eax, dword [0x45a018]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8ac]
add eax, 4
mov dword [esp], eax
call fcn.0042476f
mov eax, esi
imul eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8ac]
add eax, 0x12
mov dword [esp], eax
call fcn.0042476f
lea eax, [ebp - 0x618]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x8cc]
mov dword [esp], edx
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x8bc]
inc eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 4
mov dword [esp], eax
call fcn.0042476f
mov eax, esi
imul eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 8
jmp 0x42aab0
mov ecx, dword [ebp - 0x8cc]
mov byte [ecx], 0x50
mov byte [ecx + 1], 0x4d
mov eax, dword [ebp - 0x8bc]
inc eax
mov dword [esp + 4], eax
mov eax, ecx
add eax, 4
mov dword [esp], eax
call fcn.0042476f
mov esi, dword [ebp - 0x8c0]
lea ebx, [esi + esi*4]
lea ebx, [ebp + ebx*4 - 0x18]
lea esi, [ebx - 0x890]
mov eax, dword [esi + 0xc]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 8
mov dword [esp], eax
call fcn.0042476f
mov eax, dword [ebx - 0x880]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 0xc
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 8], 0x20
mov eax, dword [ebx - 0x890]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 0x10
mov dword [esp], eax
call sub.cygwin1.dll_strncpy
mov dword [esp + 8], 0x20
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 0x30
mov dword [esp], eax
call sub.cygwin1.dll_strncpy
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x8cc]
add eax, 0x50
mov dword [esp], eax
call fcn.0042476f
mov eax, dword [ebx - 0x880]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 0x54
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], 0x33
mov eax, dword [ebp - 0x8cc]
add eax, 0x58
mov dword [esp], eax
call fcn.0042476f
inc dword [ebp - 0x8c0]
mov edi, dword [ebp - 0x8bc]
cmp dword [ebp - 0x8c0], edi
jl 0x42a8c3
cmp dword [ebp - 0x8b8], 0
je 0x42ae10
mov eax, dword [ebp - 0x8b0]
add eax, 0x200
mov dword [ebp - 0x8cc], eax
cmp dword [ebp - 0x8bc], 2
jg 0x42ac2d
mov edx, dword [ebp - 0x8b0]
mov byte [edx + 0x200], 0x50
mov byte [eax + 1], 0x4d
mov ebx, dword [ebp - 0x8bc]
inc ebx
mov dword [esp + 4], ebx
mov eax, edx
add eax, 0x204
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x8b0]
add eax, 0x208
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x8b0]
add eax, 0x20c
mov dword [esp], eax
call fcn.0042476f
mov ecx, dword [ebp - 0x8cc]
mov dword [ecx + 0x10], 0x6c707041
mov dword [ecx + 0x14], 0x65
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0x6c707041
mov dword [ecx + 0x34], 0x61705f65
mov dword [ecx + 0x38], 0x74697472
mov dword [ecx + 0x3c], 0x5f6e6f69
mov dword [ecx + 0x40], 0x70616d
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x8b0]
add eax, 0x250
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x8b0]
add eax, 0x254
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], 0x33
mov eax, dword [ebp - 0x8b0]
add eax, 0x258
mov dword [esp], eax
call fcn.0042476f
mov ebx, dword [ebp - 0x8b0]
add ebx, 0x400
mov dword [ebp - 0x8cc], ebx
mov dword [ebp - 0x8c0], 0
mov esi, dword [ebp - 0x8bc]
cmp dword [ebp - 0x8c0], esi
jge 0x42ae10
mov eax, dword [ebp - 0x8b0]
add eax, 0x800
cmp dword [ebp - 0x8cc], eax
jne 0x42ac6e
mov edi, dword [ebp - 0x8b0]
add edi, 0xa00
mov dword [ebp - 0x8cc], edi
mov edx, dword [ebp - 0x8c0]
lea eax, [edx + edx*4]
cmp dword [ebp + eax*4 - 0x8a0], 2
jne 0x42ad06
lea eax, [ebp - 0x418]
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x8cc]
mov dword [esp], ecx
call sub.cygwin1.dll_memcpy
mov ebx, dword [ebp - 0x8cc]
cmp byte [ebx], 0x50
jne 0x42acb6
cmp byte [ebx + 1], 0x4d
je 0x42acc5
sub dword [ebp - 0x8cc], 0x200
jmp 0x42adee
mov eax, dword [ebp - 0x8bc]
inc eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 4
mov dword [esp], eax
call fcn.0042476f
mov esi, dword [ebp - 0x8c0]
lea eax, [esi + esi*4]
mov eax, dword [ebp + eax*4 - 0x89c]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 8
jmp 0x42ade6
mov edi, dword [ebp - 0x8cc]
mov byte [edi], 0x50
mov byte [edi + 1], 0x4d
mov eax, dword [ebp - 0x8bc]
inc eax
mov dword [esp + 4], eax
mov eax, edi
add eax, 4
mov dword [esp], eax
call fcn.0042476f
mov eax, dword [ebp - 0x8c0]
lea ebx, [eax + eax*4]
lea ebx, [ebp + ebx*4 - 0x18]
lea esi, [ebx - 0x890]
mov eax, dword [esi + 0xc]
shl eax, 2
mov dword [esp + 4], eax
mov eax, edi
add eax, 8
mov dword [esp], eax
call fcn.0042476f
mov eax, dword [ebx - 0x880]
shl eax, 2
mov dword [esp + 4], eax
mov eax, edi
add eax, 0xc
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 8], 0x20
mov eax, dword [ebx - 0x890]
mov dword [esp + 4], eax
mov eax, edi
add eax, 0x10
mov dword [esp], eax
call sub.cygwin1.dll_strncpy
mov dword [esp + 8], 0x20
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, edi
add eax, 0x30
mov dword [esp], eax
call sub.cygwin1.dll_strncpy
mov dword [esp + 4], 0
mov eax, edi
add eax, 0x50
mov dword [esp], eax
call fcn.0042476f
mov eax, dword [ebx - 0x880]
shl eax, 2
mov dword [esp + 4], eax
mov eax, edi
add eax, 0x54
mov dword [esp], eax
call fcn.0042476f
mov dword [esp + 4], 0x33
mov eax, edi
add eax, 0x58
mov dword [esp], eax
call fcn.0042476f
inc dword [ebp - 0x8c0]
add dword [ebp - 0x8cc], 0x200
mov edx, dword [ebp - 0x8bc]
cmp dword [ebp - 0x8c0], edx
jl 0x42ac49
mov eax, 0
add esp, 0x8ec
pop ebx
pop esi
pop edi
pop ebp
ret