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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d12b0
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 0x57a0dd
mov eax, dword [edi + 8]
test eax, eax
je 0x57a0dd
mov esi, dword [eax + 8]
test esi, esi
je 0x57a0dd
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
je 0x579745
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [edx], 0
jmp 0x57a0dd
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
test al, al
je 0x579ba9
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
mov ecx, eax
and ecx, 0x20000000
cmp ecx, 0x20000000
jne 0x5799fa
and eax, 0xdfffffff
cmp eax, reloc.WS2_32.dll_getpeername
mov dword [ebx + 8], eax
je 0x57978e
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
jne 0x57a0dd
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
mov esi, eax
test esi, esi
je 0x57a0dd
lea ebp, [esi*4]
push ebp
call fcn.005bef5c
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.0057cb10
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 0x57a0dd
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.0057cb10
mov eax, dword [esp + 0x30]
mov dword [eax], 1
mov dword [eax + 4], esi
cmp dword [ebp + 8], 0x80000005
jne 0x5798f0
test esi, esi
jle 0x5798cf
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 0x57984a
mov eax, dword [eax]
jmp 0x57984c
xor eax, eax
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x579858
mov esi, dword [ecx + 8]
jmp 0x57985a
xor esi, esi
lea ebp, [eax + eax + 2]
test ebp, ebp
jne 0x579866
xor edx, edx
jmp 0x5798a8
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.0057cb10
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 0x57983d
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 0x5799e0
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.0057b5a0
mov eax, dword [eax]
mov dword [esp + 0x24], edi
cmp eax, edi
je 0x579982
mov esi, dword [eax + 8]
cmp esi, edi
je 0x579982
cmp byte [esi], 0
je 0x579982
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
cmp ebp, edi
je 0x579982
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.0057cb10
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 0x579984
xor esi, esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
cmp eax, edi
je 0x5799ad
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x34]
cmp dword [eax + 4], edi
jne 0x5799ad
push eax
call fcn.005ad4ce
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 0x579909
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 0x57a0dd
lea eax, [ebp*4]
push eax
call fcn.005bef5c
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 0x57a0dd
test edi, edi
jl 0x57a0dd
cmp dword [ebx + 8], reloc.WS2_32.dll_getpeername
jne 0x579ae5
mov edi, dword [esi + edi*4]
mov eax, dword [edi + 4]
test eax, eax
je 0x579a53
mov eax, dword [eax]
jmp 0x579a55
xor eax, eax
mov edi, dword [edi + 4]
test edi, edi
je 0x579a61
mov esi, dword [edi + 8]
jmp 0x579a63
xor esi, esi
lea ebp, [eax + eax + 2]
test ebp, ebp
jne 0x579a86
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.0057cb10
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.0057b5a0
mov eax, dword [eax]
mov dword [esp + 0x24], 1
test eax, eax
je 0x579b63
mov esi, dword [eax + 8]
test esi, esi
je 0x579b63
cmp byte [esi], 0
je 0x579b63
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x579b63
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.0057cb10
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 0x579b65
xor edx, edx
mov ecx, dword [ebx]
mov dword [ecx], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x57a3f8
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 0x57a3f8
push eax
call fcn.005ad4ce
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 0x57a0dd
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x28]
test al, al
jne 0x57a2a5
mov ecx, dword [ebp + 0x9c]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
jne 0x57a2a5
mov ecx, dword [ebp + 0x9c]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
test al, al
je 0x579d0a
mov eax, dword [edi + 8]
cmp eax, 0x80000601
jne 0x579c54
cmp word [esi], 0
je 0x579c35
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.005aef69
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 [0x8d1238]
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 0x579cc7
cmp eax, 0x80000201
je 0x579cc7
cmp eax, 0x80000101
je 0x579cc7
cmp eax, reloc.OLEAUT32.dll_SysStringLen
je 0x579cc7
cmp eax, 0x80000501
jne 0x57a0dd
cmp word [esi], 0
je 0x579ca8
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.005aef69
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 [0x8d1238]
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 0x579cef
push esi
call fcn.005aef40
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 0x579d6a
cmp dword [edi + 8], 0x80000301
jne 0x57a0dd
cmp word [esi], 0
je 0x579d4f
push esi
call fcn.005aef40
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 0x579eac
cmp dword [edi + 8], 0x10004
jne 0x57a0dd
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 0x579dec
push 0
push eax
push 0x7e9
call fcn.0057cb10
push 0x3a8
add esi, 0x1c
push 0
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.005631a0
add esp, 0x10
mov eax, dword [eax]
mov dword [esp + 0x24], 3
test eax, eax
je 0x579e6f
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x34], eax
je 0x579e6f
cmp byte [eax], 0
je 0x579e6f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x579e6f
lea esi, [ebx + 1]
push 0
push esi
push 0x7e8
call fcn.0057cb10
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 0x579e71
xor edx, edx
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x18], edx
test eax, eax
je 0x579e97
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 0x579e97
push eax
call fcn.005ad4ce
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 0x579f33
cmp dword [edi + 8], reloc.WS2_32.dll_getpeername
jne 0x57a0dd
cmp dword [esi], 1
jne 0x57a0dd
mov ebp, dword [esi + 4]
test ebp, ebp
jl 0x57a0dd
jne 0x579efa
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.0057cb10
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 0x57a3df
mov ecx, dword [ebp + 0x9c]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x74]
test al, al
je 0x57a0f8
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 0x579f72
cmp word [eax], 0
je 0x579f72
push eax
call fcn.005aef40
add esp, 4
jmp 0x579f74
xor eax, eax
mov ecx, dword [edi + 8]
mov dword [esp + 0x34], eax
cmp ecx, 0x80000601
jne 0x579f90
fild dword [esp + 0x34]
mov edx, dword [edi]
fstp qword [edx]
jmp 0x57a0dd
cmp ecx, reloc.OLEAUT32.dll_SysReAllocString
jne 0x579fa1
mov ecx, dword [edi]
mov dword [ecx], eax
jmp 0x57a0dd
cmp ecx, 0x80000301
je 0x57a0f2
cmp ecx, 0x80000201
je 0x57a0f2
cmp ecx, 0x80000101
je 0x57a0f2
cmp ecx, reloc.OLEAUT32.dll_SysStringLen
je 0x57a0f2
cmp ecx, 0x80000501
jne 0x579fe6
fild dword [esp + 0x34]
mov edx, dword [edi]
fstp dword [edx]
jmp 0x57a0dd
cmp ecx, 0x80000401
jne 0x579ffb
mov ecx, dword [edi]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x57a0dd
cmp ecx, reloc.OLEAUT32.dll_SysReAllocStringLen
jne 0x57a0dd
cmp eax, 1
je 0x57a013
cmp eax, 2
je 0x57a013
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.0057bac0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x57a054
mov ebp, dword [eax]
mov esi, dword [eax + 8]
jmp 0x57a058
xor ebp, ebp
xor esi, esi
test esi, esi
je 0x57a0b4
cmp byte [esi], 0
je 0x57a0b4
test ebp, ebp
jne 0x57a072
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x57a0b4
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.0057cb10
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 0x57a0b6
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x57a0dd
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 0x57a0dd
push eax
call fcn.005ad4ce
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 0x57a0dd
mov eax, dword [edi + 8]
cmp eax, 0x80000601
jne 0x57a110
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
jmp 0x57a0dd
cmp eax, 0x80000301
je 0x57a29a
cmp eax, 0x80000201
je 0x57a29a
cmp eax, 0x80000101
je 0x57a29a
cmp eax, reloc.OLEAUT32.dll_SysStringLen
je 0x57a29a
cmp eax, 0x80000501
jne 0x57a14b
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x57a0dd
cmp eax, 0x80000401
jne 0x57a163
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
jmp 0x57a0dd
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
jne 0x57a21c
push 0x3a8
push 0
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0057ab40
add esp, 0x10
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], 5
test eax, eax
je 0x57a19a
mov ebp, dword [eax]
mov esi, dword [eax + 8]
jmp 0x57a19e
xor ebp, ebp
xor esi, esi
test esi, esi
je 0x57a1fa
cmp byte [esi], 0
je 0x57a1fa
test ebp, ebp
jne 0x57a1b8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test ebp, ebp
je 0x57a1fa
lea edi, [ebp + 1]
push 0
push edi
push 0x7e8
call fcn.0057cb10
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 0x57a1fc
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x57a0dd
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x30]
jmp 0x57a0cd
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x57a0dd
cmp dword [esi], 1
jne 0x57a0dd
mov ebp, dword [esi + 4]
test ebp, ebp
jl 0x57a0dd
jne 0x57a248
mov ecx, dword [edi]
xor edx, edx
mov dword [ecx], edx
jmp 0x57a0dd
lea edi, [ebp + 8]
push 0
push edi
push 0x7e8
call fcn.0057cb10
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 0x57a0dd
mov edx, dword [edi]
mov eax, dword [esi]
mov dword [edx], eax
jmp 0x57a0dd
mov eax, dword [edi + 8]
cmp eax, reloc.OLEAUT32.dll_SysReAllocStringLen
jne 0x57a377
push 0x3a8
push 0
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.005631a0
add esp, 0x10
mov eax, dword [eax]
mov dword [esp + 0x24], 2
test eax, eax
je 0x57a331
mov esi, dword [eax + 8]
test esi, esi
je 0x57a331
cmp byte [esi], 0
je 0x57a331
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x57a331
lea edi, [ebx + 1]
push 0
push edi
push 0x7e8
call fcn.0057cb10
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 0x57a333
xor edx, edx
mov ecx, dword [edi]
mov dword [ecx], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x579e97
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 0x579e97
push eax
call fcn.005ad4ce
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 0x57a0dd
push esi
call fcn.005ad88d
lea ebp, [eax + eax + 2]
add esp, 4
test ebp, ebp
jne 0x57a3ae
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.0057cb10
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