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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x54]
push ebx
push ebp
imul edx, eax, 0x160c
push esi
mov esi, dword [esp + 0x5c]
push edi
mov ecx, dword [esi + 0x4c]
mov ebp, dword [edx + ecx + 0x15d0]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esi + 0xc]
mov ebx, dword [edx + 0x18]
xor edx, edx
div dword [esi + 0x18]
mov dword [esp + 0x10], ebx
imul ecx, edx
mov edi, eax
mov eax, dword [esp + 0x5c]
add ecx, dword [esi + 4]
mov edx, dword [eax]
cmp ecx, edx
jbe 0x4b6026
mov edx, ecx
mov eax, dword [esp + 0x68]
mov dword [eax], edx
xor eax, eax
add ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x5c]
adc eax, eax
neg eax
or eax, ecx
mov edx, dword [edx + 8]
cmp eax, edx
jb 0x4b6044
mov eax, edx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
imul eax, edi
mov edi, dword [esp + 0x5c]
add eax, dword [esi + 8]
mov ecx, dword [edi + 4]
cmp eax, ecx
jbe 0x4b6060
mov ecx, eax
mov edx, dword [esp + 0x70]
mov dword [edx], ecx
xor ecx, ecx
add eax, dword [esi + 0x10]
mov edx, dword [edi + 0xc]
adc ecx, ecx
neg ecx
or ecx, eax
cmp ecx, edx
jb 0x4b607a
mov ecx, edx
mov eax, dword [esp + 0x74]
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x30], ecx
mov dword [eax], 0
mov eax, dword [esp + 0x84]
mov dword [eax], 0
mov eax, dword [esp + 0x78]
mov dword [eax], closesocket
mov eax, dword [esp + 0x7c]
mov dword [eax], closesocket
cmp dword [edi + 0x10], ecx
jbe 0x4b63d3
lea eax, [ebp + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x88]
mov ebp, dword [ebx]
mov esi, dword [eax + ecx*4]
mov eax, ebp
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x68]
push ecx
push edi
mov eax, dword [eax]
cdq
add eax, edi
adc edx, ecx
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.0041b310
mov ebx, dword [ebx + 4]
mov dword [esp + 0x64], eax
mov eax, ebx
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x70]
push ecx
push edi
mov eax, dword [eax]
cdq
add eax, edi
adc edx, ecx
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.0041b310
mov dword [esp + 0x60], eax
mov eax, ebp
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x6c]
push ecx
push edi
mov eax, dword [eax]
cdq
add eax, edi
adc edx, ecx
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.0041b310
mov ebp, eax
mov eax, ebx
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0x74]
push ecx
push edi
mov eax, dword [eax]
cdq
add eax, edi
adc edx, ecx
sub eax, 1
sbb edx, 0
push edx
push eax
call fcn.0041b310
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x84]
mov edx, dword [ecx]
cmp edx, dword [eax]
jbe 0x4b6176
mov dword [eax], edx
mov ebx, dword [ecx]
mov dword [esp + 0x28], 0
test ebx, ebx
je 0x4b63a8
mov eax, dword [esp + 0x64]
cdq
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], edx
cdq
mov dword [esp + 0x3c], eax
mov eax, ebp
mov dword [esp + 0x40], edx
cdq
mov dword [esp + 0x44], eax
mov eax, edi
mov dword [esp + 0x48], edx
cdq
mov dword [esp + 0x4c], eax
lea eax, [ecx + 0x3ac]
mov dword [esp + 0x50], edx
mov dword [esp + 0x2c], eax
mov ebp, dword [eax - 0x84]
dec ebx
mov eax, dword [eax]
mov dword [esi], ebp
mov dword [esp + 0x60], ebx
lea ecx, [ebx + ebp]
mov dword [esp + 0x64], eax
mov dword [esi + 4], eax
cmp ecx, 0x20
jae 0x4b620d
mov eax, dword [esp + 0x10]
mov edi, 1
shl edi, cl
xor edx, edx
mov ecx, dword [eax]
or eax, 0xffffffff
div edi
cmp ecx, eax
ja 0x4b6209
mov edx, dword [esp + 0x78]
imul ecx, edi
mov eax, dword [edx]
cmp eax, ecx
jl 0x4b6207
mov eax, ecx
mov dword [edx], eax
mov eax, dword [esp + 0x64]
lea ecx, [eax + ebx]
cmp ecx, 0x20
jae 0x4b623f
mov eax, dword [esp + 0x10]
mov edi, 1
shl edi, cl
xor edx, edx
mov ecx, dword [eax + 4]
or eax, 0xffffffff
div edi
cmp ecx, eax
ja 0x4b623f
mov edx, dword [esp + 0x7c]
imul ecx, edi
mov eax, dword [edx]
cmp eax, ecx
jl 0x4b623d
mov eax, ecx
mov dword [edx], eax
mov eax, 1
xor edx, edx
mov ecx, ebx
call fcn.0041b420
mov ecx, dword [esp + 0x60]
mov edi, eax
mov eax, dword [esp + 0x34]
mov ebx, edx
mov edx, dword [esp + 0x38]
add eax, edi
adc edx, ebx
sub eax, 1
sbb edx, 0
call fcn.0041b3f0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
add eax, edi
adc edx, ebx
sub eax, 1
sbb edx, 0
call fcn.0041b3f0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
add eax, edi
adc edx, ebx
sub eax, 1
sbb edx, 0
call fcn.0041b3f0
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
add eax, edi
adc edx, ebx
sub eax, 1
sbb edx, 0
call fcn.0041b3f0
mov ebx, dword [esp + 0x64]
xor edx, edx
mov dword [esp + 0x20], eax
mov ecx, ebx
mov eax, dword [esp + 0x24]
sar eax, cl
shl eax, cl
mov dword [esp + 0x54], eax
mov eax, 1
call fcn.0041b420
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x20]
cdq
add eax, ecx
mov ecx, ebx
adc edx, edi
sub eax, 1
sbb edx, 0
call fcn.0041b3f0
mov ecx, dword [esp + 0x64]
mov ebx, eax
mov eax, dword [esp + 0x18]
shl ebx, cl
cmp dword [esp + 0x1c], eax
jne 0x4b631b
xor eax, eax
jmp 0x4b6357
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.0041b420
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x18]
cdq
add eax, ecx
mov ecx, ebp
adc edx, edi
sub eax, 1
sbb edx, 0
call fcn.0041b3f0
mov edx, dword [esp + 0x1c]
mov ecx, ebp
sar edx, cl
shl eax, cl
shl edx, cl
sub eax, edx
sar eax, cl
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x24], edx
jne 0x4b6365
xor ebx, ebx
jmp 0x4b636b
sub ebx, dword [esp + 0x54]
sar ebx, cl
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
add esi, 0x10
imul ebx, eax
mov eax, dword [esp + 0x80]
cmp ebx, dword [eax]
jbe 0x4b6384
mov dword [eax], ebx
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc edi
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x60]
add eax, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
cmp edi, dword [ecx]
jb 0x4b61c2
mov eax, dword [esp + 0x5c]
add ecx, 0x438
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
add ebx, 0x34
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x30], ecx
cmp ecx, dword [eax + 0x10]
jb 0x4b60c4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret