Function at 0x46b8c6
Capabilities:
Read file on windows

Disassembly:
push 0x70
mov eax, 0x4b1ca6
call fcn.00473d21
mov edi, ecx
mov dword [ebp - 0x74], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x68], ebx
or dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x70], esi
cmp esi, 0xffffffff
je 0x46baab
lea ecx, [ebp - 0x60]
call fcn.00408a90
push ebx
lea eax, [ebp - 0x6c]
push eax
push 0x18
lea eax, [ebp - 0x58]
push eax
push esi
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46baab
cmp dword [ebp - 0x4c], ebx
je 0x46ba4b
mov dword [ebp - 0x5c], ebx
push dword [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00474bb7
mov esi, eax
mov dword [ebp - 0x78], esi
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x8004
push dword [edi]
mov byte [ebp - 4], 3
call fcn.00469c8c
add esp, 0x18
test eax, eax
je 0x46b99e
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x48]
push esi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46b99e
push ebx
push dword [ebp - 0x48]
push esi
push dword [ebp - 0x5c]
call fcn.00469d79
add esp, 0x10
test eax, eax
jne 0x46b9a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
jmp 0x46ba18
push 1
lea eax, [ebp - 0x61]
push eax
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x40]
call fcn.00411496
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0044970c
push ebx
push edi
push eax
push dword [ebp - 0x5c]
call fcn.00469d79
add esp, 0x10
test eax, eax
jne 0x46b9e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x78], eax
jmp 0x46ba10
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp - 0x5c]
push 0x6801
push dword [edi]
call fcn.00469cb7
add esp, 0x14
test eax, eax
jne 0x46ba30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
lea ecx, [ebp - 0x40]
call fcn.00401b80
push esi
call fcn.00472d16
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0046b1bc
jmp 0x46bab4
lea ecx, [ebp - 0x40]
call fcn.00401b80
push esi
call fcn.00472d16
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0046b1bc
push dword [ebp - 0x44]
call fcn.00474bb7
mov esi, eax
pop ecx
mov dword [ebp - 0x78], esi
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x44]
mov byte [ebp - 4], 5
push esi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ba95
xor ecx, ecx
cmp dword [ebp - 0x4c], ecx
lea eax, [edi + 4]
cmovne ecx, dword [ebp - 0x68]
push eax
push 0x10
push ecx
push dword [ebp - 0x44]
push esi
push dword [edi]
call fcn.00469da1
add esp, 0x18
test eax, eax
jne 0x46baa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
jmp 0x46baa2
mov bl, 1
push esi
call fcn.00472d16
pop ecx
jmp 0x46bab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
lea ecx, [ebp - 0x60]
call fcn.00408a90
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0046b1da
mov al, bl
call fcn.00473cd0
ret 8