Function at 0x46df85
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x4b6074]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
xor eax, esp
mov dword [esp + 0x50], eax
cmp byte [ecx], 0
je 0x46dfae
mov dword [esp + 4], 0
jmp 0x46dfbd
push dword [ecx + 0x14]
call fcn.00467e3a
add esp, 4
mov dword [esp + 4], eax
push 0x4a602c
push esi
call fcn.0047d2fe
add esp, 8
test eax, eax
je 0x46e31f
mov ebp, eax
call fcn.00468f8f
xor esi, esi
mov edi, eax
mov eax, 0x8000c
inc esi
push esi
push eax
call fcn.00410d70
add esp, 8
mov ebx, eax
mov dword [esp + 0x1c], ebp
push ebp
mov eax, 0x8000c
push eax
push esi
push ebx
call fcn.0047d492
add esp, 0x10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], 0
mov dword [ecx], ebx
mov ebx, dword [esp + 4]
mov dword [ecx + 8], eax
xor eax, eax
test edi, edi
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
setne al
mov dword [ecx + 0x10], ecx
and al, bl
xor bl, 1
mov byte [esp + 3], al
xor eax, eax
mov dword [esp + 4], ebx
cmp eax, 0x40005
jbe 0x46e09f
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
sub edi, eax
add eax, esi
push edi
push eax
push esi
call fcn.00471560
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.0047d492
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 0x46e0a3
mov eax, dword [esp + 0x4c]
push eax
call fcn.00410beb
add esp, 4
mov esi, dword [esp + 0x4c]
mov dword [esp + 8], eax
push dword [esi + 0x10]
call fcn.00410beb
add esp, 4
push eax
push dword [esi + 0x10]
call fcn.00410b54
add esp, 8
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push dword [esi + 0x10]
call fcn.00410beb
add esp, 4
push eax
push dword [esi + 0x10]
call fcn.00410b54
add esp, 8
push edx
push eax
call fcn.00455fe9
add esp, 8
cmp byte [eax], 0
mov esi, eax
mov ebx, 0xffffffff
je 0x46e10f
push esi
call fcn.0047c1f8
add esp, 4
mov ebx, eax
push esi
call fcn.00410de6
add esp, 4
mov esi, dword [esp + 0x4c]
push dword [esi + 0x10]
call fcn.00410beb
add esp, 4
push eax
push dword [esi + 0x10]
call fcn.00410b54
add esp, 8
mov edi, dword [esp + 0x4c]
mov ebp, eax
mov esi, edx
push dword [edi + 0x10]
call fcn.00410beb
add esp, 4
push eax
push dword [edi + 0x10]
call fcn.00410b54
add esp, 8
mov ecx, dword [esp + 0x4c]
mov edi, eax
cmp dword [ecx + 0xc], 0
jne 0x46e2ec
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 8]
test eax, eax
js 0x46e175
test ebx, ebx
js 0x46e189
cmp eax, ebx
je 0x46e189
test byte [esp + 0x20], 1
jne 0x46e2ec
mov eax, dword [esp + 0x40]
jmp 0x46e045
xor ebx, ebx
mov dword [esp + 0x28], edx
inc ebx
push dword [ebx*4 + 0x4998a4]
push esi
push ebp
call fcn.00455f57
add esp, 0xc
test al, al
jne 0x46e1ad
inc ebx
cmp ebx, 3
jb 0x46e190
je 0x46e175
mov eax, dword [esp + 8]
cmp eax, 0x100
je 0x46e203
cmp eax, 6
je 0x46e218
test eax, eax
jne 0x46e175
mov esi, dword [esp + 0x68]
cmp byte [esi], 0
jne 0x46e175
push dword [esi + 0x14]
call fcn.0046802e
add esp, 4
cmp eax, 1
jne 0x46e175
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x14]
call fcn.00468063
add esp, 8
cmp dword [esp + 0x14], 4
jne 0x46e175
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, dword [esp + 0x2c]
jne 0x46e175
jmp 0x46e275
mov eax, dword [esp + 0x68]
cmp byte [eax], 0
je 0x46e27f
cmp dword [esp + 0xc], 0
jne 0x46e28a
jmp 0x46e175
mov esi, dword [esp + 0x68]
cmp byte [esi], 0
jne 0x46e175
push dword [esi + 0x14]
call fcn.0046802e
add esp, 4
cmp eax, 2
jne 0x46e175
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x14]
call fcn.00468063
add esp, 8
cmp dword [esp + 0x14], 0x10
jne 0x46e175
mov eax, dword [esp + 0x10]
movdqu xmm1, xmmword [esp + 0x2c]
movdqu xmm0, xmmword [eax]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x46e175
mov eax, dword [esp + 4]
mov byte [esp + 8], al
jmp 0x46e2ab
cmp byte [esp + 3], 0
je 0x46e175
mov byte [esp + 8], 1
push dword [esp + 0xc]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00455f57
add esp, 0xc
test al, al
je 0x46e175
mov eax, dword [esp + 0x68]
mov esi, eax
mov dword [eax + 0x20], ebx
push dword [eax + 0x24]
call fcn.00410de6
add esp, 4
push 1
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.00410d70
add esp, 8
mov dword [esi + 0x24], eax
push ebx
push edi
push eax
call fcn.00471560
add esp, 0xc
mov al, byte [esp + 8]
mov dword [esi + 0x28], ebx
mov dword [esp + 0x20], eax
jmp 0x46e175
push dword [esp + 0x1c]
call fcn.0047ce08
add esp, 4
push 0x8000c
mov esi, dword [esp + 0x1c]
push esi
call fcn.00467158
add esp, 8
push esi
call fcn.00410de6
add esp, 4
push dword [esp + 0xc]
call fcn.00410de6
add esp, 4
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046ef41
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret