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

Disassembly:
sub esp, 0x224
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
movaps xmm0, xmmword [0x105fe940]
mov ecx, dword [esp + 0x23c]
movups xmmword [esp + 0x100], xmm0
mov eax, dword [esp + 0x258]
movups xmmword [esp + 0xf0], xmm0
mov dword [esp + 0x1c], eax
xorps xmm0, xmm0
mov eax, dword [esp + 0x264]
movups xmmword [esp + 0x140], xmm0
movups xmmword [esp + 0x110], xmm0
mov ebx, dword [esp + 0x248]
movaps xmm0, xmmword [0x108b7b10]
movups xmmword [esp + 0x170], xmm0
movaps xmm0, xmmword [0x108b7b30]
movups xmmword [esp + 0x180], xmm0
movaps xmm0, xmmword [0x108b7b40]
movups xmmword [esp + 0x190], xmm0
mov dword [esp + 0x10], eax
lea eax, [ecx + 0xe0]
movaps xmm0, xmmword [0x108b7b00]
movups xmmword [esp + 0x1a0], xmm0
movaps xmm0, xmmword [0x108b7a40]
mov edi, dword [esp + 0x238]
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x28], eax
lea eax, [esp + 0xd8]
movaps xmm0, xmmword [0x108b7a70]
movups xmmword [esp + 0x68], xmm0
lea esi, [edi + 0x3abf0]
mov dword [esp + 0x30], ecx
movaps xmm0, xmmword [0x108b7a60]
movups xmmword [esp + 0x78], xmm0
push eax
movaps xmm0, xmmword [0x108b7aa0]
movups xmmword [esp + 0x8c], xmm0
push 0
movaps xmm0, xmmword [0x108b7a30]
movups xmmword [esp + 0xa0], xmm0
push ebx
movaps xmm0, xmmword [0x108b7a50]
movups xmmword [esp + 0xb4], xmm0
push ecx
movaps xmm0, xmmword [0x108b7a80]
movups xmmword [esp + 0xc8], xmm0
push esi
movaps xmm0, xmmword [0x108b7a90]
movups xmmword [esp + 0xdc], xmm0
call fcn.10107230
lea eax, [esp + 0x50]
push eax
push dword [edi + 0x3eb5c]
push 1
push 1
push ebx
call fcn.101071f0
lea ecx, [esi + 0x218]
mov byte [esp + 0x110], 5
xorps xmm0, xmm0
mov dword [esp + 0x54], ecx
add esp, 0x28
movlpd qword [esp + 0x14], xmm0
lea ebp, [esp + 0x150]
xor esi, esi
nop word [eax + eax]
mov bl, byte [esp + esi + 0x170]
lea eax, [esp + 0x3c]
mov edi, dword [esp + 0x240]
push eax
push ebx
push dword [esp + 0x250]
mov byte [esp + 0xe4], bl
push edi
push dword [esp + 0x38]
push ecx
call fcn.101071a0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xf4]
push eax
push dword [esp + 0x274]
push dword [esp + 0x274]
push dword [esp + 0x274]
push dword [esp + 0x270]
push edi
mov edi, dword [esp + 0x64]
push edi
call fcn.10107560
movzx ecx, byte [esp + 0x111]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x50]
shl ecx, 4
push eax
movzx eax, byte [esp + 0x118]
add ecx, eax
push dword [ecx*8 + 0x107edf00]
push dword [esp + 0x88]
push dword [esp + 0x290]
push dword [esp + 0x290]
push dword [esp + 0x290]
push edi
call fcn.10223d50
add esp, 0x58
push 0
push dword [esp + 0x26c]
push dword [esp + 0x18]
push ebx
push dword [esp + 0x258]
push dword [esp + 0x258]
push dword [esp + 0x258]
push edi
call fcn.1044a0c0
imul dword [edi + 0x31cc]
mov ecx, dword [esp + 0x38]
add esp, 0x20
mov edi, eax
mov eax, dword [esp + 0x14]
add edi, 0x100
adc edx, 0
shld ecx, eax, 7
shrd edi, edx, 9
shl eax, 7
sar edx, 9
add edi, eax
mov eax, edi
mov dword [ebp], edi
adc edx, ecx
mov ecx, edx
mov dword [ebp + 4], edx
shrd eax, ecx, 2
sar ecx, 2
sub edi, eax
sbb edx, ecx
cmp edx, dword [esp + 0x270]
jl 0x102274d7
jg 0x102274cc
cmp edi, dword [esp + 0x26c]
jbe 0x102274d7
mov dword [esp + esi + 0x110], 1
mov ecx, dword [esp + 0x2c]
add esi, 4
add ebp, 8
cmp esi, 0x10
jl 0x102273a0
push 4
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x158]
push eax
call fcn.10229a30
mov esi, dword [esp + 0x160]
add esp, 0xc
mov edi, dword [esp + 0x150]
mov edx, esi
mov ecx, edi
call fcn.10511ed0
mulsd xmm0, qword [0x1075c898]
mov edx, dword [esp + 0x15c]
mov ecx, dword [esp + 0x158]
movsd qword [esp + 0x20], xmm0
call fcn.10511ed0
comisd xmm0, xmmword [esp + 0x20]
jbe 0x10227556
mov eax, dword [esp + 0xf4]
mov dword [esp + eax*4 + 0x110], 1
mov edx, dword [esp + 0x164]
mov ecx, dword [esp + 0x160]
call fcn.10511ed0
comisd xmm0, xmmword [esp + 0x20]
jbe 0x10227583
mov eax, dword [esp + 0xf8]
mov dword [esp + eax*4 + 0x110], 1
mov edx, dword [esp + 0x16c]
mov ecx, dword [esp + 0x168]
call fcn.10511ed0
comisd xmm0, xmmword [esp + 0x20]
jbe 0x102275b0
mov eax, dword [esp + 0xfc]
mov dword [esp + eax*4 + 0x110], 1
mov eax, dword [esp + 0xf0]
cmp dword [esp + eax*4 + 0x110], 0
je 0x102275cb
mov eax, 0xffff
jmp 0x10227985
lea ecx, [esp + 0x170]
mov dword [esp + 0x124], esi
lea ecx, [ecx + eax*4]
mov dword [esp + 0x120], edi
mov dword [esp + 0x20], ecx
lea ebp, [esp + 0x128]
xor esi, esi
mov eax, dword [esp + esi + 0x104]
mov edi, dword [esp + 0x240]
add eax, eax
mov bl, byte [ecx + eax*8]
lea eax, [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x250]
mov byte [esp + 0xe4], bl
push edi
push dword [esp + 0x38]
push dword [esp + 0x40]
call fcn.101071a0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xf4]
push eax
push dword [esp + 0x274]
push dword [esp + 0x274]
push dword [esp + 0x274]
push dword [esp + 0x270]
push edi
mov edi, dword [esp + 0x64]
push edi
call fcn.10107560
movzx ecx, byte [esp + 0x111]
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x50]
shl ecx, 4
push eax
movzx eax, byte [esp + 0x118]
add ecx, eax
push dword [ecx*8 + 0x107edf00]
push dword [esp + 0x88]
push dword [esp + 0x290]
push dword [esp + 0x290]
push dword [esp + 0x290]
push edi
call fcn.10223d50
add esp, 0x58
push 0
push dword [esp + 0x26c]
push dword [esp + 0x18]
push ebx
push dword [esp + 0x258]
push dword [esp + 0x258]
push dword [esp + 0x258]
push edi
call fcn.1044a0c0
imul dword [edi + 0x31cc]
mov ecx, dword [esp + 0x38]
add esp, 0x20
mov edi, eax
mov eax, dword [esp + 0x14]
add edi, 0x100
adc edx, 0
shld ecx, eax, 7
shrd edi, edx, 9
shl eax, 7
sar edx, 9
add edi, eax
mov eax, edi
mov dword [ebp], edi
adc edx, ecx
mov ecx, edx
mov dword [ebp + 4], edx
shrd eax, ecx, 2
sar ecx, 2
sub edi, eax
sbb edx, ecx
cmp edx, dword [esp + 0x270]
jl 0x1022772f
jg 0x10227724
cmp edi, dword [esp + 0x26c]
jbe 0x1022772f
mov dword [esp + esi + 0x144], 1
mov ecx, dword [esp + 0x20]
add esi, 4
add ebp, 8
cmp esi, 0xc
jl 0x102275f0
push 4
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 0x128]
push eax
call fcn.10229a30
mov edx, dword [esp + 0x130]
add esp, 0xc
mov ecx, dword [esp + 0x120]
call fcn.10511ed0
mulsd xmm0, qword [0x1075c898]
mov edx, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
movsd qword [esp + 0x14], xmm0
call fcn.10511ed0
comisd xmm0, xmmword [esp + 0x14]
jbe 0x102277aa
mov eax, dword [esp + 0x104]
mov dword [esp + eax*4 + 0x140], 1
mov edx, dword [esp + 0x134]
mov ecx, dword [esp + 0x130]
call fcn.10511ed0
comisd xmm0, xmmword [esp + 0x14]
jbe 0x102277d7
mov eax, dword [esp + 0x108]
mov dword [esp + eax*4 + 0x140], 1
mov edx, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
call fcn.10511ed0
comisd xmm0, xmmword [esp + 0x14]
jbe 0x10227804
mov eax, dword [esp + 0x10c]
mov dword [esp + eax*4 + 0x140], 1
mov eax, dword [esp + 0x1c]
xor edi, edi
add eax, 0x3c
xor edx, edx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + edx + 0x58]
mov ebp, dword [esp + edx + 0x98]
mov esi, dword [esp + ebx*4 + 0x100]
mov eax, dword [esp + ebp*4 + 0xf0]
movsx ebx, word [esp + 0x25c]
shl esi, 2
add eax, esi
mov ecx, dword [esp + eax*4 + 0x170]
mov eax, 1
shl eax, cl
test ebx, eax
mov ebx, dword [esp + edx + 0x58]
je 0x102278b4
mov eax, dword [esp + ebp*4 + 0xf0]
cmp dword [esp + eax*4 + 0x110], 0
jne 0x102278b4
cmp dword [esp + esi + 0x140], 0
jne 0x102278b4
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + ebp*8 + 0x154]
mov dword [esi + edi*4], ecx
mov ecx, dword [esp + ebp*8 + 0x150]
add ecx, dword [esp + ebx*8 + 0x120]
mov dword [esp + edi*8 + 0x1b0], ecx
adc eax, dword [esp + ebx*8 + 0x124]
or ecx, eax
mov dword [esp + edi*8 + 0x1b4], eax
jne 0x102278b1
mov dword [esp + edi*8 + 0x1b0], 1
mov dword [esp + edi*8 + 0x1b4], ecx
inc edi
jmp 0x102278c5
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov dword [eax], ecx
sub eax, 4
mov dword [esp + 0x10], eax
add edx, 4
cmp edx, 0x40
jl 0x10227813
push edi
lea eax, [esp + 0x1b4]
push esi
push eax
call fcn.10229a30
mov ecx, dword [esi]
mov eax, 1
shl ax, cl
add esp, 0xc
cmp dword [esp + 0x274], edi
mov ebx, 1
not ax
cmovl edi, dword [esp + 0x274]
movzx ebp, ax
cmp edi, ebx
jle 0x10227982
mov eax, dword [esp + 0x260]
cdq
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
nop
mov esi, dword [esp + ebx*8 + 0x1b0]
sub esi, dword [esp + 0x1b0]
mov ecx, dword [esp + ebx*8 + 0x1b4]
sbb ecx, dword [esp + 0x1b4]
push 0
push 0x708
push ecx
push esi
call fcn.10511b50
push dword [esp + 0x1b4]
push dword [esp + 0x1b4]
push edx
push eax
call fcn.10511aa0
cmp edx, dword [esp + 0x20]
jg 0x10227982
jl 0x1022796d
cmp eax, dword [esp + 0x10]
jae 0x10227982
mov eax, dword [esp + 0x1c]
movzx ecx, bp
mov eax, dword [eax + ebx*4]
btr ecx, eax
inc ebx
movzx ebp, cx
cmp ebx, edi
jl 0x10227920
mov ax, bp
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x224
ret