Function at 0x406bd0
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.00409bb0
add esp, 4
test eax, eax
jne 0x406c25
push str.vmnetnat.conf
call fcn.004179bf
add esp, 4
push str.vmnetnat_mac.txt
mov dword [0x4201b8], eax
call fcn.00409bb0
add esp, 4
test eax, eax
jne 0x406c48
push str.vmnetnat_mac.txt
call fcn.004179bf
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.00413c10
add esp, 8
test eax, eax
mov dword [0x41ff4c], eax
je 0x406c84
inc eax
mov dword [0x41ff4c], eax
jmp 0x406c8c
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.00410690
add esp, 0xc
cmp eax, 0xffffffff
je 0x406d6a
jmp 0x406cb0
mov ebx, dword [0x41f378]
add eax, 0xffffffc6
cmp eax, 0x38
ja case.0x406cc9.59
movzx eax, byte [eax + 0x407274]
jmp dword [eax*4 + 0x40724c]
inc dword [0x41ff48]
jmp 0x406d52
mov dword [ebp - 4], 1
jmp 0x406d52
mov ecx, dword [0x420a28]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x406dad
mov dword [0x420c88], eax
jmp 0x406d52
mov edx, dword [0x420a28]
push 0x420be0
push edx
call fcn.004062d0
add esp, 8
test eax, eax
je 0x406d52
mov eax, dword [0x420a28]
push eax
push str._s_is_not_a_valid_MAC_address_n
push 0x41f3d0
call fcn.00413858
add esp, 0xc
call fcn.00405a50
push 0x73
call fcn.0040135c
mov eax, dword [0x420a28]
mov dword [0x41ff54], eax
jmp 0x406d52
mov ecx, dword [0x420a28]
mov dword [0x4201b8], ecx
push str.c:GI:M:Dhm:r
push edi
push esi
call fcn.00410690
add esp, 0xc
cmp eax, 0xffffffff
jne 0x406cb0
cmp ebx, esi
jne 0x406e26
mov eax, dword [ebp - 4]
test eax, eax
jne 0x406e26
push str.device
push str.host
call fcn.0040a310
add esp, 8
test eax, eax
mov dword [0x41ff44], eax
jne 0x406e39
call fcn.00405a80
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.00413858
add esp, 0xc
call fcn.00405a50
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.004137e4
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 0x406e02
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 0x406d9c
mov eax, dword [edi + ebx*4]
mov dword [0x41ff44], eax
call fcn.004064c0
test eax, eax
jge 0x406e5b
push str.Error_with_host_MAC_configuration_parameter_in_configuration_file._n
call fcn.004137e4
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 0x406e6e
call fcn.004063c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push str.allowAnyOUI
push str.host
call fcn.0040a3a0
push 0
push str.enableNatDhcp
push str.host
mov dword [0x420c84], eax
call fcn.0040a3a0
push 0x12c
push str.expireTimeout
push 0x41c310
mov dword [0x420b48], eax
call fcn.0040a3a0
lea ecx, [ebp - 8]
push ecx
mov dword [0x420b44], eax
call fcn.00409830
mov edx, dword [ebp - 4]
push edx
call fcn.00413944
add esp, 0x2c
call fcn.00406b60
call fcn.00406280
lea eax, [ebp - 0x198]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x406f1c
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call fcn.0040e0e0
add esp, 4
push eax
call esi
push eax
push str.WSAStartup_failed_with_error_0x_x:__s._n
push 0x41f3d0
call fcn.00413858
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.00406790
mov esi, eax
add esp, 4
test esi, esi
je 0x406f3f
call fcn.00405a50
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004098b0
mov edx, dword [0x41ff54]
push 0x41bec8
push edx
call fcn.00413cbd
mov esi, eax
add esp, 8
test esi, esi
je 0x406f9d
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.00413858
push esi
call fcn.00413c3d
add esp, 0x24
call fcn.00410510
call fcn.00405f00
call fcn.00405cb0
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.00406150
push 0x41ff5d
push 0x420b60
push str.PrivilegedUDP
mov edi, 0x41ff5c
call fcn.00406150
add esp, 0x18
call fcn.0040b170
call fcn.00409380
call fcn.0040f330
call fcn.0040e7e0
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 0x40723d
call fcn.00407720
mov ebx, eax
mov eax, dword [0x42017c]
test eax, eax
je 0x407159
xor eax, eax
jmp 0x40715e
call fcn.004097c0
cmp ebx, 0x40
jb 0x407168
mov ebx, 0x40
cmp eax, 0x3e8
jl 0x407174
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 0x407198
mov esi, eax
mov edi, 1
jmp 0x4071c2
cmp eax, 0x102
jne 0x4071a6
or esi, 0xffffffff
xor edi, edi
jmp 0x4071c2
cmp eax, 0x80
jb 0x4071bc
add ecx, 0x80
cmp eax, ecx
jae 0x4071bc
lea esi, [eax - 0x80]
jmp 0x4071bf
or esi, 0xffffffff
or edi, 0xffffffff
call fcn.004098b0
test edi, edi
jge 0x4071f7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x2733
je 0x407226
call esi
push eax
call fcn.0040e0e0
push eax
push str.Poll_returned_error__s__should_not_happen_n
push 0x41f3d0
call fcn.00413858
add esp, 0x10
jmp 0x407226
cmp esi, 0xffffffff
jle 0x40721c
mov edx, dword [0x42016c]
mov eax, dword [edx + esi*4]
mov cl, byte [eax + 0x24]
test cl, cl
je 0x40721c
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.00407630
add esp, 8
call fcn.00409760
call fcn.00407540
mov eax, dword [0x41ff60]
test eax, eax
je 0x407145
call fcn.00405a50
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret