Function at 0x46dc00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x59d622
mov eax, dword fs:[0]
push eax
mov eax, 0x100f4
call fcn.0058ee00
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x100f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6204e0]
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.0043d560
mov ecx, dword [esp + 0x20]
add esp, 8
push ebp
push 0x80
push 3
push ebp
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46ddae
lea edx, [esp + 0x5c]
push edx
call fcn.0042a4c0
mov edi, eax
push esi
lea eax, [esp + 0x48]
push str.Error_opening
push eax
mov byte [esp + 0x10120], 1
call fcn.0040c620
push 0x5a20a0
push eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x1012c], 2
call fcn.0040c6e0
push edi
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x10138], 3
call fcn.0040c7a0
add esp, 0x28
push 0xffffffffffffffff
push ebp
push eax
mov ecx, 0x6187d0
mov byte [esp + 0x1011c], 4
call fcn.0040b880
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x46dd1e
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
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 0x46dd46
mov ecx, dword [esp + 0x7c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x58], esi
jb 0x46dd6c
mov edx, dword [esp + 0x44]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
cmp dword [esp + 0x74], esi
jb 0x46dd8c
mov eax, dword [esp + 0x60]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
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 0x46dda7
push eax
call sub.MSVCR90.dll_free
add esp, 4
mov eax, ebx
jmp 0x46df3d
lea ecx, [esp + 0x94]
push ecx
call fcn.0046e3c0
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
xor bl, bl
mov esi, 0x10
jmp 0x46ddd0
push 0
lea edx, [esp + 0x18]
push edx
push 0xffff
lea eax, [esp + 0x110]
push eax
push edi
call ebp
test eax, eax
jne 0x46de2c
lea ecx, [esp + 0x5c]
push ecx
mov bl, 1
call fcn.0042a4c0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x6187d0
mov byte [esp + 0x1011c], 5
call fcn.0040b880
mov byte [esp + 0x10110], 0
cmp dword [esp + 0x74], esi
jb 0x46de2c
mov edx, dword [esp + 0x60]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x108]
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.0046e3f0
add esp, 0xc
test bl, bl
jne 0x46de58
cmp dword [esp + 0x14], 0
ja 0x46ddd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xf4]
push ecx
call fcn.0046e400
add esp, 8
test bl, bl
je 0x46de96
mov esi, dword [esp + 0x20]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
jmp 0x46df2a
xor esi, esi
jmp 0x46dea0
mov dl, byte [esp + esi + 0xf0]
mov al, dl
and al, 0xf0
cmp al, 0xa0
movzx eax, dl
mov ecx, eax
jae 0x46debc
shr ecx, 4
add ecx, 0x30
jmp 0x46dec2
shr ecx, 4
add ecx, 0x57
and dl, 0xf
and eax, 0xf
mov byte [esp + esi*2 + 0x104], cl
cmp dl, 0xa
jae 0x46ded9
add eax, 0x30
jmp 0x46dedc
add eax, 0x57
mov byte [esp + esi*2 + 0x105], al
inc esi
cmp esi, 0x14
jl 0x46dea0
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 0x46df11
sub eax, edx
push eax
lea ecx, [esp + 0x108]
push ecx
mov ecx, esi
call fcn.0040bad0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46df3b
push eax
call sub.MSVCR90.dll_free
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.0058ecc6
add esp, 0x10100
ret