Function at 0x464990
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x492fd2
mov eax, dword fs:[0]
push eax
mov eax, 0x100f4
call fcn.004754c0
mov eax, dword [0x4b1ae0]
xor eax, esp
mov dword [esp + 0x100f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1ae0]
xor eax, esp
push eax
lea eax, [esp + 0x10108]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x10118]
mov esi, dword [esp + 0x1011c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x10118], ebp
call fcn.00429c40
mov ecx, dword [esp + 0x20]
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x464b3e
lea edx, [esp + 0x5c]
push edx
call fcn.004316e0
mov edi, eax
push esi
lea eax, [esp + 0x48]
push str.Error_opening
push eax
mov byte [esp + 0x10120], 1
call fcn.0040bcc0
push 0x496d0c
push eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x1012c], 2
call fcn.0040bd80
push edi
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x10138], 3
call fcn.0040be40
add esp, 0x28
push 0xffffffffffffffff
push ebp
push eax
mov ecx, 0x4b0810
mov byte [esp + 0x1011c], 4
call fcn.0040b380
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x464aae
mov eax, dword [esp + 0x28]
push eax
call fcn.00473948
add esp, 4
mov edi, 0xf
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
cmp dword [esp + 0x90], esi
jb 0x464ad6
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00473948
add esp, 4
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x58], esi
jb 0x464afc
mov edx, dword [esp + 0x44]
push edx
call fcn.00473948
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
cmp dword [esp + 0x74], esi
jb 0x464b1c
mov eax, dword [esp + 0x60]
push eax
call fcn.00473948
add esp, 4
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], ebp
mov byte [ebx + 4], 0
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x464b37
push eax
call fcn.00473f71
add esp, 4
mov eax, ebx
jmp 0x464ccd
lea ecx, [esp + 0x94]
push ecx
call fcn.00465150
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 4
xor bl, bl
mov esi, 0x10
jmp 0x464b60
push 0
lea edx, [esp + 0x18]
push edx
push 0xffff
lea eax, [esp + 0x110]
push eax
push edi
call ebp
test eax, eax
jne 0x464bbc
lea ecx, [esp + 0x5c]
push ecx
mov bl, 1
call fcn.004316e0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4b0810
mov byte [esp + 0x1011c], 5
call fcn.0040b380
mov byte [esp + 0x10110], 0
cmp dword [esp + 0x74], esi
jb 0x464bbc
mov edx, dword [esp + 0x60]
push edx
call fcn.00473948
add esp, 4
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.00465180
add esp, 0xc
test bl, bl
jne 0x464be8
cmp dword [esp + 0x14], 0
ja 0x464b60
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xf4]
push ecx
call fcn.00465190
add esp, 8
test bl, bl
je 0x464c26
mov esi, dword [esp + 0x20]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
jmp 0x464cba
xor esi, esi
jmp 0x464c30
mov dl, byte [esp + esi + 0xf0]
mov al, dl
and al, 0xf0
cmp al, 0xa0
movzx eax, dl
mov ecx, eax
jae 0x464c4c
shr ecx, 4
add ecx, 0x30
jmp 0x464c52
shr ecx, 4
add ecx, 0x57
and dl, 0xf
and eax, 0xf
mov byte [esp + esi*2 + 0x104], cl
cmp dl, 0xa
jae 0x464c69
add eax, 0x30
jmp 0x464c6c
add eax, 0x57
mov byte [esp + esi*2 + 0x105], al
inc esi
cmp esi, 0x14
jl 0x464c30
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x104]
mov byte [esp + 0x12c], 0
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x464ca1
sub eax, edx
push eax
lea ecx, [esp + 0x108]
push ecx
mov ecx, esi
call fcn.0040b5a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x464ccb
push eax
call fcn.00473f71
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x10108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x100f0]
xor ecx, esp
call fcn.00474468
add esp, 0x10100
ret