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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x4c
test eax, eax
push ebx
push edi
je 0x4cfd97
mov edi, dword [esp + 0x58]
test edi, edi
je 0x4cfd97
mov ecx, dword [0x621804]
mov dword [esp + 0x18], eax
add eax, 0x34
push ebp
lea ebx, [ecx + 8]
xor ebp, ebp
mov edx, dword [eax]
push esi
mov dword [esp + 0x38], edx
mov dword [esp + 0x64], ebx
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x3c], ecx
mov ecx, 1
mov edx, dword [eax + 8]
or eax, 0xffffffff
mov dword [esp + 0x1c], closesocket
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffce
jl 0x4cfcc6
test ebp, ebp
mov dword [esp + 0x28], eax
jne 0x4cfcb0
mov edx, dword [esp + 0x38]
lea esi, [eax + edx]
mov dword [esp + 0x14], esi
cmp eax, ecx
jg 0x4cfcb0
cdq
mov edi, eax
mov eax, ecx
xor edi, edx
xor ecx, ecx
sub edi, edx
mov dword [esp + 0x24], ecx
sub eax, edi
test ebp, ebp
mov dword [esp + 0x30], eax
jne 0x4cfc92
jmp 0x4cfb80
mov eax, dword [esp + 0x30]
cmp ecx, 2
jge 0x4cfc92
test ecx, ecx
jne 0x4cfb8f
neg eax
mov ecx, dword [esp + 0x3c]
add ecx, eax
test esi, esi
jl 0x4cfc7d
test ecx, ecx
jl 0x4cfc7d
mov eax, dword [ebx + 0x2c]
cmp esi, eax
jge 0x4cfc7d
cmp ecx, dword [ebx + 0x30]
jge 0x4cfc7d
imul eax, ecx
add eax, esi
mov ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x38]
lea esi, [eax + edx*4]
test esi, esi
je 0x4cfc7d
mov eax, dword [esi + 0x34]
mov edx, dword [0x6249f8]
push 1
mov edx, dword [edx + 0x28]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x38]
mov ecx, dword [edx + ecx*4]
lea eax, [eax + eax*4]
mov edi, dword [ecx + eax*8]
mov ecx, esi
call fcn.00420ad0
test al, al
je 0x4cfc7d
test edi, edi
je 0x4cfc7d
test byte [esi + 0x83], 3
jne 0x4cfc7d
mov al, byte [edi + 0x2c]
test al, al
je 0x4cfc7d
mov ecx, esi
call fcn.00421af0
and eax, 0xff
mov cl, 1
mov ebp, eax
lea eax, [esi + 4]
mov edx, 2
mov edi, 2
cmp dword [eax], 0
sete bl
and cl, bl
add eax, 4
dec edi
jne 0x4cfc33
dec edx
jne 0x4cfc2e
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x34], cl
mov edx, dword [esp + 0x34]
and edx, 0xff
add ebp, edx
cmp ebp, eax
jle 0x4cfc75
cmp ebp, 3
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
jne 0x4cfc75
mov ebx, dword [esp + 0x64]
mov ebp, esi
mov dword [esp + 0x10], ebp
jmp 0x4cfc7d
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
inc ecx
test ebp, ebp
mov dword [esp + 0x24], ecx
je 0x4cfb7c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x60]
inc eax
inc esi
mov dword [esp + 0x28], eax
test ebp, ebp
mov dword [esp + 0x14], esi
je 0x4cfb55
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x18], ecx
test ebp, ebp
mov dword [esp + 0x2c], eax
je 0x4cfb35
mov eax, dword [esp + 0x1c]
pop esi
cmp eax, 0x80000000
pop ebp
jle 0x4cfd97
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4cfd97
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0x78]
mov eax, 0x20
xor edx, edx
mov ecx, eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
add edx, 0x34
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov ecx, ebx
call fcn.00436260
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
call fcn.005f1876
and eax, 0x8000001f
jns 0x4cfd3f
dec eax
or eax, 0xffffffe0
inc eax
add dword [esp + 0x30], eax
call fcn.005f1876
and eax, 0x8000001f
jns 0x4cfd54
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.0041aa50
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x74]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0x84]
mov edx, dword [edi]
push 1
push 0
push 1
mov ecx, edi
call dword [edx + 0x198]
pop edi
mov al, 1
pop ebx
add esp, 0x4c
ret 8
pop edi
xor al, al
pop ebx
add esp, 0x4c
ret 8