Function at 0x406be0
Capabilities:
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
push 0x7f000001
mov ebx, 1
mov dword [ebp - 4], 0
call esi
mov dword [0x420c80], eax
xor eax, eax
mov dword [0x420be0], eax
push str.vmnetnat.conf
mov word [0x420be4], ax
call fcn.00409ce0
add esp, 4
test eax, eax
jne 0x406c35
push str.vmnetnat.conf
call fcn.00417bcf
add esp, 4
push str.vmnetnat_mac.txt
mov dword [0x4201b8], eax
call fcn.00409ce0
add esp, 4
test eax, eax
jne 0x406c58
push str.vmnetnat_mac.txt
call fcn.00417bcf
add esp, 4
push 0xafefe01
mov dword [0x41ff54], eax
call esi
mov edi, dword [ebp + 0xc]
mov dword [0x420c88], eax
mov ecx, dword [edi]
push 0x2f
push ecx
mov dword [0x41ff44], 0x41c3bc
call fcn.00413e20
add esp, 8
test eax, eax
mov dword [0x41ff4c], eax
je 0x406c94
inc eax
mov dword [0x41ff4c], eax
jmp 0x406c9c
mov edx, dword [edi]
mov dword [0x41ff4c], edx
mov esi, dword [ebp + 8]
push str.c:GI:M:Dhm:r
push edi
push esi
call fcn.00410870
add esp, 0xc
cmp eax, 0xffffffff
je 0x406d7a
jmp 0x406cc0
mov ebx, dword [0x41f378]
add eax, 0xffffffc6
cmp eax, 0x38
ja case.0x406cd9.59
movzx eax, byte [eax + 0x407284]
jmp dword [eax*4 + 0x40725c]
inc dword [0x41ff48]
jmp 0x406d62
mov dword [ebp - 4], 1
jmp 0x406d62
mov ecx, dword [0x420a28]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x406dbd
mov dword [0x420c88], eax
jmp 0x406d62
mov edx, dword [0x420a28]
push 0x420be0
push edx
call fcn.004062e0
add esp, 8
test eax, eax
je 0x406d62
mov eax, dword [0x420a28]
push eax
push str._s_is_not_a_valid_MAC_address_n
push 0x41f3d0
call fcn.00413a68
add esp, 0xc
call fcn.00405a30
push 0x73
call fcn.0040135c
mov eax, dword [0x420a28]
mov dword [0x41ff54], eax
jmp 0x406d62
mov ecx, dword [0x420a28]
mov dword [0x4201b8], ecx
push str.c:GI:M:Dhm:r
push edi
push esi
call fcn.00410870
add esp, 0xc
cmp eax, 0xffffffff
jne 0x406cc0
cmp ebx, esi
jne 0x406e36
mov eax, dword [ebp - 4]
test eax, eax
jne 0x406e36
push str.device
push str.host
call fcn.0040a5a0
add esp, 8
test eax, eax
mov dword [0x41ff44], eax
jne 0x406e49
call fcn.00405a60
pop edi
pop esi
mov eax, 0x78
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x420a28]
push edx
push str._s_is_not_valid_IP_address_n
push 0x41f3d0
call fcn.00413a68
add esp, 0xc
call fcn.00405a30
push 0x72
call fcn.0040135c
mov ecx, dword [0x41ff4c]
push ecx
push str._s___D____c_configfile____d_pidfile____m_macfile____h__device_n
call fcn.004139f4
add esp, 8
pop edi
pop esi
mov eax, 0x7c
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4201b8]
test eax, eax
je 0x406e12
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 0x7f
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x7e
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x7d
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebx + 1]
cmp edx, esi
jne 0x406dac
mov eax, dword [edi + ebx*4]
mov dword [0x41ff44], eax
call fcn.004064d0
test eax, eax
jge 0x406e6b
push str.Error_with_host_MAC_configuration_parameter_in_configuration_file._n
call fcn.004139f4
add esp, 4
pop edi
pop esi
mov eax, 0x80
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x406e7e
call fcn.004063d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push str.allowAnyOUI
push str.host
call fcn.0040a630
push 0
push str.enableNatDhcp
push str.host
mov dword [0x420c84], eax
call fcn.0040a630
push 0x12c
push str.expireTimeout
push 0x41c310
mov dword [0x420b48], eax
call fcn.0040a630
lea ecx, [ebp - 8]
push ecx
mov dword [0x420b44], eax
call fcn.00409960
mov edx, dword [ebp - 4]
push edx
call fcn.00413b54
add esp, 0x2c
call fcn.00406b70
call fcn.00406290
lea eax, [ebp - 0x198]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x406f2c
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call fcn.0040e400
add esp, 4
push eax
call esi
push eax
push str.WSAStartup_failed_with_error_0x_x:__s._n
push 0x41f3d0
call fcn.00413a68
add esp, 0x10
pop edi
pop esi
mov eax, 0x7b
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x41ff44]
push ecx
call fcn.004067a0
mov esi, eax
add esp, 4
test esi, esi
je 0x406f4f
call fcn.00405a30
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004099e0
mov edx, dword [0x41ff54]
push 0x41bec8
push edx
call fcn.00413ecd
mov esi, eax
add esp, 8
test esi, esi
je 0x406fad
mov ax, word [0x420c94]
movzx ecx, ah
push ecx
movzx edx, al
mov eax, dword [0x420c92]
push edx
movzx ecx, ah
push ecx
movzx ecx, byte [0x420c90]
movzx edx, al
movzx eax, byte [0x420c91]
push edx
push eax
push ecx
push str._02X:_02X:_02X:_02X:_02X:_02X_n
push esi
call fcn.00413a68
push esi
call fcn.00413e4d
add esp, 0x24
call fcn.004106f0
call fcn.00405f10
call fcn.00405cc0
mov al, byte [0x41ff5e]
movzx edx, al
push 0x41ff5f
inc al
push 0x420c00
push str.PrivilegedTCP
mov edi, 0x41ff5e
mov word [edx*2 + 0x420c00], 0x202
mov byte [0x41ff5e], al
call fcn.00406160
push 0x41ff5d
push 0x420b60
push str.PrivilegedUDP
mov edi, 0x41ff5c
call fcn.00406160
add esp, 0x18
call fcn.0040b470
call fcn.004094b0
call fcn.0040f590
call fcn.0040ea80
movzx eax, byte [0x420be5]
movzx ecx, byte [0x420be4]
movzx edx, byte [0x420be3]
push eax
movzx eax, byte [0x420be2]
push ecx
movzx ecx, byte [0x420be1]
push edx
movzx edx, byte [0x420be0]
push eax
mov ax, word [0x420c94]
push ecx
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edx
movzx ecx, ah
push ecx
movzx edx, al
mov eax, dword [0x420c92]
push edx
movzx ecx, ah
push ecx
movzx ecx, byte [0x420c90]
movzx edx, al
movzx eax, byte [0x420c91]
push edx
mov edx, dword [0x41ff44]
push eax
mov eax, dword [0x41ff58]
push ecx
push edx
push eax
call esi
mov ecx, dword [0x41ff58]
and eax, 0xff
push eax
push ecx
call esi
movzx edx, ah
mov eax, dword [0x41ff58]
push edx
push eax
call esi
mov ecx, dword [0x41ff58]
shr eax, 0x10
and eax, 0xff
push eax
push ecx
call esi
mov edx, dword [0x420b4c]
shr eax, 0x18
push eax
push edx
call esi
and eax, 0xff
push eax
mov eax, dword [0x420b4c]
push eax
call esi
mov edx, dword [0x420b4c]
movzx ecx, ah
push ecx
push edx
call esi
shr eax, 0x10
and eax, 0xff
push eax
mov eax, dword [0x420b4c]
push eax
call esi
mov ecx, dword [0x420c88]
shr eax, 0x18
push eax
push ecx
call esi
mov edx, dword [0x420c88]
and eax, 0xff
push eax
push edx
call esi
mov ecx, dword [0x420c88]
movzx eax, ah
push eax
push ecx
call esi
mov edx, dword [0x420c88]
shr eax, 0x10
and eax, 0xff
push eax
push edx
call esi
shr eax, 0x18
push eax
mov eax, dword [0x4201b8]
push eax
push str.Using_configuration_file:__s._nIP_address:__d._d._d._d_n_Subnet:__d._d._d._d_nExternal_IP_address:__d._d._d._d_nDevice:__s._nMAC_address:__02X:_02X:_02X:_02X:_02X:_02X._nIgnoring_host_MAC_address:__02X:_02X:_02X:_02X:_02X:_02X._n
push 4
call fcn.00404f40
mov eax, dword [0x41ff60]
add esp, 0x70
test eax, eax
jne 0x40724d
call fcn.00407730
mov ebx, eax
mov eax, dword [0x42017c]
test eax, eax
je 0x407169
xor eax, eax
jmp 0x40716e
call fcn.004098f0
cmp ebx, 0x40
jl 0x407178
mov ebx, 0x40
cmp eax, 0x3e8
jl 0x407184
mov eax, 0x3e8
mov ecx, dword [0x420170]
push eax
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [0x420174]
cmp eax, ecx
jae 0x4071a8
mov esi, eax
mov edi, 1
jmp 0x4071d2
cmp eax, 0x102
jne 0x4071b6
or esi, 0xffffffff
xor edi, edi
jmp 0x4071d2
cmp eax, 0x80
jb 0x4071cc
add ecx, 0x80
cmp eax, ecx
jae 0x4071cc
lea esi, [eax - 0x80]
jmp 0x4071cf
or esi, 0xffffffff
or edi, 0xffffffff
call fcn.004099e0
test edi, edi
jge 0x407207
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x2733
je 0x407236
call esi
push eax
call fcn.0040e400
push eax
push str.Poll_returned_error__s__should_not_happen_n
push 0x41f3d0
call fcn.00413a68
add esp, 0x10
jmp 0x407236
cmp esi, 0xffffffff
jle 0x40722c
mov edx, dword [0x42016c]
mov eax, dword [edx + esi*4]
mov cl, byte [eax + 0x24]
test cl, cl
je 0x40722c
mov ecx, dword [0x420170]
mov edx, dword [ecx + esi*4]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
push esi
call fcn.00407640
add esp, 8
call fcn.00409890
call fcn.00407550
mov eax, dword [0x41ff60]
test eax, eax
je 0x407155
call fcn.00405a30
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret