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

Disassembly:
push 0xffffffffffffffff
push 0x43cd82
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4c3740]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3740]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x148]
mov eax, dword [esp + 0x144]
and ebx, dword [esp + 0x14c]
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 + 0x13c], 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.00409e30
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 + 0x13c], 1
call fcn.0040af70
push str.AddrPool_
mov ecx, esi
call dword [0x43e29c]
lea eax, [esp + 0x98]
push eax
mov ecx, esi
call dword [0x43e2a0]
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 + 0x140], 2
call dword [0x43e2a0]
push 0x2c
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 + 0x13c], 3
je 0x409416
call fcn.0040c5b0
mov dword [ebx + 0x24], eax
mov byte [eax + 0x39], 1
mov eax, dword [ebx + 0x24]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x24]
mov dword [eax], eax
mov eax, dword [ebx + 0x24]
mov dword [eax + 8], eax
mov dword [ebx + 0x28], ebp
jmp 0x409418
xor ebx, ebx
mov byte [esp + 0x13c], 2
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], ebx
jae 0x40943c
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 + 0x50], ebp
jne 0x40946b
mov edx, dword [esp + 0x148]
push edx
jmp 0x409a49
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 0x4094f3
test ebx, ebx
je 0x409489
mov esi, ebx
call fcn.00409ae0
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x50
add esi, 0xc
call fcn.00409060
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 + 0x13c], 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 + 0x13c], 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 + 0x13c], 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 0x409827
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 0x409a3a
cmp dword [esp + 0x20], 0
je 0x409a3a
cmp byte [esp + 0xd0], 0x61
jne 0x409a20
lea eax, [esp + 0xd0]
call fcn.0040b0c0
test al, al
je 0x409a20
mov eax, dword [esp + 0xe8]
mov ecx, eax
and ecx, dword [esp + 0xe4]
cmp ecx, dword [esp + 0x1c]
jne 0x409a20
mov esi, dword [esp + 0x14c]
cmp eax, esi
jne 0x409a27
mov edx, dword [esp + 0x148]
push edx
push edi
mov eax, esi
call fcn.00409bb0
test al, al
je 0x409657
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 0x409600
cmp dword [esp + 0x20], 0
je 0x409851
lea eax, [ebx + 0x20]
lea ecx, [esp + 0x2c]
call fcn.0040b120
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 0x4095c3
lea edi, [ebx + 0x20]
mov eax, edi
mov dword [esp + 0x50], edi
call fcn.0040b230
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 0x40966b
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x85
add esi, 0xc
call fcn.00409060
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 0x4094ad
mov esi, ebx
call fcn.00409ae0
jmp 0x4094ad
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 0x4096d5
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x8f
add esi, 0xc
call fcn.00409060
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 0x4094ad
mov esi, ebx
call fcn.00409ae0
jmp 0x4094ad
mov eax, dword [ebp]
test eax, eax
jbe 0x409782
add ebp, 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 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 sub.WS2_32.dll_ntohl
cmp eax, dword [ebx + 0x18]
jb 0x409770
push esi
call sub.WS2_32.dll_ntohl
cmp eax, dword [ebx + 0x14]
ja 0x409770
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 sub.WS2_32.dll_ntohl
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov eax, edi
call fcn.0040b120
mov ecx, 8
lea esi, [esp + 0x2c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x50]
add ebp, 0x18
sub dword [esp + 0x1c], 1
jne 0x4096e7
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.MSVCR80.dll_free]
mov edx, dword [esp + 0x14c]
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 + 0x148]
mov eax, edi
mov byte [esp + 0x74], 1
mov dword [esp + 0x5c], edx
call fcn.0040b120
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.0040b310
lea ecx, [esp + 0xb4]
mov byte [esp + 0x13c], 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 + 0x13c], 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 + 0x13c], 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 + 0x134]
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.00437634
add esp, 0x12c
ret 0xc
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 0x4098a9
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0xb7
add esi, 0xc
call fcn.00409060
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.00409ae0
jmp 0x4094ad
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 + 0x20], edi
call sub.IPHLPAPI.DLL_GetIpAddrTable
test eax, eax
je 0x40990c
call sub.Comn.dll_GetObjectLogPXE
mov ebp, eax
mov esi, dword [ebp]
push 0xc0
add esi, 0xc
call fcn.00409060
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.00409ae0
jmp 0x4094ad
mov eax, dword [edi]
test eax, eax
jbe 0x4099bc
lea ebp, [edi + 4]
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp]
mov edx, dword [ebp + 0xc]
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 sub.WS2_32.dll_ntohl
cmp eax, dword [ebx + 0x18]
jb 0x4099aa
push esi
call sub.WS2_32.dll_ntohl
cmp eax, dword [ebx + 0x14]
ja 0x4099aa
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 sub.WS2_32.dll_ntohl
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x20]
lea ecx, [esp + 0x2c]
call fcn.0040b120
mov ecx, 8
lea esi, [esp + 0x2c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
add ebp, 0x18
sub dword [esp + 0x1c], 1
jne 0x409920
mov ebp, dword [esp + 0x50]
push edi
call dword [sym.imp.MSVCR80.dll_free]
mov edx, dword [esp + 0x14c]
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 + 0x20]
lea ecx, [esp + 0x148]
mov byte [esp + 0x44], 1
mov dword [esp + 0x2c], edx
call fcn.0040b120
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 0x4097d9
mov esi, dword [esp + 0x14c]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x148]
push eax
mov eax, esi
jmp 0x409a50
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x148]
push ecx
mov eax, dword [esp + 0x150]
push edi
call fcn.00409bb0
test al, al
jne 0x4097d9
test ebx, ebx
je 0x409a69
mov esi, ebx
call fcn.00409ae0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x13c], 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 + 0x13c], 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 + 0x13c], 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 0x409827