Function at 0x405840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488180
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x48
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
push 0x48a6f4
call fcn.004480c0
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x405a5f
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp - 0x18]
neg eax
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040d630
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x38], 0xffffffff
jne 0x405918
cmp dword [ebp - 0x34], 0
je 0x405966
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405966
mov ecx, dword [ebp - 0x18]
push ecx
push 0x48a700
lea edx, [ebp - 0x28]
push edx
call fcn.00449f4d
add esp, 0xc
test eax, eax
jne 0x405966
push 0x48a70c
call fcn.004480c0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 0
jne 0x405a1b
push 0x2800
call fcn.00448217
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x405a1b
push 2
push 0xffffffffffffffff
push 0xffffd800
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040d630
add esp, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x38], 0xffffffff
jne 0x4059bd
cmp dword [ebp - 0x34], 0
je 0x405a1b
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x2800
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a1b
mov edx, dword [ebp - 0x18]
push edx
push str._BV69_FCW_
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.0040e290
add esp, 0x10
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x405a1b
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
mov ecx, 0x2800
sub ecx, eax
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405a58
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0
je 0x405a7e
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x28]
push ecx
push str.CheckDataFile____Signature__s_found___offset_u_
call fcn.00437da0
add esp, 0xc
jmp 0x405a8b
push str.CheckDataFile____No_signature_found_
call fcn.00437da0
add esp, 4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret