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

Disassembly:
sub esp, 0xac
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
push edi
mov edi, dword [esp + 0xc0]
xor esi, esi
imul eax, ebx, 0x544
push 0x2c
push esi
mov ecx, dword [edi + 0x28]
lea ebp, [edi + 0x2c]
mov dword [esp + 0x80], ecx
add ebp, eax
mov dword [esp + 0x44], 0
mov eax, dword [edi]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x68], ebp
lea eax, [ecx + eax*4]
mov dword [esp + 0x90], eax
mov eax, dword [edi + 0xabc]
mov ecx, dword [eax + 0x28]
mov eax, 0x24924925
mul ecx
lea eax, [esp + 0x98]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 3
push eax
mov dword [esp + 0x80], ecx
call fcn.102667b0
mov eax, dword [ebp + 0x18]
add esp, 0xc
mov dword [ebp], esi
mov ecx, dword [edi + 0x18]
cdq
xor eax, edx
mov dword [esp + 0xac], 0x7d00
sub eax, edx
mov byte [esp + 0x90], 0
mov edx, dword [edi + 0x1c]
lea ecx, [ecx + ecx*4]
shl ecx, 3
add ecx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x80], eax
test ebx, ebx
jne 0x101584ea
cmp edx, ecx
jae 0x10158505
movsx eax, word [edx + 0xc]
mov dword [edx + 0x18], eax
movsx eax, word [edx + 0xe]
mov dword [edx + 0x1c], eax
add edx, 0x28
cmp edx, ecx
jb 0x101584d3
jmp 0x10158505
cmp edx, ecx
jae 0x10158505
nop
movsx eax, word [edx + 0xe]
mov dword [edx + 0x18], eax
movsx eax, word [edx + 0xc]
mov dword [edx + 0x1c], eax
add edx, 0x28
cmp edx, ecx
jb 0x101584f0
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x88]
jae 0x10158c81
nop word [eax + eax]
mov ebx, dword [eax]
mov ecx, 0x7d00
mov dword [esp + 0x24], ecx
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov edi, 0xffff8300
mov dword [esp + 0x18], ecx
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], ecx
mov cl, byte [eax + 3]
movsx edx, cl
mov eax, edx
mov dword [esp + 0x38], 0
neg eax
mov dword [esp + 0x10], edi
test cl, cl
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
cmovns eax, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x5c], edi
cmp eax, dword [esp + 0x6c]
jne 0x101585d3
mov cl, byte [ebx + 3]
movsx edx, cl
mov eax, edx
neg eax
test cl, cl
cmovns eax, edx
cmp eax, dword [esp + 0x6c]
jne 0x101585d3
mov dword [esp + 0x68], ebx
nop dword [eax + eax]
mov ebx, dword [ebx + 0x24]
mov cl, byte [ebx + 3]
movsx edx, cl
mov eax, edx
neg eax
test cl, cl
cmovns eax, edx
cmp eax, dword [esp + 0x6c]
jne 0x101585d0
cmp ebx, dword [esp + 0x68]
jne 0x101585b0
jmp 0x101585d3
mov ebx, dword [ebx + 0x20]
mov dword [esp + 0x68], ebx
mov eax, ebp
mov byte [esp + 0x22], 0
nop
mov edx, edi
test eax, eax
je 0x10158938
mov edi, dword [ebx + 0x18]
mov ecx, edi
cmp edi, dword [esp + 0x24]
mov eax, dword [ebx + 0x1c]
cmovge ecx, dword [esp + 0x24]
cmp edi, edx
mov dword [esp + 0x24], ecx
cmovle edi, edx
mov dword [esp + 0x34], ecx
cmp eax, dword [esp + 0x14]
jge 0x10158619
movzx ecx, word [ebx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
cmp eax, dword [esp + 0x10]
jle 0x1015862a
movzx ecx, word [ebx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
test byte [ebx], 3
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
jne 0x10158649
cmp eax, ecx
cmovl ecx, eax
cmp eax, edx
mov dword [esp + 0x18], ecx
cmovg edx, eax
mov dword [esp + 0x30], edx
movsx eax, byte [ebx + 3]
cmp eax, dword [esp + 0x80]
jne 0x10158660
cmp ebx, dword [esp + 0x68]
jne 0x10158c59
test ebp, ebp
je 0x1015889b
mov eax, dword [ebp + 0x28]
cmp dword [esi + 0x24], eax
jne 0x1015889b
mov al, byte [eax + 2]
cmp al, byte [ebx + 2]
jne 0x10158752
mov eax, dword [esp + 0x34]
mov ecx, eax
cmp dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
cmovl ecx, dword [esp + 0x44]
cmp dword [esp + 0x48], edi
mov dword [esp + 0x24], ecx
cmovg edi, dword [esp + 0x48]
cmp eax, dword [esp + 0x14]
jge 0x101586b5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x10]
jle 0x101586ce
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x18]
lea eax, [edi + ecx]
cmp dword [esp + 0x58], esi
mov dword [ebp + 0x28], ebx
cmovl esi, dword [esp + 0x58]
cmp dword [esp + 0x5c], edx
mov dword [esp + 0x18], esi
cmovg edx, dword [esp + 0x5c]
sar eax, 1
mov word [ebp + 2], ax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x30], edx
mov ecx, dword [esp + 0x28]
or cl, byte [esp + 0x2c]
sar eax, 1
mov word [ebp + 4], ax
test cl, 3
je 0x1015871f
mov eax, edx
sub eax, esi
cmp eax, dword [esp + 0x74]
jge 0x1015871f
or byte [ebp], 1
jmp 0x10158723
and byte [ebp], 0xfe
mov eax, dword [esp + 0x14]
xor edx, edx
movzx ecx, ax
mov eax, dword [esp + 0x10]
movzx eax, ax
mov word [ebp + 8], ax
sub eax, ecx
mov word [ebp + 0xa], ax
mov eax, dword [esp + 0x60]
mov word [ebp + 6], cx
mov dword [esp + 0x38], edx
dec dword [eax]
xor esi, esi
jmp 0x1015893c
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
cdq
mov ecx, eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x14]
xor ecx, edx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jle 0x101587bd
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
cmp ecx, esi
mov edx, dword [esp + 0x48]
cmovl esi, ecx
mov dword [ebp + 0x28], ebx
cmp edi, edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], ecx
cmovg edx, edi
mov dword [esp + 0x48], edx
lea eax, [edx + esi]
sar eax, 1
mov word [ebp + 2], ax
mov eax, edx
sub eax, esi
xor edx, edx
sar eax, 1
mov word [ebp + 4], ax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x38], edx
dec dword [eax]
xor esi, esi
jmp 0x1015893c
mov eax, dword [esp + 0x34]
mov ecx, eax
cmp dword [esp + 0x44], eax
mov edx, dword [esp + 0x30]
cmovl ecx, dword [esp + 0x44]
cmp dword [esp + 0x48], edi
mov dword [esp + 0x24], ecx
cmovg edi, dword [esp + 0x48]
mov dword [esi + 0x28], ebx
lea eax, [edi + ecx]
sar eax, 1
mov word [esi + 2], ax
mov eax, edi
sub eax, ecx
mov ecx, dword [esp + 0x28]
or cl, byte [esp + 0x2c]
sar eax, 1
mov word [esi + 4], ax
test cl, 3
je 0x1015880f
mov eax, edx
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x74]
jge 0x1015880f
or byte [esi], 1
mov eax, dword [esp + 0x14]
movzx ecx, ax
mov eax, dword [esp + 0x10]
movzx eax, ax
mov word [esi + 8], ax
sub eax, ecx
mov word [esi + 0xa], ax
mov word [esi + 6], cx
movups xmm0, xmmword [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], edx
xor edx, edx
movups xmmword [ebp], xmm0
mov dword [esp + 0x44], ecx
movups xmm0, xmmword [esi + 0x10]
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], edx
movups xmmword [ebp + 0x10], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebp + 0x20], xmm0
mov eax, dword [esi + 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
movzx esi, ax
mov eax, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x64], esi
dec dword [eax]
xor esi, esi
jmp 0x1015893c
mov ebp, dword [esp + 0x34]
mov dword [esi + 0x28], ebx
lea eax, [edi + ebp]
sar eax, 1
mov word [esi + 2], ax
mov eax, edi
sub eax, ebp
sar eax, 1
mov word [esi + 4], ax
mov al, byte [esp + 0x28]
or al, byte [esp + 0x2c]
test al, 3
je 0x101588ce
mov eax, edx
sub eax, ecx
cmp eax, dword [esp + 0x74]
jge 0x101588ce
or byte [esi], 1
mov eax, dword [esp + 0x14]
mov ebp, esi
movzx ecx, ax
mov eax, dword [esp + 0x10]
mov word [esi + 6], cx
movzx eax, ax
mov word [esi + 8], ax
sub eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x2c]
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x34]
movzx esi, cx
mov ecx, dword [esp + 0x28]
movzx ecx, cx
mov dword [esp + 0x5c], edx
xor edx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], esi
xor esi, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], edx
jmp 0x1015893c
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
movzx eax, ax
mov dword [esp + 0x70], eax
movzx eax, cx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
movzx eax, ax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x34], eax
cmp ebx, dword [esp + 0x68]
jne 0x10158a47
cmp byte [esp + 0x22], 0
jne 0x10158c65
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
movzx eax, cx
mov dword [esp + 0x1c], eax
movzx eax, cx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
movzx eax, cx
mov dword [esp + 0x40], eax
movzx eax, cx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], eax
movzx eax, cx
mov dword [esp + 0x8c], eax
movzx eax, cx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x64], eax
movzx eax, cx
mov dword [esp + 0x70], eax
movzx eax, cx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x22], 1
test edx, edx
jne 0x10158c59
mov dl, byte [ebx + 3]
movsx ecx, dl
mov eax, ecx
mov byte [esp + 0x23], dl
neg eax
test dl, dl
cmovns eax, ecx
cmp eax, dword [esp + 0x6c]
je 0x10158a69
cmp ebx, dword [ebx + 0x24]
jne 0x10158c59
mov edi, dword [esp + 0x60]
mov eax, dword [edi]
cmp eax, 0x3e8
ja 0x10158ce4
mov dword [esp + 0x80], ecx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x54], ecx
cmp eax, 0x12
jae 0x10158aad
cmp dword [edi + 8], ecx
jne 0x10158b8e
lea eax, [edi + 0x1c]
mov dword [edi + 4], 0x12
mov dword [edi + 8], eax
jmp 0x10158b8e
mov ecx, dword [edi + 4]
cmp eax, ecx
jb 0x10158b8c
cmp ecx, 0x2e8ba2e
jb 0x10158ad2
mov ecx, 0x40
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x54], ecx
jmp 0x10158b99
mov eax, ecx
shr eax, 2
add eax, 4
add eax, ecx
mov dword [esp + 0x34], eax
cmp eax, ecx
jb 0x10158aeb
cmp eax, 0x2e8ba2e
jbe 0x10158af4
mov eax, 0x2e8ba2e
mov dword [esp + 0x34], eax
lea edx, [edi + 0x1c]
mov dword [esp + 0x7c], edx
mov edx, dword [edi + 8]
cmp edx, dword [esp + 0x7c]
jne 0x10158b53
lea ecx, [esp + 0x54]
push ecx
push 0
push eax
push 0
push 0x2c
push dword [esp + 0x98]
call fcn.10150230
mov ecx, dword [esp + 0x6c]
add esp, 0x18
mov dword [edi + 8], eax
mov dword [esp + 0x3c], ecx
test ecx, ecx
jne 0x10158d1f
lea esi, [edi + 0x1c]
mov ecx, 0xc6
mov edi, eax
mov eax, dword [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov dword [edi + 4], eax
jmp 0x10158b8e
lea edi, [esp + 0x54]
push edi
push edx
push eax
push ecx
push 0x2c
push dword [esp + 0x98]
call fcn.10150230
mov edi, dword [esp + 0x78]
add esp, 0x18
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
mov dword [edi + 8], eax
test ecx, ecx
jne 0x10158d1f
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
jmp 0x10158b8e
mov ecx, esi
mov eax, dword [edi]
imul esi, eax, 0x2c
add esi, dword [edi + 8]
inc eax
mov dword [edi], eax
test ecx, ecx
jne 0x10158d1f
mov al, byte [esp + 0x23]
movups xmm0, xmmword [esp + 0x90]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0xa0]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [esp + 0xb0]
movq qword [esi + 0x20], xmm0
mov byte [esi + 1], al
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
test ebp, ebp
je 0x10158bda
lea ebp, [esi - 0x2c]
movzx eax, word [ebx]
mov ecx, dword [ebx + 0x1c]
mov edx, eax
mov edi, dword [ebx + 0x18]
mov dword [esp + 0x28], edx
movzx edx, dx
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], edx
test al, 3
je 0x10158c12
mov dword [esp + 0x18], 0x7d00
mov dword [esp + 0x30], 0xffff8300
jmp 0x10158c1c
mov eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov eax, 1
mov dword [esp + 0x38], eax
cmp ebx, dword [ebx + 0x24]
jne 0x10158c5d
mov word [esi + 2], di
test byte [ebx], 3
je 0x10158c35
or byte [esi], al
movzx eax, word [ebx + 0x1c]
mov word [esi + 6], ax
movzx eax, word [ebx + 0x1c]
mov word [esi + 8], ax
xor eax, eax
mov word [esi + 0xa], ax
xor esi, esi
mov ebx, dword [ebx + 0x20]
mov dword [esp + 0x38], eax
jmp 0x101585e0
mov eax, dword [esp + 0x38]
mov ebx, dword [ebx + 0x20]
jmp 0x101585e0
mov eax, dword [esp + 0x78]
add eax, 4
mov dword [esp + 0x78], eax
cmp eax, dword [esp + 0x88]
jb 0x10158520
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp + 8]
test eax, eax
je 0x10158d1b
imul edx, dword [ebp], 0x2c
add edx, eax
cmp eax, edx
jae 0x10158d1b
sub edx, eax
lea ecx, [eax + 0xa]
dec edx
mov eax, 0xba2e8ba3
mul edx
mov ebx, edx
shr ebx, 5
inc ebx
nop dword [eax]
mov eax, dword [ecx + 0x1a]
mov edi, dword [ecx + 0x1e]
mov esi, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
mov edx, dword [edi + 0x1c]
mov eax, dword [eax + 0x1c]
cmp esi, edx
jge 0x10158cf7
cmp eax, esi
jge 0x10158cd1
sub esi, eax
sar esi, 1
add word [ecx], si
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x1c]
cmp eax, edx
jle 0x10158d13
sub eax, edx
sar eax, 1
add word [ecx], ax
jmp 0x10158d13
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
cmp eax, esi
jle 0x10158d02
sub eax, esi
sar eax, 1
add word [ecx], ax
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x1c]
cmp eax, edx
jge 0x10158d13
sub edx, eax
sar edx, 1
add word [ecx], dx
add ecx, 0x2c
sub ebx, 1
jne 0x10158cb0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0xac
ret