Function at 0x402490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41c91b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcb8
mov eax, dword [esp + 0xcc8]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3cf]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4ce]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42c1d6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], 6
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5cd]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42c2d5
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3cf]
xor edi, edi
push ecx
mov dword [0x47e51c], edi
call dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x14]
push edx
push ecx
push edi
push eax
call sub.iphlpapi.dll_SendARP
cmp eax, edi
jne 0x40278e
mov edx, dword [0x42aad0]
mov ax, word [0x42aad4]
mov esi, dword [0x42aac8]
mov cx, word [0x42aacc]
mov ebp, dword [esp + 0x14]
mov bx, word [esp + 0x18]
mov dword [esp + 0x60], edx
mov edx, dword [0x425e64]
mov word [esp + 0x64], ax
mov dword [esp + 0x66], esi
mov word [esp + 0x6a], cx
mov dword [esp + 0x10], edx
mov eax, dword [0x42abe0]
mov dword [esp + 0xcd0], edi
push eax
call sub.packet.dll_PacketOpenAdapter
add esp, 4
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x402757
cmp dword [eax], 0xffffffff
je 0x402757
call sub.packet.dll_PacketAllocatePacket
cmp eax, edi
mov dword [esp + 0x24], eax
jne 0x4025fb
lea ecx, [esp + 0x10]
push str._DEBUG_Allocate_Failed.
push ecx
call fcn.00414f1b
mov edx, dword [esp + 0x18]
push edx
call fcn.00402b30
add esp, 0xc
jmp 0x40277a
mov ecx, 0x96
xor eax, eax
lea edi, [esp + 0x78]
mov dword [esp + 0x2e], esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x806
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x6e]
mov dword [esp + 0x2c], ebp
mov word [esp + 0x30], bx
mov word [esp + 0x36], ax
call esi
push 1
mov word [esp + 0x38], ax
call esi
push 0x800
mov word [esp + 0x3a], ax
call esi
push 2
mov word [esp + 0x3c], ax
mov byte [esp + 0x3e], 6
mov byte [esp + 0x3f], 4
call esi
mov word [esp + 0x3c], ax
mov eax, dword [0x47e524]
test eax, eax
jne 0x402676
mov ecx, dword [esp + 0x66]
mov dx, word [esp + 0x6a]
mov dword [esp + 0x3e], ecx
mov word [esp + 0x42], dx
jmp 0x402688
mov eax, dword [esp + 0x60]
mov cx, word [esp + 0x64]
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], cx
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
lea edx, [esp + 0x4ce]
push edx
call esi
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3cf]
push eax
mov dword [esp + 0x4c], ebp
mov word [esp + 0x50], bx
call esi
mov ecx, 0xa
lea esi, [esp + 0x28]
lea edi, [esp + 0x78]
mov dword [esp + 0x4e], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x78]
push 0x3c
push ecx
push esi
call sub.packet.dll_PacketInitPacket
mov edi, dword [esp + 0x28]
push 1
push edi
call sub.packet.dll_PacketSetNumWrites
add esp, 0x14
test al, al
jne 0x402706
lea edx, [esp + 0x10]
push str._DEBUG_Send_Error_
push edx
call fcn.00414f1b
mov eax, dword [esp + 0x18]
push eax
call fcn.00402b30
add esp, 0xc
jmp 0x40277a
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push 1
push esi
push edi
call sub.packet.dll_PacketSendPacket
add esp, 0xc
test al, al
je 0x4026e8
mov eax, dword [0x47e524]
test eax, eax
jne 0x402746
push 0x3a98
call ebp
mov eax, dword [0x47e524]
test eax, eax
jne 0x402746
lea eax, [ebx + 1]
mov ecx, 0x14
cdq
idiv ecx
mov ebx, edx
jmp 0x40270e
push esi
call sub.packet.dll_PacketFreePacket
push edi
call sub.packet.dll_PacketCloseAdapter
add esp, 8
jmp 0x40277a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str._DEBUG_Spoof2_Cannt_Open_Driver___lx_.
push ecx
call fcn.00414f1b
mov edx, dword [esp + 0x1c]
push edx
call fcn.00402b30
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0xcd0], 0xffffffff
call fcn.00415660
mov ecx, dword [esp + 0xcc8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc4
ret