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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x240
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], edi
test eax, eax
jle 0x100223ef
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x40], ebp
jle 0x100223df
cmp dword [esp + 0x40], edi
je 0x100223c8
mov eax, dword [esi + 0x14]
mov edx, dword [eax + ebp + 0xc]
lea ecx, [eax + ebp]
test edx, edx
je 0x10021578
lea edx, [edi + edi*4]
shl edx, 4
mov ebx, dword [edx + eax + 0xc]
test ebx, ebx
jne 0x100223c8
lea ebx, [edi + edi*4]
push ecx
shl ebx, 4
add eax, ebx
mov ecx, esi
push eax
mov dword [esp + 0x4c], ebx
call fcn.1002097d
mov ecx, dword [esi + 0x14]
fstp dword [esp + 0x30]
lea eax, [ecx + ebx]
mov ecx, dword [ecx + ebx + 0xc]
test ecx, ecx
jne 0x1002163f
fld dword [esp + 0x30]
fadd qword [0x10019128]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax + 4]
fstp dword [esp]
push ecx
push edx
mov ecx, esi
call fcn.1002242d
test eax, eax
je 0x100223c8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x184]
push ecx
push edx
mov ecx, esi
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x14]
push eax
push ecx
mov eax, dword [edx + ebx + 4]
push eax
mov ecx, dword [edx + ebx]
push ecx
mov ecx, esi
call fcn.1002242d
test eax, eax
je 0x100223c8
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x21c]
push eax
push ecx
mov ecx, esi
call fcn.10020bbd
mov edx, dword [eax]
mov dword [esp + 0x54], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x58], eax
jmp 0x1002165b
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x68], edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x58], edx
lea eax, [esp + 0x54]
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, esi
call fcn.10020a2d
mov edx, dword [esi + 0x14]
mov dword [esp + 0x3c], 0
fstp dword [esp + 0x1c]
mov ecx, dword [edx + ebp + 0xc]
lea eax, [edx + ebp]
test ecx, ecx
mov dword [esp + 0x38], 0
jne 0x100217a1
fld dword [esp + 0x30]
fadd qword [0x10019128]
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push ecx
mov ecx, esi
fstp dword [esp]
push edx
push eax
call fcn.1002242d
test eax, eax
je 0x100223c8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x22c]
push edx
push eax
mov ecx, esi
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x88], edx
mov edx, dword [esi + 0x14]
push eax
push ecx
mov eax, dword [edx + ebp + 4]
push eax
mov ecx, dword [edx + ebp]
push ecx
mov ecx, esi
call fcn.1002242d
test eax, eax
je 0x100223c8
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x23c]
push eax
push ecx
mov ecx, esi
call fcn.10020bbd
mov edx, dword [eax]
lea ecx, [esp + 0x74]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x84]
mov eax, dword [eax + 4]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x80], eax
call fcn.10020a2d
mov eax, dword [esi + 0x14]
fstp dword [esp + 0x18]
lea ecx, [eax + ebp]
add ebx, eax
push ecx
push ebx
mov ecx, esi
call fcn.10020a2d
fstp dword [esp + 0x3c]
fld dword [esp + 0x18]
fadd dword [esp + 0x1c]
fmul dword [0x10019198]
fdivr dword [esp + 0x3c]
fsub dword [0x10019194]
fmul dword [0x10019190]
fadd qword [0x10019160]
call fcn.10036783
test eax, eax
mov dword [esp + 0x38], eax
jl 0x100223c8
cmp eax, 0x2c
jle 0x100217c3
jmp 0x100223c8
mov edx, dword [eax + 0x28]
mov dword [esp + 0x84], edx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x74], edx
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x100223c8
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x100223ad
mov ecx, dword [esp + 0x40]
cmp eax, ecx
je 0x100223ad
mov eax, dword [esi + 0x14]
mov edx, dword [ebx + eax + 0xc]
lea ecx, [ebx + eax]
test edx, edx
je 0x1002181a
mov edx, dword [esp + 0x44]
mov edi, dword [edx + eax + 0xc]
test edi, edi
jne 0x100223ad
mov edx, dword [eax + ebp + 0xc]
test edx, edx
jne 0x100223ad
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x44]
add ecx, eax
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0xc0], edx
mov dword [esp + 0x12c], 0
call fcn.1002097d
fstp dword [esp + 0x34]
fld dword [esp + 0x30]
fsub dword [esp + 0x34]
fsin
fcomp qword [0x10019188]
fnstsw ax
test ah, 1
jne 0x100223ad
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x44]
add eax, edx
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x10021924
fld dword [esp + 0x34]
fadd qword [0x10019128]
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push ecx
mov ecx, esi
fstp dword [esp]
push edx
push eax
call fcn.1002242d
test eax, eax
je 0x100223ad
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x24c]
push edx
push eax
mov ecx, esi
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [eax + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [edx + eax + 4]
push ecx
mov ecx, esi
mov edx, dword [edx + eax]
push edx
call fcn.1002242d
test eax, eax
je 0x100223ad
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x144]
push ecx
push edx
mov ecx, esi
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
jmp 0x1002193c
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 0x24]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x68], edx
call fcn.10020a2d
mov edi, dword [esi + 0x14]
mov dword [esp + 0x18], 0
fstp dword [esp + 0xac]
mov eax, dword [ebx + edi + 0xc]
test eax, eax
jne 0x10021ad7
fld dword [esp + 0x34]
fadd qword [0x10019128]
mov eax, dword [ebx + edi + 4]
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, dword [ebx + edi]
fstp dword [esp]
push eax
push ecx
mov ecx, esi
call fcn.1002242d
test eax, eax
je 0x100223ad
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x244]
push eax
push ecx
mov ecx, esi
call fcn.10020bbd
mov edx, dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 4]
push ecx
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebx + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebx]
push edx
call fcn.1002242d
test eax, eax
je 0x100223ad
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x154]
push ecx
push edx
mov ecx, esi
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x9c]
mov edx, dword [eax + 4]
lea eax, [esp + 0x8c]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0xa8], edx
call fcn.10020a2d
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x44]
fstp dword [esp + 0x18]
lea edx, [ebx + eax]
add ecx, eax
push edx
push ecx
mov ecx, esi
call fcn.10020a2d
mov edi, dword [esi + 0x14]
mov eax, dword [edi + ebp + 0xc]
test eax, eax
jne 0x10021a93
fld dword [esp + 0x3c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x10021a65
fld dword [esp + 0x3c]
jmp 0x10021a67
fld st(0)
fld dword [esp + 0x3c]
fcomp st(2)
fnstsw ax
test ah, 1
je 0x10021a7a
fld dword [esp + 0x3c]
jmp 0x10021a7c
fld st(1)
fxch st(1)
fdiv st(1)
fcomp dword [0x10019180]
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x100223ab
fld dword [esp + 0x18]
fadd dword [esp + 0xac]
fmul dword [0x10019198]
fdivr st(1)
fsub dword [0x10019194]
fmul dword [0x10019190]
fadd qword [0x10019160]
call fcn.10036783
test eax, eax
fstp st(0)
mov dword [esp + 0x18], eax
jl 0x100223ad
mov ecx, eax
cmp ecx, 0x2c
jle 0x10021b07
jmp 0x100223ad
mov edx, dword [ebx + edi + 0x10]
mov dword [esp + 0x8c], edx
mov eax, dword [ebx + edi + 0x14]
mov dword [esp + 0x90], eax
mov ecx, dword [ebx + edi + 0x20]
mov dword [esp + 0x9c], ecx
mov edx, dword [ebx + edi + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xa0], edx
mov eax, dword [edi + ebp + 0xc]
test eax, eax
jne 0x10021b50
mov edx, dword [ebx + edi + 0xc]
test edx, edx
jne 0x10021b48
mov eax, dword [esp + 0x38]
cmp eax, 6
jg 0x10021b36
cmp ecx, 6
jg 0x10021b36
cmp eax, ecx
jne 0x100223ad
mov dword [esp + 0x124], eax
jmp 0x10021b57
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 4
jg 0x100223ad
jmp 0x10021b57
test eax, eax
jne 0x10021b50
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x124], ecx
mov eax, dword [edi + ebp + 0xc]
test eax, eax
jne 0x10021c04
fld dword [esp + 0x34]
fadd qword [0x10019128]
mov eax, dword [edi + ebp + 4]
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, dword [edi + ebp]
fstp dword [esp]
push eax
push ecx
mov ecx, esi
call fcn.1002242d
test eax, eax
je 0x100223ad
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x1d4]
push eax
push ecx
mov ecx, esi
call fcn.10020bbd
mov edx, dword [eax]
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x34]
mov eax, dword [eax + 4]
push ecx
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebp + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebp]
push edx
call fcn.1002242d
test eax, eax
je 0x100223ad
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x164]
push ecx
push edx
mov ecx, esi
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x80], edx
jmp 0x10021c27
mov eax, dword [edi + ebp + 0x10]
mov dword [esp + 0x6c], eax
mov ecx, dword [edi + ebp + 0x14]
mov dword [esp + 0x70], ecx
mov edx, dword [edi + ebp + 0x20]
mov dword [esp + 0x7c], edx
mov eax, dword [edi + ebp + 0x24]
mov dword [esp + 0x80], eax
mov ecx, dword [esi + 0x14]
lea eax, [ecx + ebx]
mov ecx, dword [ecx + ebx + 0xc]
test ecx, ecx
jne 0x10021ce1
fld dword [esp + 0x30]
fadd qword [0x10019128]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax + 4]
fstp dword [esp]
push ecx
push edx
mov ecx, esi
call fcn.1002242d
test eax, eax
je 0x100223ad
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x214]
push ecx
push edx
mov ecx, esi
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0xa8], edx
mov edx, dword [esi + 0x14]
push eax
push ecx
mov eax, dword [edx + ebx + 4]
push eax
mov ecx, dword [edx + ebx]
push ecx
mov ecx, esi
call fcn.1002242d
test eax, eax
je 0x100223ad
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x174]
push eax
push ecx
mov ecx, esi
call fcn.10020bbd
mov edx, dword [eax]
mov dword [esp + 0x94], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x98], eax
jmp 0x10021d09
mov ecx, dword [eax + 0x28]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0xa8], edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x98], edx
lea eax, [esp + 0xbc]
lea ecx, [esp + 0xa4]
push eax
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x74]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
lea edx, [esp + 0xc4]
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x74]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
lea ecx, [esp + 0xcc]
lea edx, [esp + 0x94]
push ecx
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x84]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
lea eax, [esp + 0xd4]
lea ecx, [esp + 0xa4]
push eax
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + ebp + 0xc]
lea eax, [edx + ebp]
test ecx, ecx
jne 0x10022011
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
push eax
lea edx, [esp + 0x1e4]
push ecx
push edx
mov ecx, esi
call fcn.10020bed
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebp + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebp]
lea eax, [esp + 0x13c]
push edx
push eax
call fcn.10022fdd
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov edx, dword [eax]
lea eax, [esp + 0x234]
push edx
push eax
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x84]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], edx
push eax
lea edx, [esp + 0x194]
push ecx
push edx
mov ecx, esi
call fcn.10020bed
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebp + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebp]
lea eax, [esp + 0x1fc]
push edx
push eax
call fcn.10022b5d
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov edx, dword [eax]
lea eax, [esp + 0x1a4]
push edx
push eax
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax + 4]
lea eax, [esp + 0xdc]
mov dword [esp + 0x2c], edx
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x74]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
lea edx, [esp + 0xf4]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x84]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
mov ecx, esi
call fcn.10020bed
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebp + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebp]
lea eax, [esp + 0x1bc]
push edx
push eax
call fcn.10022fdd
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov edx, dword [eax]
lea eax, [esp + 0x204]
push edx
push eax
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x74]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x24], edx
push eax
lea edx, [esp + 0x1c4]
push ecx
push edx
mov ecx, esi
call fcn.10020bed
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebp + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebp]
lea eax, [esp + 0x144]
push edx
push eax
call fcn.10022b5d
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov edx, dword [eax]
lea eax, [esp + 0x14c]
push edx
push eax
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax + 4]
lea eax, [esp + 0xe4]
mov dword [esp + 0x2c], edx
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x74]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
lea edx, [esp + 0xec]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x84]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
jmp 0x10022061
mov ecx, dword [eax + 0x30]
mov dword [esp + 0xdc], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0xe0], edx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0xe4], ecx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0xe8], edx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0xec], ecx
mov edx, dword [eax + 0x44]
mov dword [esp + 0xf0], edx
mov ecx, dword [eax + 0x48]
mov dword [esp + 0xf4], ecx
mov edx, dword [eax + 0x4c]
mov dword [esp + 0xf8], edx
mov eax, dword [esi + 0x14]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x100222bb
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push ecx
lea eax, [esp + 0x15c]
push edx
push eax
mov ecx, esi
call fcn.10020bed
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebx + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebx]
lea eax, [esp + 0x174]
push edx
push eax
call fcn.10022fdd
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov edx, dword [eax]
lea eax, [esp + 0x17c]
push edx
push eax
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x8c]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x24], edx
push eax
lea edx, [esp + 0x18c]
push ecx
push edx
mov ecx, esi
call fcn.10020bed
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebx + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebx]
lea eax, [esp + 0x1a4]
push edx
push eax
call fcn.10022b5d
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov edx, dword [eax]
lea eax, [esp + 0x1ac]
push edx
push eax
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax + 4]
lea eax, [esp + 0xfc]
mov dword [esp + 0x2c], edx
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0xac]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
lea edx, [esp + 0x104]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
push ecx
lea eax, [esp + 0x1bc]
push edx
push eax
mov ecx, esi
call fcn.10020bed
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebx + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebx]
lea eax, [esp + 0x1d4]
push edx
push eax
call fcn.10022fdd
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov edx, dword [eax]
lea eax, [esp + 0x1dc]
push edx
push eax
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x9c]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x24], edx
push eax
lea edx, [esp + 0x1ec]
push ecx
push edx
mov ecx, esi
call fcn.10020bed
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
mov eax, dword [esi + 0x14]
push edx
mov ecx, dword [eax + ebx + 4]
push ecx
mov ecx, esi
mov edx, dword [eax + ebx]
lea eax, [esp + 0x204]
push edx
push eax
call fcn.10022b5d
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov edx, dword [eax]
lea eax, [esp + 0x20c]
push edx
push eax
call fcn.10020bbd
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x28]
mov edx, dword [eax + 4]
lea eax, [esp + 0x114]
mov dword [esp + 0x2c], edx
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0xac]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
lea edx, [esp + 0x10c]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, esi
call fcn.10020a5d
test eax, eax
je 0x100223ad
jmp 0x1002230b
mov ecx, dword [eax + 0x30]
mov dword [esp + 0xfc], ecx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x100], edx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x104], ecx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x108], edx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x10c], ecx
mov edx, dword [eax + 0x44]
mov dword [esp + 0x110], edx
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x114], ecx
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x118], edx
mov eax, dword [esp + 0x124]
test eax, eax
jne 0x1002234a
lea eax, [esp + 0xb0]
mov ecx, esi
push eax
call fcn.1002345d
test eax, eax
jne 0x10022343
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
cmp eax, ecx
jne 0x100223ad
cmp eax, 0x28
jg 0x100223ad
mov dword [esp + 0x124], eax
jmp 0x1002234a
mov eax, dword [esp + 0x124]
cmp eax, 1
jl 0x100223ad
cmp eax, 0x28
jg 0x100223ad
lea edx, [esp + 0xb0]
mov ecx, esi
push edx
call fcn.100237cd
test eax, eax
je 0x100223ad
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
inc eax
shl eax, 7
push eax
push ecx
call dword [fcn.100190b8]
add esp, 8
test eax, eax
je 0x100223fa
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0xb0]
shl ecx, 7
push 0x80
add ecx, eax
push edx
push ecx
mov dword [esi + 0x1c], eax
call dword [fcn.10019094]
mov eax, dword [esi + 0x18]
add esp, 0xc
inc eax
mov dword [esi + 0x18], eax
jmp 0x100223ad
fstp st(0)
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x10]
mov edi, dword [esp + 0x48]
inc eax
add ebx, 0x50
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x100217d8
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x10]
inc eax
add ebp, 0x50
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x1002154e
mov eax, dword [esi + 0x10]
inc edi
cmp edi, eax
mov dword [esp + 0x48], edi
jl 0x10021540
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x1c]
push edx
call dword [fcn.100190b0]
add esp, 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x10508], 1
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret