Function at 0x45b370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d53a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x90]
push 1
push 0
add ecx, 0x108
push 0x2d0
push 0x500
push 0
mov eax, dword [ecx]
push 0
call dword [eax + 0xd0]
mov ecx, dword [esi + 0x94]
push 1
push 0
add ecx, 0x108
push 0x2d0
push 0x500
push 0
mov eax, dword [ecx]
push 0
call dword [eax + 0xd0]
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0x84], eax
mov eax, dword [esi]
push 0xbbe
mov eax, dword [eax + 0xb8]
call eax
mov dword [esi + 0xa0], 0
xor ecx, ecx
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xe8], 0
mov dword [esi + 0xec], 0
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
movzx eax, al
mov dword [esi + 0xf8], 0
mov dword [ebp - 0x4c], eax
mov dword [esi + 0xfc], 0
mov dword [ebp - 0x48], ecx
nop dword [eax]
mov edx, ecx
mov edi, ecx
shr edx, 2
and edi, 3
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], edi
push 1
lea eax, [edi + edx*4]
mov dword [esi + eax*4 + 0xe0], 1
mov eax, dword [esi + 0x84]
lea eax, [ecx + eax*8]
lea ecx, [eax + 0x8c]
mov dword [ebp - 0x50], ecx
imul ecx, edi, 0x136
add ecx, 0x1f
mov dword [ebp - 0x40], ecx
imul ecx, edx, 0xd2
mov edx, dword [esi + 0x88]
add ecx, 0xaa
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0x90]
add ecx, 0x108
cmp eax, dword [ebp - 0x4c]
lea eax, [edx + 0x108]
mov edi, dword [ecx]
jge 0x45b769
push 0
neg edx
push 0
sbb edx, edx
and edx, eax
push edx
push 0xaa
push 0x11e
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call dword [edi + 0x48]
mov edi, dword [esi + 0x9c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.CFile.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
mov dword [ebp - 0x24], edi
call dword [eax + 0x34]
mov edx, dword [ebp - 0x50]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004afe10
push 0
push 0
push 3
push 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
push 1
cmovae eax, dword [ebp - 0x3c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
mov eax, dword [edi]
mov ecx, edi
jne 0x45b60e
push 0
push 0x120
push 0x200
push 0
push 0
mov dword [ebp - 0x1c], 0
call dword [eax + 0xd8]
lea ecx, [ebp - 0x3c]
call fcn.00428650
mov byte [ebp - 4], 3
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x38]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CFile.0
call fcn.00475690
mov dword [ebp - 4], 0xffffffff
jmp 0x45b753
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x90000
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push 0xff
push 0x120
push 0x200
push 0
push 0
call dword [eax + 0xd8]
lea ecx, [ebp - 0x3c]
call fcn.00428650
mov byte [ebp - 4], 5
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x38]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], vtable.CFile.0
call fcn.00475690
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x9c]
push 4
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
push eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ecx, dword [esi + 0x9c]
mov edi, dword [esi + 0x98]
push 0xcc0020
push 0x120
mov eax, dword [ecx]
push 0x200
push 0
push 0
mov eax, dword [eax + 0x20]
call eax
push eax
mov eax, dword [edi]
mov ecx, edi
push 0x85
push 0xee
push 0
mov eax, dword [eax + 0x20]
push 0
call eax
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
add edi, 5
mov ecx, dword [esi + 0x94]
add edx, 0x18
push 0
push 0
push 0
push dword [esi + 0x98]
mov eax, dword [ecx + 0x108]
add ecx, 0x108
push 0x85
push 0xee
push edi
push edx
call dword [eax + 0x48]
mov ecx, dword [esi + 0x94]
mov edx, dword [ebp - 0x40]
add ecx, 0x108
push 0xff
push 0x85
push 0xee
mov eax, dword [ecx]
add edx, 0x18
push edi
push edx
call dword [eax + 0xd8]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + eax*4]
mov dword [esi + eax*4 + 0xa0], 1
jmp 0x45b78a
push 0x1fe
neg edx
push 0
sbb edx, edx
and edx, eax
push edx
push 0xaa
push 0x11e
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call dword [edi + 0x48]
mov ecx, dword [ebp - 0x48]
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, 8
jl 0x45b4b0
xor edi, edi
nop dword [eax]
push 0
mov eax, edi
mov ecx, esi
push 0
or eax, 0x200
push eax
call fcn.0045af10
inc edi
cmp edi, 0xa
jl 0x45b7a0
push 0
push 0
push 0x300
mov ecx, esi
call fcn.0045af10
push 0
push 0
push 0x301
mov ecx, esi
call fcn.0045af10
push 0
push 0
push 0x400
mov ecx, esi
call fcn.0045af10
xor edi, edi
mov dword [ebp - 0x40], edi
nop
cmp edi, dword [0x53733c]
jne 0x45b801
push 1
push 0xd0
jmp 0x45b86d
call fcn.00499b50
mov eax, dword [eax + 8]
cmp edi, 1
jne 0x45b822
cmp dword [0x53733c], edi
je 0x45b860
mov eax, dword [eax + 0x18]
cmp byte [eax + 0xbba], 0
jmp 0x45b85e
test edi, edi
jne 0x45b83a
cmp dword [0x53733c], edi
je 0x45b860
mov eax, dword [eax + 0x18]
cmp byte [eax + 0xbbb], 0
jmp 0x45b85e
cmp edi, 2
jne 0x45b853
cmp dword [0x53733c], edi
je 0x45b860
mov eax, dword [eax + 0x18]
cmp byte [eax + 0xbbc], 0
jmp 0x45b85e
cmp edi, 3
jne 0x45b869
cmp dword [0x53733c], edi
jne 0x45b869
push 1
push 0x138
jmp 0x45b86d
push 1
push 0
imul eax, dword [ebp - 0x40], 0x61
mov edx, dword [esi + 0x88]
mov ecx, dword [esi + 0x90]
add ecx, 0x108
add eax, 0x198
push eax
mov edi, dword [ecx]
lea eax, [edx + 0x108]
neg edx
sbb edx, edx
and edx, eax
imul eax, dword [ebp - 0x40], 0x62
push edx
push 0x68
push 0x61
push 1
add eax, 0xf
push eax
call dword [edi + 0x48]
mov edi, dword [ebp - 0x40]
inc edi
mov dword [ebp - 0x40], edi
cmp edi, 4
jl 0x45b7f0
cmp dword [ebp + 0xc], 0
je 0x45b912
call fcn.00475d70
cmp dword [eax + 0x68], 0
je 0x45b912
mov eax, dword [vtable.CCriticalSection.0]
mov ecx, 0x565b7c
mov dword [ebp - 0x24], 0x565b7c
call dword [eax + 4]
mov dword [ebp - 4], 8
call fcn.00475d70
mov esi, eax
mov ecx, esi
call fcn.00477790
test eax, eax
jne 0x45b8fe
mov ecx, esi
call fcn.00477860
mov dword [ebp - 4], 9
mov ecx, 0x565b7c
mov eax, dword [vtable.CCriticalSection.0]
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 8