Function at 0x46e163
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x4b507c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
xor eax, esp
mov dword [esp + 0x50], eax
cmp byte [ecx], 0
je 0x46e18c
mov dword [esp + 0xc], 0
jmp 0x46e19b
push dword [ecx + 0x14]
call fcn.00468023
add esp, 4
mov dword [esp + 0xc], eax
push 0x4a5793
push esi
call fcn.0047d47e
add esp, 8
test eax, eax
je 0x46e4fb
mov edi, eax
call fcn.0046915f
mov dword [esp + 8], eax
xor eax, eax
xor ebp, ebp
mov esi, 0x8000c
inc ebp
push eax
push ebp
push esi
call fcn.00410b50
add esp, 0xc
mov ebx, eax
mov dword [esp + 0x1c], edi
push edi
push esi
push ebp
push eax
call fcn.0047d612
add esp, 0x10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], 0
mov dword [ecx], ebx
mov dword [ecx + 8], eax
mov eax, 0
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0xc]
xor al, 1
mov dword [ecx + 0x10], ecx
mov byte [esp + 3], al
xor eax, eax
cmp eax, 0x40005
jbe 0x46e270
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
sub edi, eax
add eax, esi
push edi
push eax
push esi
call fcn.004716e0
add esp, 0xc
mov eax, 0x8000c
lea ecx, [esi + edi]
sub eax, edi
push dword [esp + 0x1c]
push eax
push 1
push ecx
call fcn.0047d612
add esp, 0x10
add edi, eax
xor eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x4c], eax
jmp 0x46e274
mov eax, dword [esp + 0x4c]
push eax
call fcn.004109b2
add esp, 4
mov esi, dword [esp + 0x4c]
mov dword [esp + 4], eax
push dword [esi + 0x10]
call fcn.004109b2
add esp, 4
push eax
push dword [esi + 0x10]
call fcn.0041091b
add esp, 8
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push dword [esi + 0x10]
call fcn.004109b2
add esp, 4
push eax
push dword [esi + 0x10]
call fcn.0041091b
add esp, 8
push edx
push eax
call fcn.0045633a
add esp, 8
cmp byte [eax], 0
mov esi, eax
mov ebx, 0xffffffff
je 0x46e2e0
push esi
call fcn.0047c378
add esp, 4
mov ebx, eax
push esi
call fcn.00410bcd
add esp, 4
mov esi, dword [esp + 0x4c]
push dword [esi + 0x10]
call fcn.004109b2
add esp, 4
push eax
push dword [esi + 0x10]
call fcn.0041091b
add esp, 8
mov edi, dword [esp + 0x4c]
mov ebp, eax
mov esi, edx
push dword [edi + 0x10]
call fcn.004109b2
add esp, 4
push eax
push dword [edi + 0x10]
call fcn.0041091b
add esp, 8
mov ecx, dword [esp + 0x4c]
mov edi, eax
cmp dword [ecx + 0xc], 0
jne 0x46e4c8
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 8]
test eax, eax
js 0x46e4b8
test ebx, ebx
js 0x46e34e
cmp eax, ebx
jne 0x46e4b8
xor ebx, ebx
mov dword [esp + 0x28], edx
inc ebx
push dword [ebx*4 + 0x4998a4]
push esi
push ebp
call fcn.004562a8
add esp, 0xc
test al, al
jne 0x46e375
inc ebx
cmp ebx, 3
jne 0x46e355
jmp 0x46e4b8
mov eax, dword [esp + 4]
cmp eax, 0x100
je 0x46e3e2
cmp eax, 6
je 0x46e423
test eax, eax
jne 0x46e4b8
mov esi, dword [esp + 0x68]
cmp byte [esi], 0
jne 0x46e4b8
push dword [esi + 0x14]
call fcn.00468200
add esp, 4
cmp eax, 1
jne 0x46e4b8
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x14]
call fcn.0046823c
add esp, 8
cmp dword [esp + 0x14], 4
jne 0x46e4b8
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, dword [esp + 0x2c]
jne 0x46e4b8
jmp 0x46e474
mov eax, dword [esp + 0x68]
cmp byte [eax], 0
setne al
cmp dword [esp + 8], 0
je 0x46e4b8
or al, byte [esp + 0xc]
je 0x46e4b8
mov byte [esp + 4], 1
push dword [esp + 8]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004562a8
add esp, 0xc
test al, al
jne 0x46e47c
jmp 0x46e4b8
mov esi, dword [esp + 0x68]
cmp byte [esi], 0
jne 0x46e4b8
push dword [esi + 0x14]
call fcn.00468200
add esp, 4
cmp eax, 2
jne 0x46e4b8
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x14]
call fcn.0046823c
add esp, 8
cmp dword [esp + 0x14], 0x10
jne 0x46e4b8
mov eax, dword [esp + 0x10]
movdqu xmm1, xmmword [esp + 0x2c]
movdqu xmm0, xmmword [eax]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x46e4b8
mov al, byte [esp + 3]
mov byte [esp + 4], al
mov esi, dword [esp + 0x68]
mov dword [esi + 0x20], ebx
push dword [esi + 0x24]
call fcn.00410bcd
add esp, 4
push 0
push 1
mov ebx, dword [esp + 0x30]
push ebx
call fcn.00410b50
add esp, 0xc
mov dword [esi + 0x24], eax
push ebx
push edi
push eax
call fcn.004716e0
add esp, 0xc
mov al, byte [esp + 4]
mov dword [esi + 0x28], ebx
mov dword [esp + 0x20], eax
test byte [esp + 0x20], 1
jne 0x46e4c8
mov eax, dword [esp + 0x40]
jmp 0x46e216
push dword [esp + 0x1c]
call fcn.0047cf88
add esp, 4
push 0x8000c
mov esi, dword [esp + 0x1c]
push esi
call fcn.00467374
add esp, 8
push esi
call fcn.00410bcd
add esp, 4
push dword [esp + 8]
call fcn.00410bcd
add esp, 4
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046f0c8
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret