Function at 0x4f8a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa8
push ebx
push ebp
mov eax, dword [0x623734]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x621804]
mov dword [esp + 0x78], edi
add ecx, 8
mov dword [esp + 0x4c], closesocket
test ecx, ecx
mov byte [esp + 0x16], 0
mov dword [esp + 0x7c], eax
je 0x4f8f75
test eax, eax
je 0x4f8f75
mov esi, dword [esp + 0xbc]
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.00419d20
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
mov ecx, dword [0x6217f0]
mov edx, dword [eax + 4]
mov dword [esp + 0x84], edx
mov edx, dword [0x6217f4]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x174]
mov dword [esp + 0x88], eax
mov eax, dword [0x6217f8]
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0x170]
mov dword [esp + 0x2c], eax
sub ecx, edx
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebp, edx
test esi, esi
mov dword [esp + 0x50], ebp
je 0x4f8f75
mov ecx, dword [esi + 0x128]
push 0x621c78
mov edx, dword [ecx]
call dword [edx + 0x1c]
test al, al
je 0x4f8f75
mov ecx, dword [0x6217f4]
mov eax, dword [edi + 0x128]
mov edx, dword [0x6217f8]
mov dword [esp + 0x64], ecx
mov bl, byte [eax + 0x23f]
mov eax, dword [0x6217f0]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x43]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b], bl
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], edx
call fcn.005d80f0
test ebp, ebp
mov dword [esp + 0x18], 0
jbe 0x4f8f5c
jmp 0x4f8b7e
mov ebp, dword [esp + 0x50]
test bl, bl
je 0x4f8b8f
call fcn.005f1876
xor edx, edx
div ebp
mov dword [esp + 0x18], edx
mov ebp, dword [esp + 0x18]
mov ecx, edi
push ebp
push esi
call fcn.004f8ff0
test al, al
je 0x4f8f27
lea edx, [esp + 0x6c]
push ebp
push edx
mov ecx, edi
call fcn.004fb7f0
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x4f8f1e
xor ebx, ebx
mov dword [esp + 0x44], edx
jmp 0x4f8be0
mov esi, dword [esp + 0xbc]
mov edx, dword [esi + 0x114]
mov edi, dword [ebx + ecx]
mov eax, dword [esi + 0x118]
mov ebp, dword [ebx + ecx + 4]
sub edx, edi
sub eax, ebp
mov edi, edx
imul edi, edx
mov edx, eax
imul edx, eax
mov eax, dword [esp + 0x4c]
add edi, edx
cmp edi, eax
jge 0x4f8ef9
mov eax, dword [ebx + ecx + 8]
test eax, eax
jge 0x4f8c1a
add eax, 0xfffffff1
cdq
and edx, 0xf
add eax, edx
mov ebp, eax
mov eax, dword [ebx + ecx]
cdq
and edx, 0x3f
add eax, edx
mov esi, eax
mov eax, dword [ebx + ecx + 4]
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [esp + 0x60]
sar esi, 6
sar ebp, 4
sar eax, 6
cmp esi, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
jne 0x4f8c64
cmp eax, dword [esp + 0x64]
jne 0x4f8c64
cmp ebp, dword [esp + 0x68]
je 0x4f8ef9
cmp esi, dword [esp + 0x54]
jne 0x4f8c7a
cmp eax, dword [esp + 0x58]
jne 0x4f8c7a
cmp ebp, dword [esp + 0x5c]
je 0x4f8ef9
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0x10]
lea ebp, [eax + 0x154]
cmp ecx, ebp
je 0x4f8d72
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov edx, dword [eax]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], edx
push eax
call fcn.00561700
mov ecx, dword [eax]
lea edx, [esp + 0xa4]
mov dword [esp + 0x3c], ecx
push edx
mov ecx, ebp
call fcn.005d8060
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
cmp edx, ecx
mov dword [esp + 0x48], eax
je 0x4f8d2d
cmp dword [esp + 0x3c], eax
je 0x4f8d35
lea eax, [esp + 0xac]
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.00483b90
mov esi, dword [eax]
lea ecx, [esp + 0xa0]
push 0
push ecx
lea ecx, [esp + 0x28]
add esi, 8
call fcn.00483b90
mov eax, dword [eax]
mov edx, dword [esi]
add eax, 8
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
cmp eax, ecx
mov eax, dword [esp + 0x48]
jne 0x4f8cd7
mov edx, dword [esp + 0x3c]
cmp edx, eax
jne 0x4f8d5a
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
lea eax, [esp + 0x28]
mov ecx, esp
push eax
call fcn.005d82d0
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00449c20
jmp 0x4f8d72
push eax
push edx
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
push edx
call fcn.005d82d0
lea ecx, [esp + 0x1c]
call fcn.00449920
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0x7c]
push 0
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x8c]
push edx
call dword [eax + 0x18]
test al, al
jne 0x4f8ea5
lea eax, [esp + 0x10]
cmp ebp, eax
je 0x4f8e87
lea ecx, [esp + 0xb4]
push ecx
mov ecx, ebp
call fcn.00561700
mov edx, dword [eax]
mov eax, dword [ebp]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x1c], edx
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], eax
call fcn.00561700
mov edx, dword [eax]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], edx
call fcn.005d8060
mov edi, dword [eax]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x1c], eax
je 0x4f8e46
cmp dword [esp + 0x30], edi
je 0x4f8e4e
lea ecx, [esp + 0xa8]
push 0
push ecx
lea ecx, [esp + 0x38]
call fcn.00483b90
mov esi, dword [eax]
lea edx, [esp + 0x8c]
push 0
push edx
lea ecx, [esp + 0x24]
add esi, 8
call fcn.00483b90
mov eax, dword [eax]
mov ecx, dword [esi]
add eax, 8
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x1c], eax
jne 0x4f8df6
mov ecx, dword [esp + 0x30]
cmp ecx, edi
jne 0x4f8e71
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
push ecx
mov dword [ecx], eax
mov ecx, esp
push edx
call fcn.005d82d0
lea eax, [esp + 0x98]
mov ecx, ebp
push eax
call fcn.00449c20
jmp 0x4f8e87
push edi
push ecx
push ecx
lea edx, [esp + 0x40]
mov ecx, esp
push edx
call fcn.005d82d0
mov ecx, ebp
call fcn.00449920
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], edx
jmp 0x4f8ef9
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x64], ecx
mov ecx, ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], edx
call fcn.005eba10
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0xc4]
mov byte [esp + 0x16], 1
mov dword [esp + 0x4c], edi
lea eax, [ebx + ecx]
mov esi, dword [ebx + ecx]
mov dword [edx], esi
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0x18]
mov dword [eax], edx
mov eax, dword [esp + 0x44]
add ebx, 0xc
dec eax
mov dword [esp + 0x44], eax
jne 0x4f8bd9
mov bl, byte [esp + 0x17]
mov esi, dword [esp + 0xbc]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x6c]
call fcn.0040f560
test bl, bl
jne 0x4f8f3c
mov eax, dword [esp + 0x50]
inc ebp
cmp ebp, eax
mov dword [esp + 0x18], ebp
jb 0x4f8b7a
mov al, byte [esp + 0x16]
test al, al
je 0x4f8f5c
lea ecx, [esp + 0x10]
call fcn.004fd8f0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 0xc
lea ecx, [esp + 0x10]
call fcn.00449320
mov ecx, dword [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.004a6e10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa8
ret 0xc