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

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
mov ecx, dword [ebx + 0x70]
mov eax, ecx
cdq
idiv dword [esp + 0x5c]
mov esi, eax
mov eax, ecx
cdq
idiv dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x18], esi
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x5c]
imul eax, dword [esp + 0x60]
mov ecx, edx
mov dword [esp + 0x60], 0
mov ebp, edi
mov dword [esp + 0x20], edi
lea eax, [edx + eax*4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x5c]
imul eax, dword [esp + 0x64]
cmp dword [ebx + 0x38], 0
lea edx, [ecx + eax*4]
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x4c], edx
lea ecx, [eax + 0x118]
mov dword [esp + 0x48], ecx
mov ecx, 0x1000000
cmovne ecx, esi
test eax, eax
mov eax, dword [ebx + 0x94]
mov dword [esp + 0x30], ecx
lea ecx, [ebx + 0x7c]
cmovle ecx, dword [esp + 0x60]
cmp edi, edx
mov dword [esp + 0x1c], ecx
lea edx, [ebx + 0x18]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x40], eax
jae 0x101c4d77
lea ecx, [ebx + 0x98]
mov dword [esp + 0x60], ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x101c4509
xor eax, eax
jmp 0x101c4525
mov eax, dword [esp + 0x14]
mov edx, esi
sar edx, cl
imul edx, dword [ebx + 0x9c]
sar eax, cl
add edx, eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + edx*4]
imul edx, eax, 0x224
add edx, dword [ebx + 0xa8]
mov dword [esp + 0x10], edx
cmp esi, dword [esp + 0x30]
jl 0x101c457b
movups xmm0, xmmword [ebx + 0x18]
mov eax, edi
sub eax, dword [esp + 0x58]
movups xmmword [ebx + 0x40], xmm0
sar eax, 2
cmp dword [ebx + 0x78], 0
movups xmm0, xmmword [ebx + 0x28]
mov dword [ebx + 0x60], eax
movups xmmword [ebx + 0x50], xmm0
jle 0x101c4574
lea eax, [ebx + 0x88]
push eax
lea eax, [ebx + 0x7c]
push eax
call fcn.101e4df0
mov edx, dword [esp + 0x18]
add esp, 8
lea eax, [esi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
test dword [esp + 0x40], eax
jne 0x101c45bb
mov ecx, dword [ecx]
test ecx, ecx
jne 0x101c4593
xor eax, eax
jmp 0x101c45ab
mov edx, esi
sar eax, cl
sar edx, cl
imul edx, dword [ebx + 0x9c]
add edx, eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + edx*4]
imul edx, eax, 0x224
add edx, dword [ebx + 0xa8]
mov dword [esp + 0x10], edx
cmp dword [edx + 0x1c], 0
je 0x101c45c9
mov eax, dword [edx + 0x18]
jmp 0x101c4cd7
cmp dword [ebx + 0x2c], 0x20
jl 0x101c45db
lea eax, [ebx + 0x18]
push eax
call fcn.101e4c80
add esp, 4
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov edx, dword [ebx + 0x1c]
and ecx, 0x3f
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x20], 0
je 0x101c4664
and eax, 0x3f
mov ecx, dword [edx + eax*8 + 0x24]
mov edx, dword [edx + eax*8 + 0x28]
mov eax, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
cmp ecx, 0x100
jge 0x101c462e
mov dword [ebx + 0x2c], eax
mov dword [edi], edx
xor edx, edx
mov dword [esp + 0x2c], edx
jmp 0x101c4636
add eax, 0xffffff00
mov dword [ebx + 0x2c], eax
cmp dword [ebx + 0x30], 0
jne 0x101c4d70
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x101c4652
cmp dword [ebx + 0x2c], 0x40
jg 0x101c4d70
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], eax
test edx, edx
je 0x101c4cd9
jmp 0x101c46d2
movzx ecx, al
mov eax, dword [edx]
lea edx, [eax + ecx*4]
mov cl, byte [edx]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x101c46bc
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x24], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
mov cl, byte [edx + eax*4]
lea edx, [edx + eax*4]
movzx eax, cl
add eax, dword [esp + 0x24]
mov dword [ebx + 0x2c], eax
movzx edx, word [edx + 2]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], edx
cmp dword [ebx + 0x30], 0
mov ecx, eax
mov dword [esp + 0x28], ecx
jne 0x101c4d70
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x101c46f4
cmp dword [ebx + 0x2c], 0x40
jg 0x101c4d70
cmp edx, 0x100
jge 0x101c48fb
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x14], 0
je 0x101c471b
shl edx, 8
or edx, dword [eax + 0x18]
mov dword [edi], edx
mov dword [esp + 0x60], ecx
jmp 0x101c4cd9
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov edx, dword [ebx + 0x1c]
and ecx, 0x3f
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
movzx ecx, al
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
lea edx, [eax + ecx*4]
mov cl, byte [edx]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x101c478f
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
mov cl, byte [edx + eax*4]
lea edx, [edx + eax*4]
movzx eax, cl
add eax, dword [esp + 0x60]
mov dword [ebx + 0x2c], eax
movzx ecx, word [edx + 2]
mov dword [esp + 0x24], ecx
cmp eax, 0x20
jl 0x101c47b2
lea eax, [ebx + 0x18]
push eax
call fcn.101e4c80
add esp, 4
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov edx, dword [ebx + 0x1c]
and ecx, 0x3f
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
movzx ecx, al
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
lea edx, [eax + ecx*4]
mov cl, byte [edx]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x101c4826
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
mov cl, byte [edx + eax*4]
lea edx, [edx + eax*4]
movzx eax, cl
add eax, dword [esp + 0x60]
mov dword [ebx + 0x2c], eax
movzx ecx, word [edx + 2]
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, eax
mov dword [esp + 0x60], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
movzx ecx, al
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
lea edx, [eax + ecx*4]
mov al, byte [edx]
movzx ecx, al
sub ecx, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
test ecx, ecx
jle 0x101c48a8
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
dec edx
and eax, edx
mov edx, dword [esp + 0x34]
movzx ecx, word [edx + 2]
add eax, ecx
lea edx, [edx + eax*4]
mov al, byte [edx]
movzx eax, al
add eax, dword [esp + 0x60]
cmp dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], eax
movzx ecx, word [edx + 2]
mov dword [esp + 0x60], eax
jne 0x101c4d70
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x101c48d7
cmp dword [esp + 0x60], 0x40
jg 0x101c4d70
mov eax, dword [esp + 0x28]
shl ecx, 8
or ecx, dword [esp + 0x24]
shl ecx, 8
or ecx, dword [esp + 0x2c]
shl ecx, 8
or ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov dword [esp + 0x60], eax
jmp 0x101c4cd9
cmp edx, 0x118
jge 0x101c4c77
add edx, 0xffffff00
mov dword [esp + 0x2c], edx
cmp edx, 4
jl 0x101c493c
lea esi, [edx - 2]
sar esi, 1
lea eax, [ebx + 0x18]
push esi
push eax
call fcn.101e4c20
mov edx, dword [esp + 0x34]
mov ecx, esi
and edx, 1
add esp, 8
add edx, 2
shl edx, cl
add edx, eax
mov dword [esp + 0x2c], edx
lea eax, [edx + 1]
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x2c]
mov ecx, eax
mov dword [esp + 0x60], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
movzx ecx, al
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
lea esi, [eax + ecx*4]
mov cl, byte [esi]
movzx eax, cl
sub eax, 8
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x101c49af
mov eax, dword [esp + 0x60]
mov edx, dword [ebx + 0x1c]
add eax, 8
mov ecx, eax
mov dword [esp + 0x60], eax
mov dword [ebx + 0x2c], eax
and ecx, 0x3f
mov eax, dword [ebx + 0x18]
call fcn.1026afa0
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
movzx ecx, word [esi + 2]
dec edx
and eax, edx
add eax, ecx
mov cl, byte [esi + eax*4]
lea esi, [esi + eax*4]
movzx eax, cl
add eax, dword [esp + 0x60]
mov dword [ebx + 0x2c], eax
movzx edx, word [esi + 2]
mov dword [esp + 0x60], edx
cmp eax, 0x20
jl 0x101c49d6
lea eax, [ebx + 0x18]
push eax
call fcn.101e4c80
mov edx, dword [esp + 0x64]
add esp, 4
cmp edx, 4
jb 0x101c49fd
lea esi, [edx - 2]
sar esi, 1
lea eax, [ebx + 0x18]
push esi
push eax
call fcn.101e4c20
mov edx, dword [esp + 0x68]
mov ecx, esi
and edx, 1
add esp, 8
add edx, 2
shl edx, cl
add edx, eax
inc edx
cmp edx, 0x78
jle 0x101c4a08
lea ecx, [edx - 0x78]
jmp 0x101c4a31
movzx eax, byte [edx + 0x102ec71f]
mov ecx, eax
and eax, 0xf
shr ecx, 4
imul ecx, dword [esp + 0x5c]
sub ecx, eax
mov eax, 1
add ecx, 8
cmp ecx, eax
cmovge eax, ecx
mov dword [esp + 0x60], eax
mov ecx, eax
cmp dword [ebx + 0x30], 0
jne 0x101c4d6c
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x101c4a4d
cmp dword [ebx + 0x2c], 0x40
jg 0x101c4d6c
mov edx, dword [esp + 0x20]
mov eax, edx
sub eax, dword [esp + 0x58]
sar eax, 2
cmp eax, ecx
jl 0x101c4e1d
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x24]
sub eax, edx
sar eax, 2
cmp eax, edi
jl 0x101c4e1d
lea eax, [ecx*4]
mov esi, edx
sub esi, eax
mov dword [esp + 0x34], esi
cmp ecx, 2
jg 0x101c4b41
cmp edi, 4
jl 0x101c4b41
test dl, 3
jne 0x101c4b41
cmp ecx, 1
jne 0x101c4ab4
mov eax, dword [esi]
xor edi, edi
mov ecx, eax
mov dword [esp + 0x20], eax
or edi, ecx
jmp 0x101c4abd
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], edx
test dl, 4
je 0x101c4af2
mov eax, dword [esp + 0x20]
add esi, 4
mov dword [edx], eax
lea eax, [edx + 4]
mov dword [esp + 0x60], eax
mov eax, edi
xor edi, edi
mov dword [esp + 0x34], esi
or edi, ecx
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
sar eax, 1
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x101c4b22
mov esi, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
mov dword [esi], ecx
lea ecx, [eax*8 - 8]
mov dword [esi + 4], edi
mov edi, esi
shr ecx, 2
add edi, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x34]
test byte [esp + 0x3c], 1
je 0x101c4b37
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
mov eax, dword [esi + edi*8]
mov dword [ecx + edi*8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
jmp 0x101c4b8e
cmp ecx, edi
jl 0x101c4b65
lea eax, [edi*4]
push eax
push esi
push edx
call fcn.1026c360
mov eax, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], eax
jmp 0x101c4b92
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
test edi, edi
jle 0x101c4b92
mov ecx, edx
mov dword [esp + 0x60], eax
sub esi, edx
nop dword [eax]
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
sub edi, 1
jne 0x101c4b80
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
lea edx, [edx + edi*4]
mov edi, dword [esp + 0x14]
add edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
cmp edi, ecx
jl 0x101c4bef
mov edx, dword [esp + 0x68]
sub edi, ecx
inc esi
test edx, edx
je 0x101c4be3
cmp esi, dword [esp + 0x64]
jg 0x101c4be3
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x101c4bd2
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x101c4be3
push esi
push ebx
call edx
mov ecx, dword [esp + 0x64]
add esp, 8
mov edx, dword [esp + 0x68]
cmp edi, ecx
jge 0x101c4bb5
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
test dword [esp + 0x40], edi
je 0x101c4c2d
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x101c4c03
xor eax, eax
jmp 0x101c4c1d
mov edx, esi
mov eax, edi
sar edx, cl
imul edx, dword [ebx + 0x9c]
sar eax, cl
add edx, eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + edx*4]
imul eax, eax, 0x224
add eax, dword [ebx + 0xa8]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x1c], 0
mov edi, dword [esp + 0x20]
je 0x101c4d58
cmp ebp, edi
jae 0x101c4d58
mov ebx, dword [esp + 0x1c]
nop dword [eax + eax]
mov esi, dword [ebp]
mov ecx, 0x1e35a7bd
mov eax, esi
mul ecx
mov ecx, dword [ebx + 4]
xor edx, edx
call fcn.1026afa0
mov ecx, dword [ebx]
add ebp, 4
mov dword [ecx + eax*4], esi
cmp ebp, edi
jb 0x101c4c50
jmp 0x101c4d54
cmp edx, dword [esp + 0x48]
jge 0x101c4e1d
mov dword [esp + 0x60], ecx
lea eax, [edx - 0x118]
mov dword [esp + 0x3c], eax
cmp ebp, edi
jae 0x101c4cca
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x60], ecx
nop dword [eax + eax]
mov esi, dword [ebp]
mov ecx, 0x1e35a7bd
mov eax, esi
mul ecx
mov ecx, dword [ebx + 4]
xor edx, edx
call fcn.1026afa0
mov ecx, dword [ebx]
add ebp, 4
mov dword [ecx + eax*4], esi
cmp ebp, edi
jb 0x101c4ca0
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
mov dword [edi], eax
mov edx, dword [esp + 0x14]
add edi, 4
inc edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edx
cmp edx, dword [esp + 0x5c]
jl 0x101c4d58
mov ecx, dword [esp + 0x68]
inc esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], esi
test ecx, ecx
je 0x101c4d23
cmp esi, dword [esp + 0x64]
jg 0x101c4d23
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x101c4d1a
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x101c4d23
push esi
push ebx
call ecx
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x101c4d58
cmp ebp, edi
jae 0x101c4d58
mov ebx, dword [esp + 0x1c]
mov esi, dword [ebp]
mov ecx, 0x1e35a7bd
mov eax, esi
mul ecx
mov ecx, dword [ebx + 4]
xor edx, edx
call fcn.1026afa0
mov ecx, dword [ebx]
add ebp, 4
mov dword [ecx + eax*4], esi
cmp ebp, edi
jb 0x101c4d32
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp edi, dword [esp + 0x4c]
jb 0x101c4535
jmp 0x101c4d70
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
lea edx, [ebx + 0x18]
cmp dword [ebx + 0x30], 0
jne 0x101c4d8f
mov eax, dword [ebx + 0x28]
cmp eax, dword [ebx + 0x24]
jne 0x101c4d8b
cmp dword [ebx + 0x2c], 0x40
jg 0x101c4d8f
xor eax, eax
jmp 0x101c4d94
mov eax, 1
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x38], 0
je 0x101c4de8
test eax, eax
je 0x101c4dec
cmp edi, dword [esp + 0x44]
jae 0x101c4e1d
cmp dword [ebx + 0x78], 0
movups xmm0, xmmword [ebx + 0x40]
mov eax, dword [ebx + 0x60]
mov dword [ebx], 5
movups xmmword [edx], xmm0
mov dword [ebx + 0x70], eax
movups xmm0, xmmword [ebx + 0x50]
movups xmmword [edx + 0x10], xmm0
jle 0x101c4e10
lea eax, [ebx + 0x7c]
add ebx, 0x88
push eax
push ebx
call fcn.101e4df0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test eax, eax
jne 0x101c4e1d
test ecx, ecx
je 0x101c4e00
cmp esi, dword [esp + 0x64]
cmovg esi, dword [esp + 0x64]
push esi
push ebx
call ecx
add esp, 8
sub edi, dword [esp + 0x58]
sar edi, 2
mov dword [ebx], 0
mov dword [ebx + 0x70], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
mov dword [ebx], 3
xor eax, eax
pop ebx
add esp, 0x40
ret