Function at 0x4fd390
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5681d0
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x30]
push edi
mov ecx, dword [ebp + 0x9c]
push esi
mov eax, dword [ecx]
call dword [eax + 0x11c]
mov ecx, dword [ebp + 0x9c]
push esi
mov ebx, eax
mov edx, dword [ecx]
call dword [edx + 0xb8]
mov edi, eax
test edi, edi
je 0x4fddad
mov eax, dword [edi + 8]
test eax, eax
je 0x4fddad
mov esi, dword [eax + 8]
test esi, esi
je 0x4fddad
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
je 0x4fd415
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [edx], 0
jmp 0x4fddad
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
test al, al
je 0x4fd879
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x4fd6ca
and eax, 0xdfffffff
cmp eax, reloc.WS2_32.dll_getpeername
mov dword [ebx + 8], eax
je 0x4fd45e
cmp eax, 0x80000004
jne 0x4fddad
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov esi, eax
test esi, esi
je 0x4fddad
lea ebp, [esi*4]
push ebp
call fcn.00556801
add esp, 4
mov ebx, eax
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0x10]
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
mov dword [esp + 0x30], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
test edx, edx
mov dword [edx], 1
mov dword [edx + 4], esi
je 0x4fddad
mov ebp, dword [esp + 0x2c]
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push eax
push 0x7e7
call fcn.00501e20
mov eax, dword [esp + 0x30]
mov dword [eax], 1
mov dword [eax + 4], esi
cmp dword [ebp + 8], 0x80000005
jne 0x4fd5c0
test esi, esi
jle 0x4fd59f
add eax, 8
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4fd51a
mov eax, dword [eax]
jmp 0x4fd51c
xor eax, eax
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4fd528
mov esi, dword [ecx + 8]
jmp 0x4fd52a
xor esi, esi
lea ebp, [eax + eax + 2]
test ebp, ebp
jne 0x4fd536
xor edx, edx
jmp 0x4fd578
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
lea edi, [edx + 8]
mov eax, ecx
mov dword [edx], 1
shr ecx, 2
mov dword [edx + 4], ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
add ebx, 4
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], eax
jne 0x4fd50d
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
pop edi
pop esi
mov edx, dword [ecx]
pop ebp
pop ebx
mov dword [edx], eax
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
xor edi, edi
cmp esi, edi
jle 0x4fd6b0
add eax, 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x34]
push 0x3a8
push ecx
mov ecx, dword [ebx]
add ecx, 4
call fcn.004ff740
mov eax, dword [eax]
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x4fd652
mov esi, dword [eax + 8]
cmp esi, edi
je 0x4fd652
cmp byte [esi], 0
je 0x4fd652
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
cmp ebp, edi
je 0x4fd652
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [edx + ebp], 0
mov esi, edx
xor edi, edi
jmp 0x4fd654
xor esi, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
cmp eax, edi
je 0x4fd67d
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
cmp dword [eax + 4], edi
jne 0x4fd67d
push eax
call fcn.00538bee
add esp, 4
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add ebx, 4
mov dword [esp + 0x34], edi
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
jne 0x4fd5d9
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov ebp, eax
test ebp, ebp
je 0x4fddad
lea eax, [ebp*4]
push eax
call fcn.00556801
mov edx, dword [edi]
add esp, 4
mov esi, eax
mov ecx, edi
push esi
call dword [edx + 0x10]
mov edi, dword [edi + 0x14]
cmp edi, ebp
jge 0x4fddad
test edi, edi
jl 0x4fddad
cmp dword [ebx + 8], reloc.WS2_32.dll_getpeername
jne 0x4fd7b5
mov edi, dword [esi + edi*4]
mov eax, dword [edi + 4]
test eax, eax
je 0x4fd723
mov eax, dword [eax]
jmp 0x4fd725
xor eax, eax
mov edi, dword [edi + 4]
test edi, edi
je 0x4fd731
mov esi, dword [edi + 8]
jmp 0x4fd733
xor esi, esi
lea ebp, [eax + eax + 2]
test ebp, ebp
jne 0x4fd756
mov ecx, dword [ebx]
pop edi
xor edx, edx
pop esi
pop ebp
mov dword [ecx], edx
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [esp + 0x2c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
lea edi, [edx + 8]
mov eax, ecx
mov dword [edx], 1
shr ecx, 2
mov dword [edx + 4], ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esi + edi*4]
lea edx, [esp + 0x34]
push 0x3a8
push edx
add ecx, 4
call fcn.004ff740
mov eax, dword [eax]
mov dword [esp + 0x24], 1
test eax, eax
je 0x4fd833
mov esi, dword [eax + 8]
test esi, esi
je 0x4fd833
cmp byte [esi], 0
je 0x4fd833
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4fd833
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [esp + 0x2c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [edx + ebp], 0
jmp 0x4fd835
xor edx, edx
mov ecx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4fe0c8
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4fe0c8
push eax
call fcn.00538bee
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edi, dword [esp + 0x2c]
mov edx, dword [edi + 8]
and edx, 0x20000000
cmp edx, 0x20000000
je 0x4fddad
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x28]
test al, al
jne 0x4fdf75
mov ecx, dword [ebp + 0x9c]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
jne 0x4fdf75
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
je 0x4fd9da
mov eax, dword [edi + 8]
cmp eax, 0x80000601
jne 0x4fd924
cmp word [esi], 0
je 0x4fd905
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.0053a5cb
mov edx, dword [edi]
add esp, 8
mov al, 1
fstp qword [edx]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [edi]
pop edi
fld qword [0x8c7f58]
pop esi
pop ebp
fstp qword [edx]
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp eax, 0x80000301
je 0x4fd997
cmp eax, 0x80000201
je 0x4fd997
cmp eax, 0x80000101
je 0x4fd997
cmp eax, 0x80000006
je 0x4fd997
cmp eax, 0x80000501
jne 0x4fddad
cmp word [esi], 0
je 0x4fd978
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0053a5cb
mov ecx, dword [edi]
add esp, 8
mov al, 1
fstp dword [ecx]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [edi]
pop edi
fld qword [0x8c7f58]
pop esi
pop ebp
fstp dword [ecx]
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp word [esi], 0
je 0x4fd9bf
push esi
call fcn.0053a5a2
mov edx, dword [edi]
add esp, 4
pop edi
pop esi
mov dword [edx], eax
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [edi]
xor eax, eax
pop edi
pop esi
mov dword [edx], eax
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x40]
test al, al
je 0x4fda3a
cmp dword [edi + 8], 0x80000301
jne 0x4fddad
cmp word [esi], 0
je 0x4fda1f
push esi
call fcn.0053a5a2
mov ecx, dword [edi]
add esp, 4
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [edi]
xor eax, eax
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [ebp + 0x9c]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x48]
test al, al
je 0x4fdb7c
cmp dword [edi + 8], 0x10004
jne 0x4fddad
mov eax, dword [edi]
xor edx, edx
mov ebp, dword [eax]
mov dword [esi + 0x68], esi
mov ecx, dword [esi + 0xc]
mov dword [ebp], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, 0x2bc
sete dl
xor eax, eax
mov dword [ebp + 4], edx
mov al, byte [esi + 0x14]
xor ecx, ecx
mov dword [ebp + 8], eax
mov cl, byte [esi + 0x16]
xor edx, edx
mov dword [ebp + 0xc], ecx
mov dl, byte [esi + 0x15]
mov eax, 0x66666667
mov dword [ebp + 0x10], edx
mov ecx, dword [esi + 0x6c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [ebp + 0x18]
test eax, eax
mov dword [ebp + 0x14], edx
je 0x4fdabc
push 0
push eax
push 0x7e9
call fcn.00501e20
push 0x3a8
add esi, 0x1c
push 0
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.004ff940
add esp, 0x10
mov eax, dword [eax]
mov dword [esp + 0x24], 3
test eax, eax
je 0x4fdb3f
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x34], eax
je 0x4fdb3f
cmp byte [eax], 0
je 0x4fdb3f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x4fdb3f
lea esi, [ebx + 1]
push 0
push esi
push 0x7e8
call fcn.00501e20
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x34]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + edx], 0
jmp 0x4fdb41
xor edx, edx
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x18], edx
test eax, eax
je 0x4fdb67
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4fdb67
push eax
call fcn.00538bee
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [ebp + 0x9c]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x4c]
test al, al
je 0x4fdc03
cmp dword [edi + 8], reloc.WS2_32.dll_getpeername
jne 0x4fddad
cmp dword [esi], 1
jne 0x4fddad
mov ebp, dword [esi + 4]
test ebp, ebp
jl 0x4fddad
jne 0x4fdbca
mov ecx, dword [edi]
pop edi
xor edx, edx
pop esi
pop ebp
mov dword [ecx], edx
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
add esi, 8
rep stosb byte es:[edi], al
mov dword [edx], 1
mov dword [edx + 4], ebp
mov ecx, ebp
jmp 0x4fe0af
mov ecx, dword [ebp + 0x9c]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x74]
test al, al
je 0x4fddc8
mov ebp, dword [ebp + 0x9c]
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 0xe8]
test eax, eax
je 0x4fdc42
cmp word [eax], 0
je 0x4fdc42
push eax
call fcn.0053a5a2
add esp, 4
jmp 0x4fdc44
xor eax, eax
mov ecx, dword [edi + 8]
mov dword [esp + 0x34], eax
cmp ecx, 0x80000601
jne 0x4fdc60
fild dword [esp + 0x34]
mov edx, dword [edi]
fstp qword [edx]
jmp 0x4fddad
cmp ecx, 0x80000002
jne 0x4fdc71
mov ecx, dword [edi]
mov dword [ecx], eax
jmp 0x4fddad
cmp ecx, 0x80000301
je 0x4fddc2
cmp ecx, 0x80000201
je 0x4fddc2
cmp ecx, 0x80000101
je 0x4fddc2
cmp ecx, 0x80000006
je 0x4fddc2
cmp ecx, 0x80000501
jne 0x4fdcb6
fild dword [esp + 0x34]
mov edx, dword [edi]
fstp dword [edx]
jmp 0x4fddad
cmp ecx, 0x80000401
jne 0x4fdccb
mov ecx, dword [edi]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x4fddad
cmp ecx, 0x80000004
jne 0x4fddad
cmp eax, 1
je 0x4fdce3
cmp eax, 2
je 0x4fdce3
xor eax, eax
mov dword [esp + 0x30], 0
push 0
push 0
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 4
mov byte [esp + 0x44], 0x25
mov byte [esp + 0x45], 0x64
mov byte [esp + 0x46], 0
call fcn.00500dd0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4fdd24
mov ebp, dword [eax]
mov esi, dword [eax + 8]
jmp 0x4fdd28
xor ebp, ebp
xor esi, esi
test esi, esi
je 0x4fdd84
cmp byte [esi], 0
je 0x4fdd84
test ebp, ebp
jne 0x4fdd42
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4fdd84
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
mov byte [edx + ebp], 0
jmp 0x4fdd86
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4fddad
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4fddad
push eax
call fcn.00538bee
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [edi]
mov dword [edx], eax
jmp 0x4fddad
mov eax, dword [edi + 8]
cmp eax, 0x80000601
jne 0x4fdde0
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
jmp 0x4fddad
cmp eax, 0x80000301
je 0x4fdf6a
cmp eax, 0x80000201
je 0x4fdf6a
cmp eax, 0x80000101
je 0x4fdf6a
cmp eax, 0x80000006
je 0x4fdf6a
cmp eax, 0x80000501
jne 0x4fde1b
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x4fddad
cmp eax, 0x80000401
jne 0x4fde33
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
jmp 0x4fddad
cmp eax, 0x80000004
jne 0x4fdeec
push 0x3a8
push 0
lea edx, [esp + 0x38]
push esi
push edx
call fcn.004fec90
add esp, 0x10
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 5
test eax, eax
je 0x4fde6a
mov ebp, dword [eax]
mov esi, dword [eax + 8]
jmp 0x4fde6e
xor ebp, ebp
xor esi, esi
test esi, esi
je 0x4fdeca
cmp byte [esi], 0
je 0x4fdeca
test ebp, ebp
jne 0x4fde88
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4fdeca
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
mov byte [edx + ebp], 0
jmp 0x4fdecc
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4fddad
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x30]
jmp 0x4fdd9d
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x4fddad
cmp dword [esi], 1
jne 0x4fddad
mov ebp, dword [esi + 4]
test ebp, ebp
jl 0x4fddad
jne 0x4fdf18
mov ecx, dword [edi]
xor edx, edx
mov dword [ecx], edx
jmp 0x4fddad
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
add esi, 8
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebp
lea edi, [edx + 8]
mov eax, ecx
mov dword [edx], 1
shr ecx, 2
mov dword [edx + 4], ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi]
mov dword [ecx], edx
jmp 0x4fddad
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [edx], eax
jmp 0x4fddad
mov eax, dword [edi + 8]
cmp eax, 0x80000004
jne 0x4fe047
push 0x3a8
push 0
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.004ff940
add esp, 0x10
mov eax, dword [eax]
mov dword [esp + 0x24], 2
test eax, eax
je 0x4fe001
mov esi, dword [eax + 8]
test esi, esi
je 0x4fe001
cmp byte [esi], 0
je 0x4fe001
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x4fe001
lea edi, [ebx + 1]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
mov byte [ebx + edx], 0
jmp 0x4fe003
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4fdb67
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4fdb67
push eax
call fcn.00538bee
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x4fddad
push esi
call fcn.005393a7
lea ebp, [eax + eax + 2]
add esp, 4
test ebp, ebp
jne 0x4fe07e
mov ecx, dword [edi]
pop edi
xor edx, edx
pop esi
pop ebp
mov dword [ecx], edx
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.00501e20
mov ecx, edi
mov edx, eax
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [edx], 1
mov dword [edx + 4], ebp
mov ecx, ebp
mov eax, ecx
lea edi, [edx + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi]
mov dword [ecx], edx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret