Function at 0x409b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
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, ecx
mov ecx, dword [eax]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
push ecx
push 0
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x28], esi
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 0x409b84
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x18]
push eax
mov edx, dword [eax]
push edx
lea edx, [ebp + 8]
push edx
jmp 0x409b92
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x28]
push eax
mov edx, dword [eax]
lea eax, [ebp + 8]
push edx
push eax
call fcn.00405290
mov eax, dword [edi + 4]
mov dword [ebp - 4], 0
test eax, eax
jne 0x409baa
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 edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x24], edi
jne 0x409be2
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 ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x18]
push 0
push ecx
lea edx, [ebp - 0x2c]
push 4
push edx
push edi
call ebx
test eax, eax
jne 0x409c10
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 - 0x18], 4
jae 0x409c2b
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 0x409c75
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [esi + 0x14]
push 4
push ecx
push edi
call ebx
test eax, eax
jne 0x409c5a
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 - 0x18], 4
jae 0x409c75
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 - 0x20], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
cmp edx, eax
jae 0x409e14
lea eax, [ebp - 0x18]
push 0
push eax
lea ecx, [ebp - 0x14]
push 4
push ecx
push edi
call ebx
test eax, eax
jne 0x409cb2
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 - 0x18], 4
jae 0x409ccd
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 0x409dd1
mov edi, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x436484]
lea ebx, [esi + 0x18]
mov esi, dword [edi + 4]
mov al, 1
cmp esi, edx
je 0x409d07
mov eax, dword [esi + 0xc]
mov edi, esi
cmp ecx, eax
setb al
test al, al
je 0x409d02
mov esi, dword [esi]
jmp 0x409cec
mov esi, dword [esi + 8]
jmp 0x409cec
mov dl, byte [ebx + 8]
test dl, dl
je 0x409d2a
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x30]
push edx
push edi
push esi
push eax
mov ecx, ebx
mov byte [ebp + 0xb], 1
call fcn.00406000
lea ecx, [ebp + 0xb]
push ecx
push eax
jmp 0x409da1
test al, al
mov dword [ebp - 0x1c], edi
je 0x409d71
lea edx, [ebp - 0x34]
mov ecx, ebx
push edx
call fcn.0041de70
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax]
cmp ecx, edx
sete al
test al, al
je 0x409d66
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x38]
push edx
push edi
push esi
push eax
mov ecx, ebx
mov byte [ebp + 0xb], 1
call fcn.00406000
lea ecx, [ebp + 0xb]
push ecx
push eax
jmp 0x409da1
lea ecx, [ebp - 0x1c]
call fcn.00406450
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0xc], ecx
jae 0x409d95
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push eax
push edi
push esi
push ecx
mov ecx, ebx
mov byte [ebp + 0xb], 1
call fcn.00406000
lea edx, [ebp + 0xb]
push edx
push eax
jmp 0x409da1
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x1c]
push eax
mov byte [ebp + 0xb], 0
push ecx
lea ecx, [ebp - 0x48]
call fcn.0041e3b0
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x48]
push edx
push eax
lea ecx, [ebp - 0x50]
call fcn.0041e3b0
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x409c7c
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x58]
push ecx
push edx
lea ecx, [esi + 0x28]
call fcn.00405050
inc dword [ebp - 0x20]
jmp 0x409c7c
push edi
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