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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x566ce0
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 0x4fc8bd
mov eax, dword [edi + 8]
test eax, eax
je 0x4fc8bd
mov esi, dword [eax + 8]
test esi, esi
je 0x4fc8bd
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
je 0x4fbf25
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [edx], 0
jmp 0x4fc8bd
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
test al, al
je 0x4fc389
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x4fc1da
and eax, 0xdfffffff
cmp eax, reloc.WS2_32.dll_getpeername
mov dword [ebx + 8], eax
je 0x4fbf6e
cmp eax, 0x80000004
jne 0x4fc8bd
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov esi, eax
test esi, esi
je 0x4fc8bd
lea ebp, [esi*4]
push ebp
call fcn.00555311
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.00500930
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 0x4fc8bd
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.00500930
mov eax, dword [esp + 0x30]
mov dword [eax], 1
mov dword [eax + 4], esi
cmp dword [ebp + 8], 0x80000005
jne 0x4fc0d0
test esi, esi
jle 0x4fc0af
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 0x4fc02a
mov eax, dword [eax]
jmp 0x4fc02c
xor eax, eax
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4fc038
mov esi, dword [ecx + 8]
jmp 0x4fc03a
xor esi, esi
lea ebp, [eax + eax + 2]
test ebp, ebp
jne 0x4fc046
xor edx, edx
jmp 0x4fc088
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.00500930
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 0x4fc01d
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 0x4fc1c0
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.004fe250
mov eax, dword [eax]
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x4fc162
mov esi, dword [eax + 8]
cmp esi, edi
je 0x4fc162
cmp byte [esi], 0
je 0x4fc162
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
cmp ebp, edi
je 0x4fc162
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.00500930
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 0x4fc164
xor esi, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
cmp eax, edi
je 0x4fc18d
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
cmp dword [eax + 4], edi
jne 0x4fc18d
push eax
call fcn.005376fe
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 0x4fc0e9
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 0x4fc8bd
lea eax, [ebp*4]
push eax
call fcn.00555311
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 0x4fc8bd
test edi, edi
jl 0x4fc8bd
cmp dword [ebx + 8], reloc.WS2_32.dll_getpeername
jne 0x4fc2c5
mov edi, dword [esi + edi*4]
mov eax, dword [edi + 4]
test eax, eax
je 0x4fc233
mov eax, dword [eax]
jmp 0x4fc235
xor eax, eax
mov edi, dword [edi + 4]
test edi, edi
je 0x4fc241
mov esi, dword [edi + 8]
jmp 0x4fc243
xor esi, esi
lea ebp, [eax + eax + 2]
test ebp, ebp
jne 0x4fc266
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.00500930
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.004fe250
mov eax, dword [eax]
mov dword [esp + 0x24], 1
test eax, eax
je 0x4fc343
mov esi, dword [eax + 8]
test esi, esi
je 0x4fc343
cmp byte [esi], 0
je 0x4fc343
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4fc343
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.00500930
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 0x4fc345
xor edx, edx
mov ecx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4fcbd8
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 0x4fcbd8
push eax
call fcn.005376fe
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 0x4fc8bd
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x28]
test al, al
jne 0x4fca85
mov ecx, dword [ebp + 0x9c]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
jne 0x4fca85
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
je 0x4fc4ea
mov eax, dword [edi + 8]
cmp eax, 0x80000601
jne 0x4fc434
cmp word [esi], 0
je 0x4fc415
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.005390db
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 [0x8c6b68]
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 0x4fc4a7
cmp eax, 0x80000201
je 0x4fc4a7
cmp eax, 0x80000101
je 0x4fc4a7
cmp eax, 0x80000006
je 0x4fc4a7
cmp eax, 0x80000501
jne 0x4fc8bd
cmp word [esi], 0
je 0x4fc488
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.005390db
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 [0x8c6b68]
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 0x4fc4cf
push esi
call fcn.005390b2
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 0x4fc54a
cmp dword [edi + 8], 0x80000301
jne 0x4fc8bd
cmp word [esi], 0
je 0x4fc52f
push esi
call fcn.005390b2
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 0x4fc68c
cmp dword [edi + 8], 0x10004
jne 0x4fc8bd
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 0x4fc5cc
push 0
push eax
push 0x7e9
call fcn.00500930
push 0x3a8
add esi, 0x1c
push 0
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.004fe450
add esp, 0x10
mov eax, dword [eax]
mov dword [esp + 0x24], 3
test eax, eax
je 0x4fc64f
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x34], eax
je 0x4fc64f
cmp byte [eax], 0
je 0x4fc64f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x4fc64f
lea esi, [ebx + 1]
push 0
push esi
push 0x7e8
call fcn.00500930
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 0x4fc651
xor edx, edx
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x18], edx
test eax, eax
je 0x4fc677
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 0x4fc677
push eax
call fcn.005376fe
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 0x4fc713
cmp dword [edi + 8], reloc.WS2_32.dll_getpeername
jne 0x4fc8bd
cmp dword [esi], 1
jne 0x4fc8bd
mov ebp, dword [esi + 4]
test ebp, ebp
jl 0x4fc8bd
jne 0x4fc6da
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.00500930
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 0x4fcbbf
mov ecx, dword [ebp + 0x9c]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x74]
test al, al
je 0x4fc8d8
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 0x4fc752
cmp word [eax], 0
je 0x4fc752
push eax
call fcn.005390b2
add esp, 4
jmp 0x4fc754
xor eax, eax
mov ecx, dword [edi + 8]
mov dword [esp + 0x34], eax
cmp ecx, 0x80000601
jne 0x4fc770
fild dword [esp + 0x34]
mov edx, dword [edi]
fstp qword [edx]
jmp 0x4fc8bd
cmp ecx, 0x80000002
jne 0x4fc781
mov ecx, dword [edi]
mov dword [ecx], eax
jmp 0x4fc8bd
cmp ecx, 0x80000301
je 0x4fc8d2
cmp ecx, 0x80000201
je 0x4fc8d2
cmp ecx, 0x80000101
je 0x4fc8d2
cmp ecx, 0x80000006
je 0x4fc8d2
cmp ecx, 0x80000501
jne 0x4fc7c6
fild dword [esp + 0x34]
mov edx, dword [edi]
fstp dword [edx]
jmp 0x4fc8bd
cmp ecx, 0x80000401
jne 0x4fc7db
mov ecx, dword [edi]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x4fc8bd
cmp ecx, 0x80000004
jne 0x4fc8bd
cmp eax, 1
je 0x4fc7f3
cmp eax, 2
je 0x4fc7f3
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.004ff8e0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4fc834
mov ebp, dword [eax]
mov esi, dword [eax + 8]
jmp 0x4fc838
xor ebp, ebp
xor esi, esi
test esi, esi
je 0x4fc894
cmp byte [esi], 0
je 0x4fc894
test ebp, ebp
jne 0x4fc852
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4fc894
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.00500930
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 0x4fc896
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4fc8bd
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 0x4fc8bd
push eax
call fcn.005376fe
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 0x4fc8bd
mov eax, dword [edi + 8]
cmp eax, 0x80000601
jne 0x4fc8f0
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
jmp 0x4fc8bd
cmp eax, 0x80000301
je 0x4fca7a
cmp eax, 0x80000201
je 0x4fca7a
cmp eax, 0x80000101
je 0x4fca7a
cmp eax, 0x80000006
je 0x4fca7a
cmp eax, 0x80000501
jne 0x4fc92b
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x4fc8bd
cmp eax, 0x80000401
jne 0x4fc943
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
jmp 0x4fc8bd
cmp eax, 0x80000004
jne 0x4fc9fc
push 0x3a8
push 0
lea edx, [esp + 0x38]
push esi
push edx
call fcn.004fd7a0
add esp, 0x10
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 5
test eax, eax
je 0x4fc97a
mov ebp, dword [eax]
mov esi, dword [eax + 8]
jmp 0x4fc97e
xor ebp, ebp
xor esi, esi
test esi, esi
je 0x4fc9da
cmp byte [esi], 0
je 0x4fc9da
test ebp, ebp
jne 0x4fc998
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x4fc9da
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.00500930
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 0x4fc9dc
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4fc8bd
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x30]
jmp 0x4fc8ad
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x4fc8bd
cmp dword [esi], 1
jne 0x4fc8bd
mov ebp, dword [esi + 4]
test ebp, ebp
jl 0x4fc8bd
jne 0x4fca28
mov ecx, dword [edi]
xor edx, edx
mov dword [ecx], edx
jmp 0x4fc8bd
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.00500930
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 0x4fc8bd
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [edx], eax
jmp 0x4fc8bd
mov eax, dword [edi + 8]
cmp eax, 0x80000004
jne 0x4fcb57
push 0x3a8
push 0
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.004fe450
add esp, 0x10
mov eax, dword [eax]
mov dword [esp + 0x24], 2
test eax, eax
je 0x4fcb11
mov esi, dword [eax + 8]
test esi, esi
je 0x4fcb11
cmp byte [esi], 0
je 0x4fcb11
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x4fcb11
lea edi, [ebx + 1]
push 0
push edi
push 0x7e8
call fcn.00500930
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 0x4fcb13
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4fc677
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 0x4fc677
push eax
call fcn.005376fe
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 0x4fc8bd
push esi
call fcn.00537eb7
lea ebp, [eax + eax + 2]
add esp, 4
test ebp, ebp
jne 0x4fcb8e
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.00500930
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