Function at 0x42c0bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8ec
mov eax, dword [0x47c2a0]
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 0x42c395
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 0x42c129
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42bf40
jmp 0x42c297
mov dword [esp + 4], 0x42bf60
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 0x42c15c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42bf80
jmp 0x42c297
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 0x42c19c
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42bfa0
jmp 0x42c297
lea eax, [ebp - 0x618]
mov dword [ebp - 0x8cc], eax
cmp byte [ebp - 0x618], 0x50
jne 0x42c1d9
cmp byte [ebp - 0x617], 0x4d
jne 0x42c1d9
lea esi, [ebp - 0x5e8]
mov eax, 0x42bfc0
mov ecx, 0xc
cld
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
je 0x42c1f0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42bfcd
jmp 0x42c297
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 0x42c228
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42c000
jmp 0x42c297
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x200
mov dword [esp + 4], 2
mov eax, dword [0x47c2a0]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_fread
cmp eax, 0x200
je 0x42c267
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42c020
jmp 0x42c297
mov dword [esp], ebx
call sub.cygwin1.dll_fclose
mov eax, dword [0x47c2a0]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call fcn.004307eb
cmp ax, 0x4c4b
je 0x42c2b1
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42c060
mov eax, dword [0x47c2a0]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call fcn.00448be1
mov eax, 0xffffffff
jmp 0x42cba5
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 0x42c312
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 0x42c331
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 [0x46a018]
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 [0x46a018], eax
add dword [0x46a14c], 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], 0x42c087
mov edx, eax
mov eax, dword [0x47c2a0]
mov eax, dword [eax + 0x10]
test eax, eax
jns 0x42c3c4
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 [0x46a018]
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 0x42c404
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 0x42c438
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 [0x44d054]
mov dword [ebp + edx*4 - 0x8a8], eax
inc edi
mov dword [ebp - 0x8bc], edi
cmp dword [0x44d040], 1
jle 0x42c4ab
call sub.cygwin1.dll___getreent
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
test edx, edx
jne 0x42c47b
mov edx, 0x42c091
mov dword [esp + 0xc], edx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x18], 0
je 0x42c48f
mov edx, 0x42c092
jmp 0x42c494
mov edx, 0x42c091
mov dword [esp + 8], edx
mov dword [esp + 4], 0x42c0a1
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
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.0040ea83
mov eax, 0x800
cdq
idiv dword [ebp - 0x8b4]
imul eax, dword [0x46a018]
mov dword [esp + 4], eax
mov eax, edi
add eax, 4
mov dword [esp], eax
call fcn.0040ead4
mov dword [esp + 4], 1
mov eax, edi
add eax, 8
mov dword [esp], eax
call fcn.0040ea83
mov dword [esp + 4], 1
mov eax, edi
add eax, 0xa
mov dword [esp], eax
call fcn.0040ea83
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.0040ead4
mov dword [esp + 4], 1
mov eax, edi
add eax, 8
mov dword [esp], eax
call fcn.0040ead4
mov dword [esp + 4], ebx
mov eax, edi
add eax, 0xc
mov dword [esp], eax
call fcn.0040ead4
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.0040ead4
mov dword [esp + 4], ebx
mov eax, edi
add eax, 0x54
mov dword [esp], eax
call fcn.0040ead4
mov dword [esp + 4], 0x33
mov eax, edi
add eax, 0x58
mov dword [esp], eax
call fcn.0040ead4
mov dword [ebp - 0x8c0], 0
mov eax, dword [ebp - 0x8bc]
cmp dword [ebp - 0x8c0], eax
jge 0x42c860
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 0x42c744
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 [0x46a018]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8ac]
add eax, 4
mov dword [esp], eax
call fcn.0040ead4
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.0040ead4
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.0040ead4
mov eax, esi
imul eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8cc]
add eax, 8
jmp 0x42c840
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.0040ead4
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.0040ead4
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.0040ead4
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.0040ead4
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.0040ead4
mov dword [esp + 4], 0x33
mov eax, dword [ebp - 0x8cc]
add eax, 0x58
mov dword [esp], eax
call fcn.0040ead4
inc dword [ebp - 0x8c0]
mov edi, dword [ebp - 0x8bc]
cmp dword [ebp - 0x8c0], edi
jl 0x42c653
cmp dword [ebp - 0x8b8], 0
je 0x42cba0
mov eax, dword [ebp - 0x8b0]
add eax, 0x200
mov dword [ebp - 0x8cc], eax
cmp dword [ebp - 0x8bc], 2
jg 0x42c9bd
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.0040ead4
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x8b0]
add eax, 0x208
mov dword [esp], eax
call fcn.0040ead4
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x8b0]
add eax, 0x20c
mov dword [esp], eax
call fcn.0040ead4
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.0040ead4
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x8b0]
add eax, 0x254
mov dword [esp], eax
call fcn.0040ead4
mov dword [esp + 4], 0x33
mov eax, dword [ebp - 0x8b0]
add eax, 0x258
mov dword [esp], eax
call fcn.0040ead4
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 0x42cba0
mov eax, dword [ebp - 0x8b0]
add eax, 0x800
cmp dword [ebp - 0x8cc], eax
jne 0x42c9fe
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 0x42ca96
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 0x42ca46
cmp byte [ebx + 1], 0x4d
je 0x42ca55
sub dword [ebp - 0x8cc], 0x200
jmp 0x42cb7e
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.0040ead4
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 0x42cb76
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.0040ead4
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.0040ead4
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.0040ead4
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.0040ead4
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.0040ead4
mov dword [esp + 4], 0x33
mov eax, edi
add eax, 0x58
mov dword [esp], eax
call fcn.0040ead4
inc dword [ebp - 0x8c0]
add dword [ebp - 0x8cc], 0x200
mov edx, dword [ebp - 0x8bc]
cmp dword [ebp - 0x8c0], edx
jl 0x42c9d9
mov eax, 0
add esp, 0x8ec
pop ebx
pop esi
pop edi
pop ebp
ret