Function at 0x49667f
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov eax, 0x102c
call fcn.005b9060
mov eax, dword [0x6d1d44]
xor eax, esp
mov dword [esp + 0x1024], eax
movzx eax, word [esp + 0x1030]
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x104c]
mov ebp, edx
push esi
mov esi, dword [esp + 0x104c]
push edi
mov edi, dword [ebx + ebp*4 + 0x178]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edi
lea ecx, [edi + 0x7c]
call fcn.0044cfd4
cmp dword [esp + 0x104c], 0x32
push 2
pop edx
jne 0x496939
mov eax, dword [ebx + ebp*4 + 0x178]
mov ecx, dword [esp + 0x1c]
movzx ecx, cx
mov dword [esp + 0x24], ecx
mov edx, ecx
mov ecx, dword [eax + 0x80]
push 0
call fcn.0048ba70
mov esi, eax
mov eax, dword [esp + 0x24]
pop ecx
push 2
pop edx
movsx ecx, byte [eax]
mov dword [esp + 0x10], esi
sub ecx, edx
je 0x4968c8
sub ecx, 1
jne 0x496859
movzx eax, word [eax + 8]
push eax
mov byte [esp + 0x1f], dl
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x20]
xor edx, edx
movzx eax, ax
inc edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [ecx + eax + 0xc], 0
mov eax, 0x8000
test eax, esi
jne 0x496856
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
mov word [esp + 0x10], ax
movzx eax, byte [ecx + 1]
sub eax, edx
je 0x4967a7
sub eax, edx
je 0x4967a2
sub eax, 0x7e
je 0x496796
sub eax, edx
je 0x49678f
sub eax, edx
jne 0x4967ba
mov eax, 0x82
or word [esp + 0x12], ax
jmp 0x4967ac
mov eax, 0x81
jmp 0x496788
mov eax, 0x80
or word [esp + 0x12], ax
jmp 0x4967ba
push 2
pop eax
jmp 0x496788
or word [esp + 0x12], dx
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov word [esp + 0x16], ax
mov ecx, dword [ebx + ebp*4 + 0x178]
push dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x80]
call fcn.0048b968
mov edx, dword [esp + 0x28]
pop ecx
mov ecx, dword [ebx + ebp*4 + 0x178]
push dword [esp + 0x14]
mov ecx, dword [ecx + 0x84]
call fcn.0048b968
mov eax, dword [ebx + ebp*4 + 0x178]
mov esi, dword [esp + 0x20]
pop ecx
mov dword [eax + 0x7c], 0
mov ecx, dword [ebx + 0x1b0]
test ecx, ecx
je 0x49682a
push dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add eax, 0xc
push eax
push esi
push dword [ebx + ebp*4 + 0x178]
push ebx
call ecx
add esp, 0x14
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx + ebp*4 + 0x178]
add ecx, 0x7c
call fcn.0044cfd4
cmp dword [esp + 0x2c], 0
jne 0x496856
push 1
lea eax, [esp + 0x1f]
mov edx, ebp
push eax
push 0x32
push esi
mov ecx, ebx
call fcn.004964e5
add esp, 0x10
push 2
pop edx
cmp dword [edi + 0x94], 0
je 0x496b5d
cmp byte [edi + 0x94], 0xff
jne 0x496b5d
movzx eax, word [edi + 0x96]
mov ecx, dword [edi + 0xf4]
mov esi, eax
add ecx, dword [edi + 0xec]
sub ecx, eax
shr esi, 1
sub esi, edx
mov eax, dword [ecx]
cmp eax, dword [edi + 0x6c]
ja 0x496b5d
mov eax, esi
mov edx, 0x1000
shl eax, 2
cmp eax, edx
ja 0x496b48
test esi, esi
jle 0x4968c2
lea eax, [esi + esi]
push eax
lea eax, [ecx + 4]
push eax
lea ecx, [esp + 0x38]
call section..text
pop ecx
pop ecx
push esi
jmp 0x496b4a
test esi, 0x4000
je 0x496859
mov ecx, dword [ebx + ebp*4 + 0x178]
xor esi, 0xc000
mov edx, dword [esp + 0x24]
or esi, 0x8000
mov word [esp + 0x10], si
push dword [esp + 0x10]
mov ecx, dword [ecx + 0x80]
call fcn.0048b968
mov eax, dword [ebx + ebp*4 + 0x178]
pop ecx
mov dword [eax + 0x7c], 0
mov eax, dword [ebx + 0x1b8]
test eax, eax
je 0x496925
push dword [esp + 0x1c]
push dword [ebx + ebp*4 + 0x178]
push ebx
call eax
add esp, 0xc
mov ecx, dword [ebx + ebp*4 + 0x178]
add ecx, 0x7c
call fcn.0044cfd4
jmp 0x496856
mov al, byte [esp + 0x1048]
and al, 3
cmp al, 3
jne 0x4969b1
cmp dword [ebx + 0x140], 0
je 0x496859
mov eax, dword [ebx + ebp*4 + 0x178]
cmp dword [eax + 0x78], edx
jne 0x496859
mov edx, dword [esp + 0x14]
mov dword [eax + 0x7c], 0
mov ecx, dword [ebx + ebp*4 + 0x178]
lea eax, [ecx + 0x3c]
push eax
push edx
push esi
push dword [esp + 0x1058]
push dword [esp + 0x2c]
push ecx
push ebx
call dword [ebx + 0x140]
mov ecx, dword [ebx + ebp*4 + 0x178]
add esp, 0x1c
test ecx, ecx
je 0x496b6b
push 2
pop eax
cmp dword [ecx + 0x78], eax
jne 0x496b6b
jmp 0x49692c
mov eax, dword [ebx + ebp*4 + 0x178]
mov ecx, dword [esp + 0x1c]
movzx ecx, cx
mov dword [esp + 0x24], ecx
mov edx, ecx
mov ecx, dword [eax + 0x8c]
push 0
call fcn.0048ba70
mov esi, eax
xor eax, eax
inc eax
pop ecx
test esi, esi
jne 0x496a17
test byte [esp + 0x1048], 2
je 0x496856
push 0x1e6
push 0x742670
push eax
push 0xc
call fcn.005ed7c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x496b84
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, dword [esp + 0x28]
inc eax
test byte [esp + 0x1048], 2
je 0x496a25
and dword [esi + 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
js 0x496856
mov edx, dword [esp + 0x14]
add edx, ecx
cmp edx, dword [esi + 8]
jle 0x496a95
push 0xddd
push 0x742e9c
push eax
push edx
push dword [esi]
call fcn.005ed970
add esp, 0x14
mov dword [esi], eax
test eax, eax
jne 0x496a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0xddd
push esi
push edi
mov edx, 0x742eb8
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push 0x742ed4
push 0x742ef0
jmp 0x496bb1
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
add eax, ecx
mov dword [esi + 8], eax
mov edx, dword [esi + 8]
push dword [esp + 0x14]
mov eax, dword [esp + 0x24]
sub edx, ecx
mov ecx, dword [esi]
add ecx, dword [esi + 4]
push eax
call section..text
mov eax, dword [esp + 0x1c]
add dword [esi + 4], eax
mov ecx, dword [ebx + ebp*4 + 0x178]
mov edx, dword [esp + 0x2c]
push esi
mov ecx, dword [ecx + 0x8c]
call fcn.0048b968
add esp, 0xc
test byte [esp + 0x1048], 1
je 0x496856
cmp dword [ebx + 0x140], 0
push 2
pop edx
je 0x496b3f
mov eax, dword [ebx + ebp*4 + 0x178]
cmp dword [eax + 0x78], edx
jne 0x496b3f
mov dword [eax + 0x7c], 0
mov ecx, dword [ebx + ebp*4 + 0x178]
lea eax, [ecx + 0x3c]
push eax
push dword [esi + 4]
push dword [esi]
push dword [esp + 0x1058]
push dword [esp + 0x2c]
push ecx
push ebx
call dword [ebx + 0x140]
mov ecx, dword [ebx + ebp*4 + 0x178]
add esp, 0x1c
test ecx, ecx
je 0x496b6b
push 2
pop eax
cmp dword [ecx + 0x78], eax
jne 0x496b6b
add ecx, 0x7c
call fcn.0044cfd4
push 2
pop edx
or dword [esi + 4], 0xffffffff
jmp 0x496859
push 0
and dword [edi + 0x94], 0
lea edx, [esp + 0x34]
mov ecx, edi
call fcn.00499523
pop ecx
mov eax, dword [ebx + ebp*4 + 0x178]
mov dword [eax + 0x7c], 0
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b8900
add esp, 0x102c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x1e7
push esi
push edi
mov edx, 0x74268c
xor ecx, ecx
call fcn.0048cac3
add esp, 0xc
push edi
push 0x7426a8
push 0x7426c4
call fcn.00401109
add esp, 0xc
push esi
call fcn.005c8390
int3