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

Disassembly:
sub esp, 0x54
push ebp
push esi
mov esi, dword [esp + 0x64]
push edi
test esi, esi
je 0x4cfabb
mov edi, dword [esp + 0x64]
test edi, edi
je 0x4cfabb
mov al, byte [edi + 0x395]
test al, al
jne 0x4cf7f1
mov ecx, edi
call fcn.00515af0
jmp 0x4cf804
mov eax, dword [edi + 0x398]
test eax, eax
jg 0x4cf804
push 0
mov ecx, edi
call fcn.005163a0
mov eax, dword [0x621804]
push ebx
mov dword [esp + 0x20], esi
xor ebx, ebx
add esi, 0x34
lea ebp, [eax + 8]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [esi]
mov dword [esp + 0x1c], closesocket
mov dword [esp + 0x40], ecx
mov ecx, 3
mov edx, dword [esi + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], edx
mov eax, dword [esi + 8]
mov dword [esp + 0x48], eax
mov eax, 0xfffffffd
mov dword [esp + 0x30], eax
cmp eax, 0xffffffce
jl 0x4cfa32
test ebx, ebx
mov dword [esp + 0x2c], eax
jne 0x4cfa1c
mov edx, dword [esp + 0x40]
lea esi, [eax + edx]
mov dword [esp + 0x14], esi
cmp eax, ecx
jg 0x4cfa1c
cdq
mov edi, eax
mov eax, ecx
xor edi, edx
xor ecx, ecx
sub edi, edx
mov dword [esp + 0x28], ecx
sub eax, edi
test ebx, ebx
mov dword [esp + 0x34], eax
jne 0x4cf9fe
jmp 0x4cf89b
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
cmp ecx, 2
jge 0x4cf9fe
test ecx, ecx
jne 0x4cf8aa
neg eax
mov ecx, dword [esp + 0x44]
add ecx, eax
test esi, esi
jl 0x4cf9e9
test ecx, ecx
jl 0x4cf9e9
mov eax, dword [ebp + 0x2c]
cmp esi, eax
jge 0x4cf9e9
cmp ecx, dword [ebp + 0x30]
jge 0x4cf9e9
imul eax, ecx
add eax, esi
mov ecx, eax
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x38]
lea esi, [eax + edx*4]
test esi, esi
je 0x4cf9e9
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 0x4cf9e9
test edi, edi
je 0x4cf9e9
mov eax, dword [esi]
lea edx, [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x44]
mov ecx, esi
push eax
mov dword [esp + 0x30], 0
call fcn.00561700
mov ecx, dword [eax]
push ecx
call fcn.004b6720
mov eax, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jg 0x4cf9e9
test byte [esi + 0x83], 3
jne 0x4cf9e9
mov al, byte [edi + 0x2c]
test al, al
je 0x4cf9e9
mov ecx, esi
call fcn.00421af0
and eax, 0xff
mov cl, 1
mov edx, eax
lea eax, [esi + 4]
mov ebp, 2
mov edi, 2
cmp dword [eax], 0
sete bl
and cl, bl
add eax, 4
dec edi
jne 0x4cf98d
dec ebp
jne 0x4cf988
mov al, byte [esi + 0x81]
mov byte [esp + 0x38], cl
mov ecx, dword [esp + 0x38]
test al, al
sete al
and ecx, 0xff
and eax, 0xff
add ecx, edx
add eax, ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jle 0x4cf9e1
cmp eax, 3
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
jne 0x4cf9e1
mov ebp, dword [esp + 0x6c]
mov ebx, esi
mov dword [esp + 0x10], ebx
jmp 0x4cf9e9
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
inc ecx
test ebx, ebx
mov dword [esp + 0x28], ecx
je 0x4cf893
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x68]
inc eax
inc esi
mov dword [esp + 0x2c], eax
test ebx, ebx
mov dword [esp + 0x14], esi
je 0x4cf86c
mov eax, dword [esp + 0x30]
inc ecx
dec eax
mov dword [esp + 0x18], ecx
test ebx, ebx
mov dword [esp + 0x30], eax
je 0x4cf84c
mov eax, dword [esp + 0x1c]
pop ebx
cmp eax, 0x80000000
jle 0x4cfabb
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4cfabb
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x78]
mov eax, 0x20
xor edx, edx
mov ecx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], edx
add ecx, 0x34
push eax
lea edx, [esp + 0x58]
push ecx
push edx
mov ecx, ebp
call fcn.00436260
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x48]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x50], edx
mov ecx, edi
mov eax, dword [eax + 8]
mov dword [esp + 0x54], eax
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]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x54
ret 8
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x54
ret 8