Function at 0x40a000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov ecx, dword [eax]
mov dword [ebp - 0x10], esp
push ecx
push 0
push esi
lea ecx, [ebx + 4]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov al, byte [ebp + 0xc]
test al, al
je 0x40a054
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x18]
push eax
mov edx, dword [eax]
push edx
lea edx, [ebp + 8]
push edx
jmp 0x40a062
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x28]
push eax
mov edx, dword [eax]
lea eax, [ebp + 8]
push edx
push eax
call fcn.00405160
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
jne 0x40a07a
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
jne 0x40a0b2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp + 8]
push 0
push ecx
lea edx, [ebp - 0x1c]
push 4
push edx
push esi
call edi
test eax, eax
jne 0x40a0e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 8], 4
jae 0x40a0fb
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xc]
test al, al
jne 0x40a145
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebx + 0x14]
push 4
push ecx
push esi
call edi
test eax, eax
jne 0x40a12a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 8], 4
jae 0x40a145
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
cmp edx, eax
jae 0x40a1f9
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x18]
push 4
push ecx
push esi
call edi
test eax, eax
jne 0x40a182
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 8], 4
jae 0x40a19d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xc]
test al, al
je 0x40a1b9
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x30]
push edx
push eax
lea ecx, [ebx + 0x18]
call fcn.00405030
inc dword [ebp - 0x14]
jmp 0x40a14c
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x38]
push ecx
push edx
lea ecx, [ebx + 0x28]
call fcn.00405030
inc dword [ebp - 0x14]
jmp 0x40a14c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8