Function at 0x4be1d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
test edi, edi
je 0x4be427
test ecx, ecx
je 0x4be427
push pe_nt_image_headers32
call fcn.0058d200
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
je 0x4be588
push pe_nt_image_headers32
push 0
push esi
call fcn.005869c0
add esp, 0xc
lea eax, [esi + 0x4b]
push 8
push eax
call fcn.004e2870
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x204]
mov dword [esi + 0x88], eax
movsx edx, byte [edi + 6]
movsx ecx, byte [edx + edi + 7]
lea eax, [ecx + edx]
movsx eax, byte [eax + edi + 8]
add eax, ecx
mov ecx, dword [esp + 0x10]
add eax, edx
inc ecx
movsx eax, byte [eax + edi + 9]
mov dword [esp + 0x20], eax
add eax, ecx
push eax
mov dword [esp + 0x2c], eax
call fcn.0058d200
add esp, 0xc
mov dword [esi + 0x14], eax
test eax, eax
je 0x4be5c9
push dword [esp + 8]
mov edx, dword [esp + 0x24]
mov ecx, eax
push edi
call fcn.00401000
mov eax, dword [esp + 0x20]
inc eax
push eax
mov eax, dword [esi + 0x14]
add eax, dword [esp + 0x14]
push 0
push eax
call fcn.005869c0
mov eax, dword [esi + 0x14]
add esp, 0x14
movzx eax, word [eax]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x14]
push dword [eax + 2]
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
movsx ecx, byte [edi + 6]
mov dword [esi + 8], ecx
lea ecx, [edi + 7]
mov dword [esi], ecx
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0xc]
movsx eax, byte [esi + edi + 7]
mov dword [ecx + 0xc], eax
lea eax, [edi + 8]
mov edx, dword [ecx + 0xc]
add eax, esi
mov dword [ecx + 4], eax
lea ecx, [edx + esi]
add ecx, edi
mov edi, dword [esp + 0xc]
movsx eax, byte [ecx + 8]
mov dword [edi + 0x58], eax
lea eax, [ecx + 9]
mov ecx, edi
mov dword [ecx + 0x54], eax
lea ecx, [edx + esi]
add ecx, dword [esp + 0x18]
mov esi, edi
add ecx, dword [esi + 0x58]
movsx eax, byte [ecx + 9]
mov dword [esi + 0x64], eax
lea eax, [ecx + 0xa]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 8]
add eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
shr ecx, 1
mov eax, ecx
mov dword [esi + 0x68], 0
not eax
mov dword [esi + 0x74], 0xffffffff
and eax, 1
and ecx, 1
mov dword [esi + 0x6c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x70], ecx
mov dword [esi + 0x78], eax
call fcn.004b4150
mov dword [esi + 0x84], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x80], eax
test edx, edx
je 0x4be3ea
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4be3ea
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
add eax, ecx
cmp eax, 0x28
jne 0x4be3ea
push ecx
mov byte [esi + 0x20], cl
lea ecx, [esi + 0x21]
push edx
lea edx, [eax + 2]
call fcn.00401000
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0x18]
lea ecx, [eax + esi]
mov byte [ecx + 0x21], dl
add ecx, 0x22
push edx
mov edx, 0x29
push edi
sub edx, eax
call fcn.00401000
add esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 1
push eax
mov edx, esi
call fcn.004bb710
mov ecx, eax
add esp, 8
mov dword [esp + 0x18], ecx
test ecx, ecx
jns 0x4be43a
push dword [esi + 0x14]
call fcn.0058bf82
add esp, 4
push esi
call fcn.0058bf82
mov edx, dword [esp + 0x30]
add esp, 4
mov dword [edx], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4be545
cmp dword [edi + 0x64], 0
jne 0x4be513
cmp dword [edi + 0x5c], 0
jne 0x4be513
xor edx, edx
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x14]
add eax, edx
mov dword [esp + 0x28], eax
cmp word [eax], 0
je 0x4be500
mov eax, dword [esi + 0x64]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x4be500
mov edi, dword [esi + 0x5c]
nop word [eax + eax]
mov eax, 2
lea edx, [esp + 0x30]
xorps xmm0, xmm0
mov esi, 0xc
movaps xmmword [esp + 0x30], xmm0
mov word [esp + 0x30], ax
mov ax, word [edi + 4]
mov word [esp + 0x32], ax
mov eax, dword [edi]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4be4e2
add edx, 4
add eax, 4
sub esi, 4
jae 0x4be4c0
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0x60]
mov byte [ecx + eax], 1
jmp 0x4be4f8
mov ecx, dword [esp + 8]
add edi, 6
inc ecx
mov dword [esp + 8], ecx
cmp ecx, dword [esp + 0x24]
jl 0x4be490
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, 0x1c
mov dword [esp + 0x10], edx
cmp edx, 0xe0
jl 0x4be460
lea eax, [edi + 0x20]
mov edx, 0x2b
push 0x2b
push eax
lea ecx, [esi + 0x20]
call fcn.00401000
mov eax, dword [edi + 0x8c]
mov dword [esi + 0x8c], eax
push dword [edi + 0x14]
call fcn.0058bf82
add esp, 0xc
push edi
call fcn.0058bf82
jmp 0x4be558
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x20]
push eax
lea edx, [edx + 0x108]
call fcn.004bbad0
mov edx, dword [esp + 0x30]
add esp, 4
mov ecx, esi
call fcn.004bbda0
mov edx, dword [esp + 0x18]
mov esi, eax
mov ecx, dword [esp + 0x14]
call fcn.004be070
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0xb10
mov edx, 0x61f4dc
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0xb10
push 0x61f4f8
push 0x61f514
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0xb18
mov edx, 0x61f538
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0xb18
push 0x61f554
push 0x61f570
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3