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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xcb8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0xcb4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x74], eax
push esi
movzx esi, byte [ebp + 0x20]
push edi
mov edi, dword [ebp + 8]
mov ecx, esi
mov dword [esp + 0x2c], 0
lea eax, [esi + esi]
mov dword [esp + 0x20], edi
mov dword [esp + 0x64], eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x10d4]
movzx edi, byte [edx + 0x10a22b68]
movzx edx, byte [edx + 0x10a22b80]
mov dword [esp + 0x28], eax
mov eax, ecx
sar eax, 5
test ecx, ecx
mov ecx, dword [esp + 0x2c]
cmovs ecx, eax
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x20]
add ecx, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 1
mov ecx, dword [eax + 0x10dc]
mov eax, ecx
sar eax, 5
test ecx, ecx
mov ecx, dword [esp + 0x38]
cmovs ecx, eax
dec esi
add ecx, edx
lea eax, [edi*4]
mov dword [esp + 0x38], ecx
xor ecx, ecx
shl edx, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
cmp esi, 3
ja case.default.0x10492e27
jmp dword [esi*4 + 0x104932cc]
mov ecx, 0x10a22b0c
mov dword [esp + 0x24], 0x10
jmp 0x10492e59
mov ecx, 0x10a226e0
mov dword [esp + 0x24], 8
jmp 0x10492e59
mov ecx, 0x10a225d0
mov dword [esp + 0x24], 4
mov dword [esp + 0x34], ecx
push dword [ebp + 0x10]
mov esi, dword [esp + 0x34]
push dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi], 0
push dword [ecx + 0x28]
push dword [ecx + 0x18]
push eax
push dword [ecx]
push eax
push edx
call dword [0x10b48a30]
xor edx, edx
add esp, 0x20
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x38], edx
jle 0x10493255
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
imul eax, edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x74], eax
lea eax, [edi*4]
mov edi, eax
imul edi, dword [esp + 0x28]
shl edi, 3
add ecx, 0x23b81
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x28]
nop
mov dword [esp + 0x58], 0
test edi, edi
jle 0x10493231
mov edx, dword [esp + 0x24]
mov edi, 0x10
mov ecx, edx
imul ecx, edx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x64]
shl edi, cl
mov ecx, dword [esp + 0x28]
shl ecx, 3
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], ecx
mov edi, dword [esp + 0x20]
mov edi, dword [edi]
add edi, ecx
cmp edx, 4
jne 0x10492fcf
xor ecx, ecx
xor esi, esi
add eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x10], eax
mov eax, edi
mov dword [esp + 0x14], eax
add eax, 6
xor edx, edx
cmp dword [esp + 0x10], eax
ja 0x10492f96
mov eax, dword [esp + 0x10]
add eax, 6
cmp eax, dword [esp + 0x14]
jb 0x10492f96
nop
lea eax, [ecx + edx]
mov cx, word [edi + eax*2]
lea eax, [esi + edx]
shl cx, 3
inc edx
mov word [esp + eax*2 + 0x80], cx
mov ecx, dword [esp + 0x18]
cmp edx, 4
jl 0x10492f70
mov edx, dword [esp + 0x14]
jmp 0x10492fab
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
movq xmm0, qword [edx]
psllw xmm0, 3
movq qword [eax], xmm0
add edx, dword [esp + 0x68]
add esi, 4
add ecx, dword [esp + 0x1c]
mov eax, edx
add dword [esp + 0x10], 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
cmp esi, 0x10
jl 0x10492f57
jmp 0x10493132
cmp edx, 8
jne 0x10493084
xor esi, esi
lea edx, [esp + 0x80]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
add eax, 0xe
xor edx, edx
cmp dword [esp + 0x14], eax
ja 0x10493032
mov eax, dword [esp + 0x14]
add eax, 0xe
cmp eax, dword [esp + 0x18]
jb 0x10493032
nop dword [eax]
lea eax, [ecx + edx]
mov cx, word [edi + eax*2]
lea eax, [esi + edx]
shl cx, 3
inc edx
mov word [esp + eax*2 + 0x80], cx
mov ecx, dword [esp + 0x10]
cmp edx, 8
jl 0x10493010
jmp 0x10493053
lea eax, [ecx + edx]
movq xmm0, qword [edi + eax*2]
lea eax, [esi + edx]
psllw xmm0, 3
add edx, 4
movq qword [esp + eax*2 + 0x80], xmm0
cmp edx, 8
jl 0x10493032
add ecx, dword [esp + 0x1c]
add esi, 8
mov eax, dword [esp + 0x18]
add dword [esp + 0x14], 0x10
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
cmp esi, 0x40
jl 0x10492ff1
jmp 0x10493132
cmp edx, 0x10
jne 0x10493136
xor esi, esi
lea eax, [esp + 0x80]
xor edx, edx
mov dword [esp + 0x14], eax
mov ecx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
add ecx, 0x1e
xor eax, eax
cmp dword [esp + 0x14], ecx
ja 0x104930e2
mov ecx, dword [esp + 0x14]
add ecx, 0x1e
cmp ecx, dword [esp + 0x18]
jb 0x104930e2
nop
lea ecx, [edx + eax]
mov dx, word [edi + ecx*2]
lea ecx, [esi + eax]
shl dx, 3
inc eax
mov word [esp + ecx*2 + 0x80], dx
mov edx, dword [esp + 0x10]
cmp eax, 0x10
jl 0x104930c0
jmp 0x10493103
lea ecx, [edx + eax]
movq xmm0, qword [edi + ecx*2]
lea ecx, [esi + eax]
psllw xmm0, 3
add eax, 4
movq qword [esp + ecx*2 + 0x80], xmm0
cmp eax, 0x10
jl 0x104930e2
add edx, dword [esp + 0x1c]
add esi, 0x10
mov ecx, dword [esp + 0x18]
add dword [esp + 0x14], 0x20
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x1c]
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
cmp esi, 0x100
jl 0x104930a6
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x880]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + 0x44]
push ecx
lea ecx, [esp + 0x494]
push ecx
push dword [eax + 0x2c]
push dword [eax + 0x30]
lea eax, [esp + 0xa0]
push dword [esp + 0x8c]
push eax
call dword [0x10b48570]
movzx ecx, word [esp + 0x68]
xor eax, eax
mov edi, dword [esp + 0x88]
add esp, 0x28
test ecx, ecx
sete al
and dword [esp + 0x4c], eax
mov byte [edi], al
lea eax, [ecx + 1]
bsr eax, eax
add dword [esp + 0x50], eax
cmp ecx, 1
jne 0x104931b0
movsx eax, word [esp + 0x480]
cdq
xor eax, edx
sub eax, edx
jmp 0x104931c7
jbe 0x104931c9
push dword [esp + 0x54]
lea eax, [esp + 0x484]
push eax
call dword [0x10b49044]
add esp, 8
add dword [esi], eax
push dword [esp + 0x54]
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call dword [0x10b486cc]
mov ecx, dword [esp + 0x68]
add esp, 0xc
shrd eax, edx, 2
sar edx, 2
add dword [esi + 8], eax
mov eax, dword [esp + 0x58]
adc dword [esi + 0xc], edx
add eax, dword [esp + 0x28]
add ecx, dword [esp + 0x70]
add edi, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edi
jl 0x10492f27
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x74]
add edx, ecx
add dword [esp + 0x44], esi
mov esi, dword [esp + 0x78]
add dword [esp + 0x48], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
cmp edx, dword [esp + 0x38]
jl 0x10492ee0
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x4c]
mov dword [eax], edx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov byte [esi + 0x20], dl
cmp ecx, 0x7fffffff
jg 0x104932a9
jl 0x10493277
cmp eax, 0xffffffff
jae 0x104932a9
shld ecx, eax, 6
shl eax, 6
shrd eax, ecx, 2
sar ecx, 2
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
test edx, edx
je 0x104932a9
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
pop edi
pop esi
mov ecx, dword [esp + 0xcb4]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, dword [esp + 0x50]
pop edi
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0xcb8]
shl eax, 9
mov dword [esi], eax
pop esi
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret