Function at 0x466ca0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b7c8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x578
push ebx
mov ebx, dword [esp + 0x58c]
push ebp
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x28], 0
test ebx, ebx
je 0x466e43
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x466ce0
sub eax, edx
je 0x466e43
mov ebp, dword [esp + 0x5a0]
cmp ebp, 1
jne 0x466e17
xor eax, eax
lea edx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x58], al
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], al
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x466d31
lea eax, [esp + 0x48]
push eax
call fcn.004a5430
add esp, 4
lea ecx, [esp + 0x48]
push 0x4c709c
push ecx
call fcn.00483f10
add esp, 8
lea edx, [esp + 0x34]
test eax, eax
je 0x466d7e
inc eax
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x466d65
lea edx, [esp + 0x34]
push edx
call fcn.004a5430
add esp, 4
jmp 0x466d8c
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x466d82
lea eax, [esp + 0x34]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x466d91
mov ecx, dword [str..png]
mov dl, byte [0x4c7624]
mov dword [eax], ecx
push 0x20
mov byte [eax + 4], dl
call fcn.00483793
add esp, 4
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x590], ecx
cmp eax, ecx
je 0x466dd7
push ecx
lea ecx, [esp + 0x38]
push ecx
push eax
mov ecx, ebx
call fcn.0045fdf0
xor ecx, ecx
jmp 0x466dd9
xor eax, eax
mov dword [esp + 0x590], 0xffffffff
mov dword [esp + 0x28], eax
cmp dword [eax + 8], ecx
jne 0x466e19
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x59c]
mov dword [edi], edx
mov edx, dword [eax + 0x10]
mov dword [edi + 4], edx
mov edx, esi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
call fcn.004600e0
jmp 0x46714f
xor ecx, ecx
xor edx, edx
cmp dword [0x912308], ecx
lea eax, [esp + 0x7c]
setne dl
push edx
push eax
push esi
push ebx
call fcn.004635c0
mov esi, eax
add esp, 0x10
mov dword [esp + 0x24], esi
test esi, esi
jne 0x466e85
jmp 0x4672b2
lea ecx, [esp + 0x5c]
push ecx
push esi
call fcn.00484b22
add esp, 8
cmp eax, 0xffffffff
je 0x466e77
push eax
call fcn.00484414
add esp, 4
push 0x4c70fc
push esi
call fcn.0048466b
mov esi, eax
add esp, 8
mov dword [esp + 0x24], eax
test esi, esi
jne 0x466e7e
xor eax, eax
jmp 0x4672b2
mov ebp, dword [esp + 0x5a0]
push 1
push 4
push esi
call fcn.004853aa
add esp, 0xc
push esi
push 1
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.00484992
add esp, 0x10
push esi
test eax, eax
je 0x467043
push 1
lea ecx, [esp + 0x24]
push 2
push ecx
call fcn.00484992
add esp, 0x10
test eax, eax
je 0x467042
movzx eax, word [esp + 0x14]
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
add edx, edx
push edx
call fcn.004836a3
mov ecx, eax
add esp, 4
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x467042
xor eax, eax
xor ebx, ebx
cmp ax, word [esp + 0x14]
jae 0x466f6f
lea ebp, [ecx + 8]
lea esp, [esp]
push esi
push 1
lea ecx, [ebp - 8]
push 4
push ecx
call fcn.00484992
push esi
push 1
lea edx, [ebp - 4]
push 4
push edx
call fcn.00484992
push esi
push 1
push 4
push ebp
call fcn.00484992
push esi
push 1
lea eax, [ebp + 4]
push 4
push eax
call fcn.00484992
add esp, 0x40
push esi
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call fcn.00484992
push esi
push 1
lea edx, [ebp + 0xc]
push 4
push edx
call fcn.00484992
movzx eax, word [esp + 0x34]
inc ebx
add esp, 0x20
add ebp, 0x18
cmp ebx, eax
jl 0x466f00
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x5a0]
cmp ebp, 1
lea edx, [ebp + ebp*2]
lea eax, [ecx + edx*8 - 0x18]
mov edx, dword [eax]
mov dword [edi], edx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov edx, dword [eax + 0x10]
mov dword [edi + 0x10], edx
mov eax, dword [eax + 0x14]
mov dword [edi + 0x14], eax
jle 0x466fe2
lea eax, [ebp - 1]
test eax, eax
jle 0x466fe2
lea ebx, [ecx + 0x14]
mov ebp, eax
lea ebx, [ebx]
mov ecx, dword [ebx]
push 1
push ecx
push esi
call fcn.004853aa
add esp, 0xc
cmp word [esp + 0x1c], 8
jne 0x466fd6
push 1
push 0x400
push esi
call fcn.004853aa
add esp, 0xc
add ebx, 0x18
sub ebp, 1
jne 0x466fb0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004835c6
mov eax, dword [edi + 0x14]
add eax, 7
add esp, 4
push eax
call fcn.004836a3
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x467042
test al, 7
je 0x467012
shr eax, 3
lea ebx, [eax*8 + 8]
jmp 0x467014
mov ebx, eax
cmp word [esp + 0x1c], 8
jne 0x467114
mov edx, dword [edi]
imul edx, dword [edi + 4]
push edx
call fcn.004836a3
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x467052
mov eax, dword [esp + 0x2c]
push eax
call fcn.004835c6
add esp, 4
push esi
call fcn.004854f7
add esp, 4
xor eax, eax
jmp 0x4672b2
push esi
push 0x100
lea ecx, [esp + 0x18c]
push 4
push ecx
call fcn.00484992
mov edx, dword [edi + 0x14]
push esi
push edx
push 1
push ebx
call fcn.00484992
push ebp
push ebx
call fcn.00467480
mov eax, dword [edi + 4]
mov ecx, dword [edi]
imul ecx, eax
mov dword [esp + 0x48], ecx
add esp, 0x28
xor ecx, ecx
test eax, eax
jle 0x467109
xor eax, eax
cmp dword [edi], eax
jle 0x467103
mov edx, dword [edi]
mov ebx, dword [esp + 0x20]
imul edx, ecx
add edx, eax
movzx esi, byte [edx + ebp]
lea edx, [edx + ebx*2]
movzx ebx, byte [esp + esi*4 + 0x186]
mov esi, dword [esp + 0x59c]
mov byte [edx + esi], bl
mov edx, dword [edi]
mov ebx, dword [esp + 0x20]
imul edx, ecx
add edx, eax
movzx esi, byte [edx + ebp]
add ebx, edx
mov edx, dword [esp + 0x59c]
mov dword [esp + 0x10], eax
mov al, byte [esp + esi*4 + 0x185]
mov byte [ebx + edx], al
mov esi, dword [edi]
mov eax, dword [esp + 0x10]
imul esi, ecx
add esi, eax
movzx ebx, byte [esi + ebp]
movzx ebx, byte [esp + ebx*4 + 0x184]
inc eax
mov byte [esi + edx], bl
cmp eax, dword [edi]
jl 0x467096
mov esi, dword [esp + 0x24]
inc ecx
cmp ecx, dword [edi + 4]
jl 0x467090
push ebp
call fcn.004835c6
add esp, 4
jmp 0x467132
mov eax, dword [edi + 0x14]
push esi
push eax
push 1
push ebx
call fcn.00484992
mov ecx, dword [esp + 0x5ac]
push ecx
push ebx
call fcn.00467480
add esp, 0x18
push esi
call fcn.004854f7
mov edx, dword [esp + 0x30]
add esp, 4
push edx
call fcn.004835c6
mov esi, dword [esp + 0x5a0]
add esp, 4
mov eax, dword [esp + 0x5a4]
dec eax
cmp eax, 0x13
ja case.0x467160.9
jmp dword [eax*4 + 0x4672cc]
push esi
push 0xfffffffffffffff6
push 0
push 0
push 0
jmp 0x467292
fld qword [0x4d67d8]
mov ebp, dword [edi + 4]
fld qword [0x4d6b88]
imul ebp, dword [edi]
xor ebx, ebx
call fcn.00488780
fstp qword [esp + 0x2c]
test ebp, ebp
jle case.0x467160.9
lea edi, [esi + ebp]
lea esi, [esi + ebp*2]
movzx ecx, byte [esi]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul qword [0x4d68b8]
fld qword [esp + 0x2c]
call fcn.00488780
fmul qword [0x4d68b0]
fnstcw word [esp + 0x18]
inc ebx
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x10], eax
inc esi
fldcw word [esp + 0x10]
inc edi
cmp ebx, ebp
fistp dword [esp + 0x10]
mov dl, byte [esp + 0x10]
mov byte [esi - 1], dl
fldcw word [esp + 0x18]
jl 0x4671a0
jmp case.0x467160.9
push esi
push 0xa
push 0
push 0
push 0x28
jmp 0x467292
mov ecx, dword [edi + 4]
push esi
push 0xfffffffffffffff6
push 0xa
push 0
push 0
push ecx
jmp 0x467296
mov edx, dword [edi + 4]
push esi
push 0xffffffffffffffe7
push 0x19
push 0
push 0
push edx
jmp 0x467296
push esi
push 0xffffffffffffffd8
push 0x19
push 0
push 0
jmp 0x467292
mov ecx, dword [edi + 4]
push esi
push 0xfffffffffffffffb
push 0xa
push 0
push 0
push ecx
jmp 0x467296
mov edx, dword [edi + 4]
push esi
push 0xffffffffffffffd8
push 0xf
push 0
push 0
push edx
jmp 0x467296
mov eax, dword [edi + 4]
imul eax, dword [edi]
lea eax, [eax + eax*2]
push eax
push 0
push esi
call fcn.00487bc0
add esp, 0xc
jmp case.0x467160.9
mov eax, dword [edi + 4]
imul eax, dword [edi]
lea ecx, [eax + eax*2]
push ecx
push 0xff
push esi
call fcn.00487bc0
add esp, 0xc
jmp case.0x467160.9
mov edx, dword [edi + 4]
push esi
push 0xa
push 0x14
push 0
push 0
push edx
jmp 0x467296
push esi
push 0xffffffffffffffd8
push 0xffffffffffffffcb
push 0x64
push 0xffffffffffffffc9
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
call fcn.00467570
add esp, 0x18
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4672ad
call fcn.00467320
mov eax, 1
mov ecx, dword [esp + 0x588]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x584
ret