Function at 0x46ce60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bcae6
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.004cea10
mov eax, dword [0x6441a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ebx
push edi
call fcn.004685c0
add esp, 8
test al, al
jne 0x46d02b
xor eax, eax
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 7
mov word [ebp - 0x1028], ax
mov ecx, dword [edi + 0x10]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x46cf12
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x46ceed
mov eax, dword [edi]
mov dword [ebp - 0x1030], eax
jmp 0x46cef3
mov dword [ebp - 0x1030], edi
lea esi, [ecx + eax]
call fcn.00473df0
push eax
lea eax, [ebp - 0x1028]
push eax
push esi
push dword [ebp - 0x1030]
call fcn.00473340
add esp, 0x10
push 0
lea eax, [ebp - 0x1028]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00478c40
mov eax, dword [ebp - 0x1038]
add esp, 0xc
test eax, eax
je 0x46cf47
mov byte [ebp - 0x1029], 0
cmp eax, 1
jne 0x46cf4e
mov byte [ebp - 0x1029], 1
mov edx, dword [ebp - 0x1014]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x46cf95
mov ecx, dword [ebp - 0x1028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cf8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d149
push edx
push ecx
call fcn.004ce3c6
add esp, 8
cmp byte [ebp - 0x1029], 0
jne 0x46d02b
push 0
push edi
lea ecx, [ebp - 0x1028]
call fcn.00468430
lea eax, [ebp - 0x1028]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.00477e80
add esp, 8
test eax, eax
jne 0x46cfdf
test edx, edx
jne 0x46cfdf
lea ecx, [ebp - 0x1028]
call fcn.00402360
mov al, 1
jmp 0x46d02d
lea ecx, [ebp - 0x1028]
call fcn.00402360
cmp dword [edi + 0x14], 0x10
jb 0x46cff2
mov edi, dword [edi]
push 0x62bf20
push edi
call fcn.00472450
mov esi, eax
add esp, 8
test esi, esi
je 0x46d02b
cmp dword [ebx + 0x14], 0x10
jb 0x46d00e
mov ebx, dword [ebx]
push 0x5c1db4
push ebx
call fcn.00472450
mov edi, eax
add esp, 8
test edi, edi
jne 0x46d04b
push esi
call fcn.004d8786
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cdf5d
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push esi
call fcn.004dbfb8
push esi
call fcn.004dba8d
push edi
mov dword [ebp - 0x1034], eax
call fcn.004dba8d
push 0
mov ebx, eax
push 0
push esi
mov dword [ebp - 0x1030], ebx
call fcn.004dbfb8
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004d0100
push esi
call fcn.004dbc4b
add esp, 0x30
test eax, eax
jne 0x46d0fa
nop dword [eax]
push esi
push 0x1000
lea eax, [ebp - 0x1010]
push 1
push eax
call fcn.004df766
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x46d0f4
push esi
call fcn.004dbc77
add esp, 4
test eax, eax
jne 0x46d0f4
push edi
push ebx
lea eax, [ebp - 0x1010]
push 1
push eax
call fcn.004d8a7e
push edi
call fcn.004dbc77
add esp, 0x14
test eax, eax
jne 0x46d0f4
push esi
call fcn.004dbc4b
add esp, 4
test eax, eax
je 0x46d0a0
mov ebx, dword [ebp - 0x1030]
push edi
call fcn.004dba8d
mov ecx, dword [ebp - 0x1034]
add esp, 4
add ecx, ebx
cmp ecx, eax
jle 0x46d133
push ebx
push edi
call fcn.004e27c9
add esp, 4
push eax
call fcn.004e5cdc
push esi
call fcn.004d8786
push edi
call fcn.004d8786
add esp, 0x10
jmp 0x46d02b
push esi
call fcn.004d8786
push edi
call fcn.004d8786
add esp, 8
mov al, 1
jmp 0x46d02d
call fcn.004d8605
int3