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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov dword [esp + 0x1c], edx
mov ebx, ecx
mov eax, dword [0x10305014]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
cmp dword [ebp + 8], 0
jle 0x10164972
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0x10]
mov dword [esp + 4], ecx
neg cl
mov byte [esp + 0x13], cl
mov ecx, eax
neg cl
mov byte [esp + 0x12], cl
mov ecx, 0x20
sub ecx, eax
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0xc], ebx
mov eax, 0
cmp dword [ebp + 0xc], 0
je 0x10164961
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x34]
mov eax, ecx
shr eax, 3
mov dword [esp + 8], edx
mov eax, dword [edx + eax]
bswap eax
mov edx, ecx
and cl, 7
shl eax, cl
mov edi, dword [ebx + 0x3c]
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x19
jg 0x1016490c
mov ebx, dword [esp + 0xc]
mov cl, byte [esp + 0x12]
shr eax, cl
add edx, dword [ebp + 0xc]
cmp edi, edx
cmovb edx, edi
mov dword [ebx + 0x34], edx
jmp 0x10164959
shr eax, 0xf0
add edx, 0x10
mov dword [esp + 0x14], edi
cmp edi, edx
cmovb edx, edi
mov ecx, dword [esp + 4]
shl eax, cl
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x34], edx
mov ebx, edx
shr ebx, 3
mov ecx, dword [esp + 8]
mov edi, dword [ecx + ebx]
bswap edi
mov ecx, edx
and cl, 7
shl edi, cl
mov cl, byte [esp + 0x13]
shr edi, cl
add edx, dword [esp + 4]
mov ecx, dword [esp + 0x14]
cmp ecx, edx
cmovb edx, ecx
mov ebx, dword [esp + 0xc]
mov dword [ebx + 0x34], edx
or eax, edi
mov ecx, dword [esp + 0x18]
shl eax, cl
sar eax, cl
mov edx, dword [esp + 0x1c]
mov dword [edx + esi*4], eax
inc esi
cmp dword [ebp + 8], esi
jne 0x101648c0
mov edi, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x3c]
mov eax, edx
shr eax, 3
mov eax, dword [edi + eax]
bswap eax
mov ecx, edx
and cl, 7
shl eax, cl
shr eax, 0xfc
add edx, 4
cmp esi, edx
cmovb edx, esi
mov dword [ebx + 0x34], edx
lea ecx, [eax + 1]
cmp ecx, 0x10
jne 0x101649c4
mov dword [esp + 4], 0xbebbb1b7
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.10130483
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 8], ecx
mov dword [esp + 4], 0xbebbb1b7
mov ecx, edx
shr ecx, 3
mov dword [esp + 0x18], edi
mov edi, dword [edi + ecx]
bswap edi
mov ecx, edx
and cl, 7
shl edi, cl
sar edi, 0xfb
add edx, 5
cmp esi, edx
cmovb edx, esi
mov dword [ebx + 0x34], edx
test edi, edi
js 0x101649aa
mov dword [esp + 0x14], edi
cmp dword [ebp + 8], 0
mov ecx, ebx
jle 0x10164a3e
not al
mov dword [esp + 4], eax
mov edi, dword [ebp + 8]
mov eax, ecx
mov ecx, edx
shr ecx, 3
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx + ecx]
bswap ebx
mov ecx, edx
and cl, 7
shl ebx, cl
mov ecx, dword [esp + 4]
sar ebx, cl
mov ecx, eax
add edx, dword [esp + 8]
cmp esi, edx
cmovb edx, esi
mov dword [ecx + 0x34], edx
mov dword [esp + edi*4 + 0x1c], ebx
dec edi
jne 0x10164a0c
mov esi, ecx
mov edi, dword [esp + 0x1c]
mov edx, edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.10164c00
add esp, 4
test eax, eax
js 0x10164a91
cmp dword [esi + 0x78], 0
mov ecx, esi
je 0x10164a9a
cmp dword [ecx + 0x10], 0x11
jge 0x10164ab4
mov esi, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x8c]
call dword [section..00cfg]
lea eax, [esp + 0x20]
push esi
push dword [esp + 0x18]
push ebx
push eax
push edi
call ecx
add esp, 0x14
mov dword [esp + 4], 0
jmp 0x101649aa
mov dword [esp + 4], eax
jmp 0x101649aa
cmp dword [ebp + 0xc], 0x10
jg 0x10164ab4
mov eax, ebx
or eax, 1
bsr eax, eax
add eax, dword [ebp + 0xc]
add eax, dword [esp + 8]
cmp eax, 0x20
jle 0x10164a64
mov eax, dword [ecx + 0x40]
mov dword [esp + 8], eax
mov esi, ecx
mov ecx, dword [ecx + 0x90]
call dword [section..00cfg]
lea eax, [esp + 0x20]
push dword [esp + 8]
push dword [esp + 0x18]
push ebx
push eax
push edi
call ecx
add esp, 0x14
mov dword [esp + 4], 0
cmp dword [esi + 0x10], 0x10
jg 0x101649aa
mov esi, dword [esi + 0x40]
mov ecx, dword [ebp + 0xc]
dec ecx
xor eax, eax
inc eax
mov dword [esp + 8], ecx
shl eax, cl
cmp esi, ebx
jle 0x101649aa
xor edx, edx
mov ecx, ebx
mov dword [esp + 0xc], esi
mov esi, dword [edi + ecx*4]
add esi, eax
or edx, esi
mov esi, dword [esp + 0xc]
inc ecx
cmp esi, ecx
jne 0x10164b0f
mov eax, 2
mov ecx, dword [esp + 8]
shl eax, cl
mov dword [esp + 4], 0
cmp edx, eax
jb 0x101649aa
cmp esi, ebx
jle 0x101649aa
lea eax, [esi*4]
lea ecx, [ebx*4]
sub eax, ecx
lea edx, [eax + edi]
add edx, 0xfffffffc
dec esi
test ebx, ebx
mov dword [esp + 8], esi
jle 0x10164b7e
xor edi, edi
xor ebx, ebx
xor ecx, ecx
mov eax, dword [edx + ecx*4]
mov esi, edx
imul dword [esp + ecx*4 + 0x20]
add edi, eax
adc ebx, edx
mov edx, esi
inc ecx
cmp dword [ebp + 8], ecx
jne 0x10164b67
jmp 0x10164b82
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x14]
shrd edi, ebx, cl
sar ebx, cl
test cl, 0x20
cmove ebx, edi
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 8]
sub dword [edi + esi*4], ebx
add edx, 0xfffffffc
mov ebx, dword [ebp + 8]
cmp esi, ebx
mov eax, dword [esp + 0xc]
jg 0x10164b58
mov dword [esp + 4], 0
cmp eax, ebx
jle 0x101649aa
mov eax, ebx
mov dword [esp + 4], 0
mov esi, 0
mov edx, 0
test ebx, ebx
jle 0x10164be7
xor edx, edx
xor ecx, ecx
mov esi, dword [edi + ecx*4]
imul esi, dword [esp + ecx*4 + 0x20]
add edx, esi
inc ecx
cmp ebx, ecx
jne 0x10164bd6
mov esi, ebx
mov ecx, dword [esp + 0x14]
sar edx, cl
add dword [edi + esi*4], edx
inc eax
add edi, 4
cmp eax, dword [esp + 0xc]
jne 0x10164bbc
jmp 0x101649aa