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

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x40]
push ebx
push ebp
push esi
mov ecx, dword [ecx + 0x70]
mov eax, ecx
cdq
idiv dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov ebp, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push edi
mov dword [esp + 0x24], ebp
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x58]
imul eax, dword [esp + 0x5c]
lea ebx, [edx + 0x18]
mov ecx, esi
mov dword [esp + 0x5c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
lea eax, [esi + eax*4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
imul eax, dword [esp + 0x60]
cmp dword [edx + 0x38], 0
lea esi, [ecx + eax*4]
mov eax, dword [edx + 0x78]
mov dword [esp + 0x48], esi
lea ecx, [eax + 0x118]
mov dword [esp + 0x44], ecx
mov ecx, 0x1000000
cmovne ecx, ebp
test eax, eax
mov eax, dword [edx + 0x94]
mov dword [esp + 0x34], ecx
lea ecx, [edx + 0x7c]
cmovle ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], eax
cmp edi, esi
jae 0x101bf050
mov eax, dword [edx + 0x98]
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x101bf010
imul eax, eax, 0x224
add eax, dword [edx + 0xa8]
mov dword [esp + 0x5c], eax
jmp 0x101bf058
mov ecx, eax
mov edx, ebp
mov eax, dword [esp + 0x1c]
sar edx, cl
mov ecx, dword [esp + 0x50]
imul edx, dword [ecx + 0x9c]
mov ecx, dword [esp + 0x5c]
sar eax, cl
add edx, eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x50]
imul eax, eax, 0x224
add eax, dword [edx + 0xa8]
mov dword [esp + 0x5c], eax
jmp 0x101bf058
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x64]
cmp edi, esi
mov esi, edi
jae 0x101bf885
cmp ebp, dword [esp + 0x34]
jl 0x101bf0ab
movups xmm0, xmmword [ebx]
mov eax, edi
sub eax, dword [esp + 0x54]
movups xmmword [edx + 0x40], xmm0
sar eax, 2
cmp dword [edx + 0x78], 0
movups xmm0, xmmword [ebx + 0x10]
mov dword [edx + 0x60], eax
movups xmmword [edx + 0x50], xmm0
jle 0x101bf0a4
lea eax, [edx + 0x88]
push eax
lea eax, [edx + 0x7c]
push eax
call fcn.101de2a0
mov edx, dword [esp + 0x58]
add esp, 8
lea eax, [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
test dword [esp + 0x3c], eax
jne 0x101bf111
mov ecx, dword [edx + 0x98]
mov dword [esp + 0x5c], ecx
test ecx, ecx
jne 0x101bf0d7
xor eax, eax
imul ecx, eax, 0x224
add ecx, dword [edx + 0xa8]
mov dword [esp + 0x5c], ecx
jmp 0x101bf115
mov edx, ebp
sar edx, cl
mov ecx, dword [esp + 0x50]
imul edx, dword [ecx + 0x9c]
mov ecx, dword [esp + 0x5c]
sar eax, cl
add edx, eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x50]
imul ecx, eax, 0x224
add ecx, dword [edx + 0xa8]
mov dword [esp + 0x5c], ecx
jmp 0x101bf115
mov ecx, dword [esp + 0x5c]
cmp dword [ecx + 0x1c], 0
je 0x101bf125
mov eax, dword [ecx + 0x18]
mov dword [edi], eax
jmp 0x101bf1a7
cmp dword [ebx + 0x14], 0x20
jl 0x101bf138
push ebx
call fcn.101de150
mov ecx, dword [esp + 0x60]
add esp, 4
cmp dword [ecx + 0x20], 0
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x14]
je 0x101bf22c
and ecx, 0x3f
call fcn.1026a600
mov edx, dword [esp + 0x5c]
and eax, 0x3f
mov ecx, dword [edx + eax*8 + 0x24]
mov esi, dword [edx + eax*8 + 0x28]
cmp ecx, 0x100
jge 0x101bf172
add dword [ebx + 0x14], ecx
mov dword [edi], esi
xor esi, esi
jmp 0x101bf17f
mov eax, dword [ebx + 0x14]
add eax, 0xffffff00
add eax, ecx
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x18], 0
jne 0x101bf87d
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x101bf19b
cmp dword [ebx + 0x14], 0x40
jg 0x101bf87d
test esi, esi
jne 0x101bf285
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
add edi, 4
inc edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x58]
jl 0x101bf86d
mov ecx, dword [esp + 0x64]
inc ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], ebp
test ecx, ecx
je 0x101bf1f6
cmp ebp, dword [esp + 0x60]
jg 0x101bf1f6
mov eax, ebp
and eax, reloc.WS2_32.dll_ntohs
jns 0x101bf1ea
dec eax
or eax, 0xfffffff0
inc eax
jne 0x101bf1f6
push ebp
push dword [esp + 0x54]
call ecx
add esp, 8
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x101bf86d
mov eax, edi
xor edx, edx
sub eax, esi
add eax, 3
shr eax, 2
cmp esi, edi
cmova eax, edx
mov dword [esp + 0x38], eax
test eax, eax
je 0x101bf86d
mov ebp, dword [esp + 0x10]
mov edi, eax
mov ebx, edx
jmp 0x101bf834
and ecx, 0x3f
call fcn.1026a600
movzx ecx, al
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
lea esi, [eax + ecx*4]
movzx eax, byte [esi]
sub eax, 8
mov dword [esp + 0x38], eax
test eax, eax
jle 0x101bf27b
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx]
add ecx, 8
mov edx, dword [ebx + 4]
mov dword [ebx + 0x14], ecx
and ecx, 0x3f
call fcn.1026a600
mov ecx, dword [esp + 0x38]
mov edx, 1
shl edx, cl
movzx ecx, word [esi + 2]
dec edx
and eax, edx
add eax, ecx
lea esi, [esi + eax*4]
movzx eax, byte [esi]
add dword [ebx + 0x14], eax
movzx esi, word [esi + 2]
cmp dword [ebx + 0x18], 0
jne 0x101bf87d
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x101bf2a1
cmp dword [ebx + 0x14], 0x40
jg 0x101bf87d
cmp esi, 0x100
jge 0x101bf44b
mov ecx, dword [esp + 0x5c]
cmp dword [ecx + 0x14], 0
je 0x101bf2c4
shl esi, 8
or esi, dword [ecx + 0x18]
mov dword [edi], esi
jmp 0x101bf1a3
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx]
and ecx, 0x3f
mov edx, dword [ebx + 4]
call fcn.1026a600
movzx ecx, al
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 4]
lea edx, [eax + ecx*4]
movzx eax, byte [edx]
sub eax, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x101bf322
add dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx]
and ecx, 0x3f
mov edx, dword [ebx + 4]
call fcn.1026a600
mov ecx, dword [esp + 0x38]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x30]
movzx ecx, word [edx + 2]
add eax, ecx
lea edx, [edx + eax*4]
movzx eax, byte [edx]
add dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0x20
movzx eax, word [edx + 2]
mov dword [esp + 0x2c], eax
jl 0x101bf33f
push ebx
call fcn.101de150
add esp, 4
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx]
and ecx, 0x3f
mov edx, dword [ebx + 4]
call fcn.1026a600
movzx ecx, al
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 8]
lea edx, [eax + ecx*4]
movzx eax, byte [edx]
sub eax, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x101bf39d
add dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx]
and ecx, 0x3f
mov edx, dword [ebx + 4]
call fcn.1026a600
mov ecx, dword [esp + 0x38]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x30]
movzx ecx, word [edx + 2]
add eax, ecx
lea edx, [edx + eax*4]
movzx eax, byte [edx]
add dword [ebx + 0x14], eax
movzx ecx, word [edx + 2]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x14]
and ecx, 0x3f
call fcn.1026a600
movzx ecx, al
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0xc]
lea edx, [eax + ecx*4]
movzx eax, byte [edx]
sub eax, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x101bf40b
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx]
add ecx, 8
mov edx, dword [ebx + 4]
mov dword [ebx + 0x14], ecx
and ecx, 0x3f
call fcn.1026a600
mov ecx, dword [esp + 0x38]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x30]
movzx ecx, word [edx + 2]
add eax, ecx
lea edx, [edx + eax*4]
movzx eax, byte [edx]
add dword [ebx + 0x14], eax
cmp dword [ebx + 0x18], 0
movzx ecx, word [edx + 2]
jne 0x101bf87d
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x101bf431
cmp dword [ebx + 0x14], 0x40
jg 0x101bf87d
shl ecx, 8
or ecx, dword [esp + 0x2c]
shl ecx, 8
or ecx, esi
shl ecx, 8
or ecx, dword [esp + 0x20]
mov dword [edi], ecx
jmp 0x101bf1a3
cmp esi, 0x118
jge 0x101bf7a0
lea edx, [esi - 0x100]
mov dword [esp + 0x38], edx
cmp edx, 4
jl 0x101bf485
lea esi, [edx - 2]
sar esi, 1
push esi
push ebx
call fcn.101de0f0
mov edx, dword [esp + 0x40]
mov ecx, esi
and edx, 1
add esp, 8
add edx, 2
shl edx, cl
add edx, eax
mov ecx, dword [ebx + 0x14]
lea eax, [edx + 1]
mov edx, dword [ebx + 4]
and ecx, 0x3f
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
call fcn.1026a600
movzx ecx, al
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x10]
lea esi, [eax + ecx*4]
movzx eax, byte [esi]
sub eax, 8
mov dword [esp + 0x38], eax
test eax, eax
jle 0x101bf4e2
add dword [ebx + 0x14], 8
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx]
and ecx, 0x3f
mov edx, dword [ebx + 4]
call fcn.1026a600
mov ecx, dword [esp + 0x38]
mov edx, 1
shl edx, cl
movzx ecx, word [esi + 2]
dec edx
and eax, edx
add eax, ecx
lea esi, [esi + eax*4]
movzx eax, byte [esi]
add dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0x20
movzx edx, word [esi + 2]
mov dword [esp + 0x30], edx
jl 0x101bf503
push ebx
call fcn.101de150
mov edx, dword [esp + 0x34]
add esp, 4
cmp edx, 4
jb 0x101bf527
lea esi, [edx - 2]
sar esi, 1
push esi
push ebx
call fcn.101de0f0
mov edx, dword [esp + 0x38]
mov ecx, esi
and edx, 1
add esp, 8
add edx, 2
shl edx, cl
add edx, eax
inc edx
cmp edx, 0x78
jle 0x101bf532
lea esi, [edx - 0x78]
jmp 0x101bf555
movzx eax, byte [edx + 0x102eeaaf]
mov esi, 1
mov ecx, eax
and eax, 0xf
shr ecx, 4
imul ecx, dword [esp + 0x58]
sub ecx, eax
add ecx, 8
cmp ecx, esi
cmovge esi, ecx
cmp dword [ebx + 0x18], 0
jne 0x101bf87d
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x101bf571
cmp dword [ebx + 0x14], 0x40
jg 0x101bf87d
mov ecx, dword [esp + 0x14]
mov eax, ecx
sub eax, dword [esp + 0x54]
sar eax, 2
cmp eax, esi
jl 0x101bf904
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp eax, edi
jl 0x101bf904
lea eax, [esi*4]
mov edx, ecx
sub edx, eax
cmp esi, 2
jg 0x101bf64c
cmp edi, 4
jl 0x101bf64c
test cl, 3
jne 0x101bf64c
mov edi, dword [edx]
cmp esi, 1
jne 0x101bf5ce
xor esi, esi
or esi, edi
jmp 0x101bf5d1
mov esi, dword [edx + 4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, ecx
mov dword [esp + 0x30], eax
test cl, 4
je 0x101bf605
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
mov eax, esi
xor esi, esi
add ecx, 4
or esi, edi
mov dword [esp + 0x30], ecx
mov edi, eax
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x2c], eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
sar ecx, 1
mov dword [esp + 0x38], 0
test ecx, ecx
jle 0x101bf631
mov dword [esp + 0x38], ecx
lea ecx, [ecx*8 - 8]
mov dword [eax], edi
lea edi, [eax + 8]
mov dword [eax + 4], esi
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
test byte [esp + 0x2c], 1
mov edi, dword [esp + 0x14]
je 0x101bf66a
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov eax, dword [edx + esi*8]
mov dword [ecx + esi*8], eax
jmp 0x101bf66a
cmp esi, edi
jl 0x101bf6e2
lea eax, [edi*4]
push eax
push edx
push ecx
call fcn.1026e3e0
add esp, 0xc
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
add esi, eax
mov dword [esp + 0x1c], esi
lea edi, [edi + eax*4]
mov dword [esp + 0x14], edi
cmp esi, ecx
jl 0x101bf6cc
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x64]
nop
sub esi, ecx
inc ebp
test edx, edx
je 0x101bf6bc
cmp ebp, dword [esp + 0x60]
jg 0x101bf6bc
mov eax, ebp
and eax, reloc.WS2_32.dll_ntohs
jns 0x101bf6ab
dec eax
or eax, 0xfffffff0
inc eax
jne 0x101bf6bc
push ebp
push ebx
call edx
mov ecx, dword [esp + 0x60]
add esp, 8
mov edx, dword [esp + 0x64]
cmp esi, ecx
jge 0x101bf690
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ebp
test dword [esp + 0x3c], esi
je 0x101bf739
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x98]
test ecx, ecx
jne 0x101bf707
jmp 0x101bf729
test edi, edi
jle 0x101bf666
mov edi, dword [esp + 0x14]
sub edx, edi
mov esi, dword [esp + 0x20]
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub esi, 1
jne 0x101bf6f4
jmp 0x101bf66a
mov edx, ebp
sar edx, cl
imul edx, dword [eax + 0x9c]
mov eax, esi
sar eax, cl
add edx, eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0xa0]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x50]
imul ecx, ecx, 0x224
add ecx, dword [eax + 0xa8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test ecx, ecx
je 0x101bf86d
mov eax, edi
xor edx, edx
sub eax, esi
add eax, 3
shr eax, 2
cmp esi, edi
cmova eax, edx
mov dword [esp + 0x38], eax
test eax, eax
je 0x101bf86d
mov edi, eax
mov ebx, edx
mov ebp, esi
jmp 0x101bf774
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp]
mov edx, 0x1e35a7bd
mov ecx, dword [ecx + 4]
mov eax, esi
mul edx
xor edx, edx
call fcn.1026a600
mov ecx, dword [esp + 0x18]
inc ebx
add ebp, 4
mov ecx, dword [ecx]
mov dword [ecx + eax*4], esi
cmp ebx, edi
jb 0x101bf770
jmp 0x101bf85b
cmp esi, dword [esp + 0x44]
jge 0x101bf904
lea eax, [esi - 0x118]
xor ecx, ecx
mov esi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, edi
sub eax, esi
add eax, 3
shr eax, 2
cmp esi, edi
cmova eax, ecx
mov dword [esp + 0x38], eax
test eax, eax
je 0x101bf815
mov edi, eax
mov ebx, esi
mov ebp, ecx
mov esi, dword [ebx]
mov ecx, 0x1e35a7bd
mov eax, esi
mul ecx
mov ecx, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [ecx + 4]
call fcn.1026a600
mov ecx, dword [esp + 0x18]
inc ebp
add ebx, 4
mov ecx, dword [ecx]
mov dword [ecx + eax*4], esi
cmp ebp, edi
jb 0x101bf7d7
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
mov dword [edi], eax
jmp 0x101bf1a7
mov ecx, dword [esp + 0x18]
mov esi, dword [ebp]
mov edx, 0x1e35a7bd
mov ecx, dword [ecx + 4]
mov eax, esi
mul edx
xor edx, edx
call fcn.1026a600
mov ecx, dword [esp + 0x18]
inc ebx
add ebp, 4
mov ecx, dword [ecx]
mov dword [ecx + eax*4], esi
cmp ebx, edi
jb 0x101bf830
mov edi, dword [esp + 0x14]
mov esi, ebp
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
cmp edi, dword [esp + 0x48]
jb 0x101bf066
jmp 0x101bf881
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x64]
cmp dword [ebx + 0x18], 0
jne 0x101bf89d
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x101bf899
cmp dword [ebx + 0x14], 0x40
jg 0x101bf89d
xor eax, eax
jmp 0x101bf8a2
mov eax, 1
mov dword [ebx + 0x18], eax
cmp dword [edx + 0x38], 0
je 0x101bf8cb
test eax, eax
je 0x101bf8cf
cmp edi, dword [esp + 0x40]
jae 0x101bf8cb
push edx
call fcn.101c0a80
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
test eax, eax
jne 0x101bf908
test ecx, ecx
je 0x101bf8e7
cmp ebp, dword [esp + 0x60]
cmovg ebp, dword [esp + 0x60]
push ebp
push edx
call ecx
mov edx, dword [esp + 0x58]
add esp, 8
sub edi, dword [esp + 0x54]
mov eax, 1
sar edi, 2
mov dword [edx + 0x70], edi
pop edi
pop esi
pop ebp
mov dword [edx], 0
pop ebx
add esp, 0x3c
ret
mov edx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword [edx], 3
xor eax, eax
pop ebx
add esp, 0x3c
ret