Function at 0x46dea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c24d8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x5c
mov eax, dword [0x4e54b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x2c]
call fcn.00401d57
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
push 8
push 1
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0048ee90
add esp, 0x10
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 8
jne 0x46df1b
push 8
lea edx, [ebp - 0x1c]
push edx
call fcn.00403c34
add esp, 8
test eax, eax
jne 0x46df54
mov byte [ebp - 0x42], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGReader.0
mov dword [ebp - 4], 2
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401424
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGManager.0
mov al, byte [ebp - 0x42]
jmp 0x46e2c2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00404156
add esp, 8
push 8
mov edx, dword [ebp - 0x28]
push edx
call fcn.00403ba0
add esp, 8
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004044ff
add esp, 8
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0040b33f
add esp, 0x24
movzx edx, byte [ebp + 0xc]
cmp edx, 1
jne 0x46dff4
mov eax, dword [ebp - 0x38]
and eax, 4
jne 0x46dff2
mov byte [ebp - 0x39], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGReader.0
mov dword [ebp - 4], 3
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401424
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGManager.0
mov al, byte [ebp - 0x39]
jmp 0x46e2c2
jmp 0x46e008
mov ecx, dword [ebp - 0x38]
and ecx, 4
je 0x46e008
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040687b
add esp, 4
cmp dword [ebp - 0x38], 3
jne 0x46e01a
mov eax, dword [ebp - 0x28]
push eax
call fcn.00406f40
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x46e032
cmp dword [ebp - 0x4c], 8
jge 0x46e032
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00406f40
add esp, 4
push 0x10
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0040ae6b
add esp, 0xc
test eax, eax
je 0x46e054
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00406f40
add esp, 4
cmp dword [ebp - 0x4c], 8
jle 0x46e066
mov edx, dword [ebp - 0x28]
push edx
call fcn.00406872
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x46e078
mov eax, dword [ebp - 0x28]
push eax
call fcn.00406f64
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040498e
add esp, 8
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040b33f
add esp, 0x24
cmp dword [ebp - 0x38], 2
je 0x46e0ed
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGReader.0
mov dword [ebp - 4], 4
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401424
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGManager.0
mov al, byte [ebp - 0x32]
jmp 0x46e2c2
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x46e0fe
mov dword [ebp - 0x58], 0x20
jmp 0x46e105
mov dword [ebp - 0x58], 0x18
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00401659
mov byte [ebp - 0x44], al
movzx ecx, byte [ebp - 0x44]
test ecx, ecx
jne 0x46e15d
mov byte [ebp - 0x41], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGReader.0
mov dword [ebp - 4], 5
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401424
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGManager.0
mov al, byte [ebp - 0x41]
jmp 0x46e2c2
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004897f0
add esp, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x48], 0
jmp 0x46e19d
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [eax + 8]
jae 0x46e1d7
mov edx, dword [ebp - 0x40]
imul eax, dword [edx + 0x40], 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
sub edx, dword [ebp - 0x48]
sub edx, 1
mov ecx, dword [ebp - 0x40]
imul edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x38]
add ecx, edx
add ecx, eax
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
mov dword [eax + edx*4], ecx
jmp 0x46e194
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0040aa81
add esp, 4
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00404e20
add esp, 8
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00404e6d
add esp, 8
jmp 0x46e234
mov dword [ebp - 4], 0
jmp 0x46e26f
cmp dword [ebp - 0x30], 0
je 0x46e28e
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.00489866
add esp, 4
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x43], 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGReader.0
mov dword [ebp - 4], 8
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401424
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.TPNGManager.0
mov al, byte [ebp - 0x43]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a893
mov esp, ebp
pop ebp
ret 8