Function at 0x4057c0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x430dd2
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4b3774]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b3774]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x144]
mov eax, dword [esp + 0x140]
and ebx, dword [esp + 0x148]
mov edi, ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebp, ebp
mov dword [esp + 0x138], ebp
movzx ecx, byte [edi]
movzx eax, byte [edi + 2]
movzx edx, byte [edi + 1]
mov byte [esp + 0x16], al
movzx eax, byte [edi + 5]
mov byte [esp + 0x14], cl
movzx ecx, byte [edi + 3]
mov byte [esp + 0x15], dl
movzx edx, byte [edi + 4]
mov byte [esp + 0x19], al
sub esp, 8
mov byte [esp + 0x1f], cl
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov byte [esp + 0x20], dl
mov dx, word [esp + 0x20]
mov dword [eax], ecx
lea esi, [esp + 0xa0]
mov word [eax + 4], dx
call fcn.00406380
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea esi, [esp + 0x7c]
mov byte [esp + 0x138], 1
call fcn.004074d0
push 0x4a6544
mov ecx, esi
call dword [0x431224]
lea eax, [esp + 0x98]
push eax
mov ecx, esi
call dword [0x431228]
push 0x3e
lea ecx, [esp + 0xf2]
push ebp
push ecx
mov word [esp + 0xf8], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push str._08x
lea edx, [esp + 0xf4]
push 0x20
push edx
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x10
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0xb4]
push ecx
mov ecx, esi
mov byte [esp + 0x13c], 2
call dword [0x431228]
push 0x30
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
cmp ebx, ebp
mov byte [esp + 0x138], 3
je 0x405956
call fcn.00408b10
mov dword [ebx + 0x28], eax
mov byte [eax + 0x39], 1
mov eax, dword [ebx + 0x28]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [eax], eax
mov eax, dword [ebx + 0x28]
mov dword [eax + 8], eax
mov dword [ebx + 0x2c], ebp
jmp 0x405958
xor ebx, ebx
mov byte [esp + 0x138], 2
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], ebx
jae 0x40597c
lea eax, [esp + 0x80]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
jne 0x4059ab
mov edx, dword [esp + 0x144]
push edx
jmp 0x405f8b
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x405a33
test ebx, ebx
je 0x4059c9
mov esi, ebx
call fcn.00406030
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x50
add esi, 0xc
call fcn.004055a0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:__DHCP__Set_File_Pointer
push edi
call eax
add esp, 0xc
lea ecx, [esp + 0xb4]
mov byte [esp + 0x138], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x138], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x98]
mov dword [esp + 0x138], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x405d6f
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x1c
lea edx, [esp + 0xdc]
push edx
push ebp
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f7c
cmp dword [esp + 0x20], 0
je 0x405f7c
cmp byte [esp + 0xd0], 0x61
jne 0x405f62
lea eax, [esp + 0xd0]
call fcn.00407620
test al, al
je 0x405f62
mov eax, dword [esp + 0xe8]
mov ecx, eax
and ecx, dword [esp + 0xe4]
cmp ecx, dword [esp + 0x1c]
jne 0x405f62
mov esi, dword [esp + 0x148]
cmp eax, esi
jne 0x405f69
mov edx, dword [esp + 0x144]
mov ecx, dword [esp + 0x14c]
push edx
push edi
mov eax, esi
call fcn.00406100
test al, al
je 0x405b9e
xor eax, eax
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x24]
push eax
push 0x20
lea ecx, [esp + 0x38]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405b47
cmp dword [esp + 0x20], 0
je 0x405d99
lea eax, [ebx + 0x24]
lea ecx, [esp + 0x2c]
call fcn.00407680
push 0
lea edx, [esp + 0x24]
push edx
mov edi, eax
push 0x20
lea eax, [esp + 0x38]
push eax
mov ecx, 8
lea esi, [esp + 0x3c]
push ebp
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405b0a
lea esi, [ebx + 0x24]
mov eax, esi
mov dword [esp + 0x1c], esi
call fcn.00407790
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea ecx, [esp + 0x5c]
push ecx
push 0
mov dword [esp + 0x64], 0
call sub.IPHLPAPI.DLL_GetIpAddrTable
cmp eax, 0x7a
je 0x405bb2
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x85
add esi, 0xc
call fcn.004055a0
mov edx, dword [esi]
add esp, 4
push eax
push str._s_Get_Ip_Table_fail
push edi
call edx
add esp, 0xc
test ebx, ebx
je 0x4059ed
mov esi, ebx
call fcn.00406030
jmp 0x4059ed
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
push 0
lea ecx, [esp + 0x5c]
mov ebp, eax
push ecx
push ebp
mov dword [esp + 0x20], ebp
call sub.IPHLPAPI.DLL_GetIpAddrTable
test eax, eax
je 0x405c1c
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x8f
add esi, 0xc
call fcn.004055a0
mov edx, dword [esi]
add esp, 4
push eax
push str._s_Get_Ip_Table_fail
push edi
call edx
add esp, 0xc
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
test ebx, ebx
je 0x4059ed
mov esi, ebx
call fcn.00406030
jmp 0x4059ed
mov eax, dword [ebp]
test eax, eax
jbe 0x405cca
add ebp, 4
mov dword [esp + 0x50], eax
mov edi, edi
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp]
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebp + 0x14]
push esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
call edi
cmp eax, dword [ebx + 0x18]
jb 0x405cb4
push esi
call edi
cmp eax, dword [ebx + 0x14]
ja 0x405cb4
xor eax, eax
mov dword [esp + 0x44], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x48], 1
call edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.00407680
mov ecx, 8
lea esi, [esp + 0x2c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add ebp, 0x18
sub dword [esp + 0x50], 1
jne 0x405c30
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.MSVCR80.dll_free]
mov edx, dword [esp + 0x148]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
add esp, 4
lea ecx, [esp + 0x144]
mov eax, esi
mov byte [esp + 0x74], 1
mov dword [esp + 0x5c], edx
call fcn.00407680
mov ecx, 8
lea esi, [esp + 0x5c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
lea ebx, [esp + 0x28]
call fcn.00407870
lea ecx, [esp + 0xb4]
mov byte [esp + 0x138], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x138], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x98]
mov dword [esp + 0x138], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0042c614
add esp, 0x128
ret 0x10
mov eax, dword [esp + 0xe0]
push 0
lea ecx, [esp + 0x58]
push ecx
mov dword [ebx + 0x1c], eax
push 0
mov dword [esp + 0x60], 0
call sub.IPHLPAPI.DLL_GetIpAddrTable
cmp eax, 0x7a
je 0x405df1
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0xb7
add esi, 0xc
call fcn.004055a0
mov edx, dword [esi]
add esp, 4
push eax
push str._s_Get_Ip_Table_fail
push edi
call edx
add esp, 0xc
mov esi, ebx
call fcn.00406030
jmp 0x4059ed
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
push 0
lea ecx, [esp + 0x58]
mov edi, eax
push ecx
push edi
mov dword [esp + 0x5c], edi
call sub.IPHLPAPI.DLL_GetIpAddrTable
test eax, eax
je 0x405e54
call sub.Comn.dll_GetObjectLogPXE
mov ebp, eax
mov esi, dword [ebp]
push 0xc0
add esi, 0xc
call fcn.004055a0
mov edx, dword [esi]
add esp, 4
push eax
push str._s_Get_Ip_Table_fail
push ebp
call edx
add esp, 0xc
push edi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov esi, ebx
call fcn.00406030
jmp 0x4059ed
mov eax, dword [edi]
test eax, eax
jbe 0x405efe
lea ebp, [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp]
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebp + 0x14]
push esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
call edi
cmp eax, dword [ebx + 0x18]
jb 0x405ee8
push esi
call edi
cmp eax, dword [ebx + 0x14]
ja 0x405ee8
xor eax, eax
mov dword [esp + 0x44], eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x48], 1
call edi
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x24]
lea ecx, [esp + 0x2c]
call fcn.00407680
mov ecx, 8
lea esi, [esp + 0x2c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add ebp, 0x18
sub dword [esp + 0x1c], 1
jne 0x405e65
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x50]
push edi
call dword [sym.imp.MSVCR80.dll_free]
mov edx, dword [esp + 0x148]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
add esp, 4
lea eax, [ebx + 0x24]
lea ecx, [esp + 0x144]
mov byte [esp + 0x44], 1
mov dword [esp + 0x2c], edx
call fcn.00407680
mov edi, eax
mov ecx, 8
lea esi, [esp + 0x2c]
push ebp
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405d21
mov esi, dword [esp + 0x148]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x144]
push eax
mov eax, esi
jmp 0x405f92
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
push ecx
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x150]
push edi
call fcn.00406100
test al, al
jne 0x405d21
test ebx, ebx
je 0x405fb2
mov esi, ebx
call fcn.00406030
lea ecx, [esp + 0xb4]
mov byte [esp + 0x138], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x138], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x98]
mov dword [esp + 0x138], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x405d6f