Function at 0x4bea70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x6019e4]
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 0x4becc7
test ecx, ecx
je 0x4becc7
push pe_nt_image_headers32
call fcn.0058db11
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
je 0x4bee28
push pe_nt_image_headers32
push 0
push esi
call fcn.00587250
add esp, 0xc
lea eax, [esi + 0x4b]
push 8
push eax
call fcn.004e3140
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.0058db11
add esp, 0xc
mov dword [esi + 0x14], eax
test eax, eax
je 0x4bee69
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.00587250
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.004b48f0
mov dword [esi + 0x84], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x80], eax
test edx, edx
je 0x4bec8a
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4bec8a
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
add eax, ecx
cmp eax, 0x28
jne 0x4bec8a
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.004bbfb0
mov ecx, eax
add esp, 8
mov dword [esp + 0x18], ecx
test ecx, ecx
jns 0x4becda
push dword [esi + 0x14]
call fcn.0058c812
add esp, 4
push esi
call fcn.0058c812
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.005852a8
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4bede5
cmp dword [edi + 0x64], 0
jne 0x4bedb3
cmp dword [edi + 0x5c], 0
jne 0x4bedb3
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 0x4beda0
mov eax, dword [esi + 0x64]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x24], eax
test eax, eax
jle 0x4beda0
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 0x4bed82
add edx, 4
add eax, 4
sub esi, 4
jae 0x4bed60
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0x60]
mov byte [ecx + eax], 1
jmp 0x4bed98
mov ecx, dword [esp + 8]
add edi, 6
inc ecx
mov dword [esp + 8], ecx
cmp ecx, dword [esp + 0x24]
jl 0x4bed30
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 0x4bed00
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.0058c812
add esp, 0xc
push edi
call fcn.0058c812
jmp 0x4bedf8
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x20]
push eax
lea edx, [edx + 0x108]
call fcn.004bc370
mov edx, dword [esp + 0x30]
add esp, 4
mov ecx, esi
call fcn.004bc640
mov edx, dword [esp + 0x18]
mov esi, eax
mov ecx, dword [esp + 0x14]
call fcn.004be910
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0xb10
mov edx, 0x627154
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0xb10
push 0x627170
push 0x62718c
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0xb18
mov edx, 0x6271b0
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0xb18
push 0x6271cc
push 0x6271e8
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
int3