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

Disassembly:
push 0xffffffffffffffff
push 0x496ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cb08c]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x90]
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.00431510
xor ebx, ebx
push eax
mov dword [esp + 0x8c], ebx
call fcn.0041d9c0
mov edx, dword [eax]
add esp, 4
mov ecx, eax
mov eax, dword [edx + 0x18]
push 0x20
call eax
mov dword [esp + 0x88], 0xffffffff
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov byte [esp + 0x90], al
je 0x431881
push ebx
lea ecx, [esp + 0x1c]
call fcn.00458061
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x43185f
cmp eax, 0xffffffff
jae 0x43185f
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x18]
and esi, edi
call fcn.00458082
cmp esi, ebx
je 0x431881
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x4318a6
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jne 0x431935
mov cl, byte [esp + 0x90]
mov eax, 0xf
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x70], bl
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 6
mov byte [esp + 0x60], cl
mov dword [esp + 0x64], 0x201
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x78], closesocket
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x90], 1
call fcn.00433bd0
mov dword [esp + 0x88], esi
lea esi, [esp + 0x1c]
call fcn.00430600
jmp 0x431a09
mov esi, dword [esp + 0x94]
cmp esi, eax
jbe 0x43195f
mov ecx, dword [esp + 0x90]
sub esp, 0x64
mov eax, esp
mov dword [esp + 0x7c], esp
push ecx
call fcn.00430ba0
mov ecx, esi
mov edx, ebp
call fcn.00430a90
lea esi, [ebp + 0x10]
call fcn.004337b0
xor edi, edi
cmp dword [esp + 0x94], ebx
jbe 0x431a09
mov dword [esp + 0x14], ebx
lea ebx, [ebx]
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x4319a1
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4319a6
call fcn.00471ad5
mov esi, dword [ebp + 4]
add esi, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 4]
mov dword [esi], 0xffffffff
mov dword [esi + 0x5c], closesocket
mov dword [esi + 0x60], ebx
call fcn.00402ea0
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x20]
call fcn.00402ea0
mov dl, byte [esp + 0x90]
add dword [esp + 0x14], 0x64
add edi, 1
cmp edi, dword [esp + 0x94]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 6
mov byte [esi + 0x44], dl
mov dword [esi + 0x48], 0x201
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
jb 0x431980
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x34]
call fcn.00402ea0
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 8