Function at 0x401e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [0x436580]
movq xmm0, qword [str.ether_dst]
push ebx
push esi
mov word [ebp - 0x114], ax
mov ebx, ecx
mov al, byte [0x436582]
mov esi, edx
push edi
mov dword [ebp - 0x320], ebx
movq qword [ebp - 0x11c], xmm0
mov byte [ebp - 0x112], al
mov al, byte [edx]
inc edx
test al, al
jne 0x401e88
lea edi, [ebp - 0x11c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401e98
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x11c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00401410
test eax, eax
jns 0x401edd
push ebx
call dword [sym.imp.wpcap.dll_pcap_close]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004106cd
mov esp, ebp
pop ebp
ret
xor bl, bl
mov dword [0xebe6f0], 0xffffffff
mov edi, dword [ebp - 0x320]
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x328]
push eax
push edi
call dword [sym.imp.wpcap.dll_pcap_next_ex]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x401f15
test bl, bl
jne 0x401ffa
call fcn.00413e68
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movzx eax, word [ebp + 8]
movd xmm0, eax
divsd xmm1, qword [0x437330]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
ja 0x401ffa
test bl, bl
jne 0x401ffa
test esi, esi
je 0x401eef
mov esi, dword [ebp - 0x324]
mov al, byte [esi + 0xc]
cmp al, 0x81
jne 0x401f65
cmp byte [esi + 0xd], bl
jne 0x401f65
mov edi, 0x12
jmp 0x401f74
mov edi, 0xe
cmp al, 0x88
jne 0x401f74
cmp byte [esi + 0xd], 0x92
je 0x401f88
cmp byte [esi + 0x10], 0x88
jne 0x401ee9
cmp byte [esi + 0x11], 0x92
jne 0x401ee9
mov eax, dword [ebp - 0x328]
mov eax, dword [eax]
cdq
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x334]
push eax
mov dword [ebp - 0x330], edx
call fcn.0041a7b0
add esp, 4
push eax
push str._H:_M:_S
lea eax, [ebp - 0x18]
push 0x10
push eax
call fcn.004193d6
mov eax, dword [esi]
add esp, 0x10
mov dword [0xebe6e4], eax
mov bl, 1
movzx eax, word [esi + 4]
mov word [0xebe6e8], ax
mov eax, dword [esi + 6]
mov dword [0xebe6ea], eax
movzx eax, word [esi + 0xa]
mov word [0xebe6ee], ax
mov eax, dword [ebp - 0x324]
movzx eax, byte [eax + edi + 0x12]
mov dword [0xebe6f0], eax
jmp 0x401ee9
cmp esi, 0xffffffff
jne 0x40204c
push edi
call dword [sym.imp.wpcap.dll_pcap_geterr]
add esp, 4
push eax
push str._nError_reading_the_packet:__hs_n
lea eax, [ebp - 0x31c]
push 0x100
push eax
call fcn.00401110
add esp, 0x10
lea eax, [ebp - 0x31c]
push 0
push str.Message
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004106cd
mov esp, ebp
pop ebp
ret
push 0x436338
lea eax, [ebp - 0x320]
push 0xee7480
push eax
call fcn.004145ea
add esp, 0xc
test eax, eax
je 0x40208f
push 0xee7480
push eax
push str.Error_writing_file:_error__d__s_n
call fcn.004010d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004106cd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x320]
test eax, eax
je 0x4020c7
push eax
push 1
push 0x17c
push 0xebe6e0
call fcn.0041a39b
push dword [ebp - 0x320]
call fcn.004144c8
add esp, 0x14
push dword [ebp - 0x320]
call fcn.004146a8
add esp, 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004106cd
mov esp, ebp
pop ebp
ret