Function at 0x460a70
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e862
mov eax, dword fs:[0]
push eax
mov eax, 0x100f4
call fcn.00471590
mov eax, dword [0x4acab8]
xor eax, esp
mov dword [esp + 0x100f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4acab8]
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.00427f10
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 0x460c1e
lea edx, [esp + 0x5c]
push edx
call fcn.0042f670
mov edi, eax
push esi
lea eax, [esp + 0x48]
push str.Error_opening
push eax
mov byte [esp + 0x10120], 1
call fcn.0040bcf0
push 0x49297c
push eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x1012c], 2
call fcn.0040bdb0
push edi
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x10138], 3
call fcn.0040be70
add esp, 0x28
push 0xffffffffffffffff
push ebp
push eax
mov ecx, 0x4ab808
mov byte [esp + 0x1011c], 4
call fcn.0040b360
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x460b8e
mov eax, dword [esp + 0x28]
push eax
call fcn.0046fa18
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 0x460bb6
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x58], esi
jb 0x460bdc
mov edx, dword [esp + 0x44]
push edx
call fcn.0046fa18
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
cmp dword [esp + 0x74], esi
jb 0x460bfc
mov eax, dword [esp + 0x60]
push eax
call fcn.0046fa18
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 0x460c17
push eax
call fcn.00470041
add esp, 4
mov eax, ebx
jmp 0x460dad
lea ecx, [esp + 0x94]
push ecx
call fcn.00461230
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 4
xor bl, bl
mov esi, 0x10
jmp 0x460c40
push 0
lea edx, [esp + 0x18]
push edx
push 0xffff
lea eax, [esp + 0x110]
push eax
push edi
call ebp
test eax, eax
jne 0x460c9c
lea ecx, [esp + 0x5c]
push ecx
mov bl, 1
call fcn.0042f670
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4ab808
mov byte [esp + 0x1011c], 5
call fcn.0040b360
mov byte [esp + 0x10110], 0
cmp dword [esp + 0x74], esi
jb 0x460c9c
mov edx, dword [esp + 0x60]
push edx
call fcn.0046fa18
add esp, 4
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.00461260
add esp, 0xc
test bl, bl
jne 0x460cc8
cmp dword [esp + 0x14], 0
ja 0x460c40
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xf4]
push ecx
call fcn.00461270
add esp, 8
test bl, bl
je 0x460d06
mov esi, dword [esp + 0x20]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
jmp 0x460d9a
xor esi, esi
jmp 0x460d10
mov dl, byte [esp + esi + 0xf0]
mov al, dl
and al, 0xf0
cmp al, 0xa0
movzx eax, dl
mov ecx, eax
jae 0x460d2c
shr ecx, 4
add ecx, 0x30
jmp 0x460d32
shr ecx, 4
add ecx, 0x57
and dl, 0xf
and eax, 0xf
mov byte [esp + esi*2 + 0x104], cl
cmp dl, 0xa
jae 0x460d49
add eax, 0x30
jmp 0x460d4c
add eax, 0x57
mov byte [esp + esi*2 + 0x105], al
inc esi
cmp esi, 0x14
jl 0x460d10
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 0x460d81
sub eax, edx
push eax
lea ecx, [esp + 0x108]
push ecx
mov ecx, esi
call fcn.0040b580
mov eax, dword [esp + 0x18]
test eax, eax
je 0x460dab
push eax
call fcn.00470041
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.00470538
add esp, 0x10100
ret