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

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
push ebx
push ebp
mov ebp, dword [eax + 8]
push esi
mov esi, dword [esp + 0x98]
xor ebx, ebx
push edi
mov eax, ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ecx
call fcn.10147467
mov dword [esp + 0x44], eax
mov eax, ebp
call fcn.10147467
mov edi, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov ecx, dword [edi]
mov dword [esp + 0x50], eax
movzx eax, byte [esi + 4]
cmp eax, 0x71
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], ecx
je 0x1016542d
mov edx, dword [esp + 0x30]
cmp byte [edx + 0x38], bl
mov esi, 1
mov dword [esp + 0x18], esi
jne 0x1016542d
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov dword [esp + 0x3c], ecx
jmp 0x10165377
mov ecx, dword [esp + 0x3c]
jmp 0x10165377
mov eax, dword [esp + 0x9c]
mov edx, dword [eax]
cmp esi, dword [edx]
jg 0x1016542d
mov edx, dword [edi + 8]
xor eax, eax
cmp ecx, ebx
jle 0x101653af
lea ecx, [edx + 0xe]
mov edx, dword [esp + 0x28]
movzx esi, word [ecx]
cmp esi, dword [esp + 0x18]
je 0x101653a9
inc eax
add ecx, 0x14
cmp eax, edx
jl 0x10165398
mov esi, dword [esp + 0x18]
jmp 0x101653b3
mov edx, dword [esp + 0x28]
cmp eax, edx
jne 0x10165419
mov eax, dword [esp + 0x30]
push ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
push 0x81
push eax
lea ebx, [esp + 0x70]
call fcn.1014f747
add esp, 0xc
test eax, eax
je 0x101654f4
or byte [eax + 3], 4
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [esp + 0x98]
mov ecx, edi
call fcn.10150007
mov edi, eax
test edi, edi
je 0x10165417
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 8]
inc edx
mov word [ecx + eax + 0xe], si
add eax, 0x14
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], eax
xor ebx, ebx
mov edx, dword [esp + 0x30]
mov al, byte [edx + 0x38]
inc esi
cmp al, bl
mov dword [esp + 0x18], esi
je 0x1016536b
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
shl ecx, 2
call fcn.10143be7
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x1016561f
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 8]
xor eax, eax
cmp edx, ebx
jle 0x10165470
mov edx, dword [esp + 0x3c]
add ecx, 0xe
movzx esi, word [ecx]
dec esi
mov dword [edx + eax*4], esi
mov esi, dword [esp + 0x28]
inc eax
add ecx, 0x14
cmp eax, esi
jl 0x1016545d
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
lea ecx, [eax + eax*4 + 0x10]
call fcn.10143be7
cmp eax, ebx
mov dword [esp + 0x4c], eax
je 0x10165623
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx*4 + 0xc]
mov dword [eax + 8], edx
mov word [eax + 6], cx
mov edx, esi
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0xc]
mov dl, byte [edx + 0x4d]
xor esi, esi
cmp ecx, ebx
mov byte [eax + 4], dl
mov dword [esp + 0x18], esi
jle 0x10165623
add eax, 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], eax
lea esp, [esp]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + eax]
test byte [ecx + 3], 1
mov dword [esp + 0x2c], ecx
je 0x10165504
mov edx, dword [esp + 0x98]
push edx
call fcn.10161267
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x101655db
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x84
ret
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x9c]
mov esi, dword [eax + ecx*4]
mov eax, dword [edx + 0x3c]
cmp eax, ebx
je 0x1016557c
push esi
push eax
mov eax, dword [esp + 0xa0]
push eax
call fcn.10165297
add esp, 0xc
cmp eax, ebx
jne 0x10165559
mov ecx, dword [esp + 0x9c]
mov ecx, dword [ecx]
cmp esi, dword [ecx]
jge 0x10165559
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x98]
lea edx, [esi + esi*4]
push ecx
mov ecx, dword [eax + edx*4]
call fcn.10161267
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x1016556c
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
cmp ecx, ebx
mov dword [esp + 0x64], ecx
mov eax, ecx
jne 0x10165580
xor eax, eax
jmp 0x10165596
xor eax, eax
jmp 0x10165533
cmp byte [ecx], bl
je 0x1016558f
lea ecx, [ecx]
mov dl, byte [eax + 1]
inc eax
cmp dl, bl
jne 0x10165587
sub eax, ecx
and eax, 0x3fffffff
cmp eax, ebx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
jbe 0x101655cd
mov eax, dword [esp + 0x98]
mov ecx, dword [eax]
push 1
push 0x5c
push ecx
lea ebx, [esp + 0x70]
call fcn.1014f747
add esp, 0xc
test eax, eax
je 0x101655cb
or byte [eax + 3], 1
mov edx, esi
mov dword [eax + 8], edx
mov esi, eax
xor ebx, ebx
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x20]
mov dword [ecx + eax], esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x4c]
mov edx, dword [edx + 8]
mov cl, byte [ecx + eax + 0xc]
add eax, 0x14
mov byte [esi + edx], cl
mov edx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add edx, 4
cmp esi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], edx
jl 0x101654c7
jmp 0x10165623
mov dword [esp + 0x4c], ebx
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0x98]
push ebx
mov dword [edx + 0x38], edi
mov eax, dword [esi]
push edi
push eax
call fcn.101489e7
mov ecx, dword [esp + 0x4c]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, 0x71
jne 0x1016565a
mov dword [esp + 0x48], ebx
jmp 0x101657cd
mov edx, dword [esp + 0x9c]
mov eax, dword [edx]
mov edi, dword [eax]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
lea eax, [edi + 1]
cmp eax, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edx
jg 0x10165686
add edx, eax
sub ecx, eax
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], ecx
jmp 0x10165695
mov ecx, dword [esi + 0x4c]
lea edx, [ecx + 1]
add eax, ecx
mov dword [esp + 0x14], edx
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x48], eax
cmp dword [ebp + 0x20], esi
jg 0x101656b4
mov edi, ebp
call fcn.101472c7
test eax, eax
mov edi, dword [esp + 0x24]
jne 0x101656dd
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [esp + 0x30]
lea ecx, [edi + edi*4 + 0x10]
mov dword [esp + 0x10], ecx
call fcn.10143be7
mov esi, eax
cmp esi, ebx
je 0x1016570e
mov ecx, dword [esp + 0x10]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x101657cd
mov ecx, dword [esp + 0x30]
lea eax, [esi + edi*4 + 0xc]
mov dword [esi + 8], eax
mov word [esi + 6], di
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
mov cl, byte [eax + 0x4d]
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, ebx
mov byte [esi + 4], cl
jle 0x101657cd
lea edx, [esi + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], edx
jmp 0x10165757
mov eax, dword [esp + 0x9c]
mov eax, dword [eax + 0x3c]
cmp eax, ebx
je 0x10165850
mov ecx, dword [esp + 0x98]
push edi
push eax
push ecx
call fcn.10165297
add esp, 0xc
cmp eax, ebx
jne 0x101657a6
mov edx, dword [esp + 0x9c]
mov ecx, dword [edx]
cmp edi, dword [ecx]
jge 0x101657a6
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [eax + edx]
call fcn.10161267
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esi + 8]
add ecx, 4
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov byte [edi + eax], bl
mov eax, dword [esp + 0x24]
inc edi
add ecx, 0x14
cmp edi, eax
mov dword [esp + 0x14], ecx
jl 0x10165757
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0x98]
mov eax, dword [edi + 0x38]
push 0x10188a4c
push edi
push esi
mov dword [edi + 0x3c], ebx
call fcn.101610b7
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x3c]
add esp, 0xc
cmp ecx, ebx
jne 0x1016580d
push 0x10188a4c
push eax
mov eax, dword [eax + 0x38]
push esi
call fcn.101610b7
add esp, 0xc
mov ecx, dword [esp + 0x44]
push ecx
push edi
push esi
call fcn.10153427
mov eax, dword [edi + 8]
add esp, 0xc
cmp eax, ebx
je 0x101658e0
cmp dword [esp + 0x38], 0x71
jne 0x101658e0
mov eax, dword [esi + 0x4c]
inc eax
mov dword [esp + 0x20], eax
inc eax
mov dword [esi + 0x4c], eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x10165857
inc eax
mov dword [esp + 0x2c], eax
jmp 0x1016585e
xor eax, eax
jmp 0x1016577f
mov edx, dword [edi + 8]
mov dword [esp + 0x2c], edx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10165871
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016589e
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x2c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
mov byte [eax], 0xe
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101658b1
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101658e8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
mov byte [eax], 0xe
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x101658e8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov esi, dword [esp + 0x9c]
mov eax, dword [esi + 0x48]
mov edi, dword [esp + 0x30]
push eax
push edi
call fcn.10148957
mov ecx, dword [esi + 0x4c]
push ecx
push edi
mov dword [esi + 0x48], ebx
call fcn.10148957
mov edi, dword [esp + 0xa8]
mov dword [esi + 0x4c], ebx
mov eax, dword [edi + 0x4c]
add esp, 0x10
inc eax
lea ecx, [eax + 1]
mov dword [esp + 0x18], ecx
inc ecx
lea edx, [ecx + 1]
mov dword [esp + 0x24], edx
add edx, 2
mov dword [edi + 0x4c], edx
mov dword [esp + 0x58], edx
mov dl, 0xa
mov byte [esp + 0x84], dl
mov dword [esp + 0x88], eax
mov byte [esp + 0x85], bl
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov byte [esp + 0x74], dl
mov dword [esp + 0x78], ecx
mov byte [esp + 0x75], bl
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
cmp dword [ebp + 0x20], ecx
mov dword [esp + 0x10], ecx
jg 0x10165999
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10165995
mov dword [esp + 0x6c], 1
jmp 0x101659be
mov ecx, dword [esp + 0x10]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov edx, dword [eax + reloc.WINMM.dll_midiStreamOut]
mov dword [esp + 0x64], edx
lea edx, [esp + 0x84]
push edx
push ecx
push eax
call fcn.1018e397
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x10], eax
jg 0x10165a10
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165a3d
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x18]
inc ecx
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x10165a58
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165a81
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x34]
inc ecx
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax], 4
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
mov edx, dword [esp + 0x14]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edx
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ecx
mov dword [esi + 0xc], ebx
mov ecx, dword [eax + reloc.WINMM.dll_midiStreamOut]
push esi
push eax
mov dword [esp + 0x7c], ecx
call fcn.1018e397
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x10], eax
jg 0x10165ae3
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165b10
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc ecx
mov dword [ebp + 0x1c], ecx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x10165b2b
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165b51
mov eax, dword [esp + 0x10]
inc dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
inc ecx
mov byte [eax], 4
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0xa0]
push edi
push 0xfffffffffffffff0
push ecx
mov ecx, dword [esp + 0xa4]
inc eax
push eax
push edx
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x60]
push esi
push ecx
call fcn.101536c7
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
add esp, 0x20
cmp eax, 0x71
je 0x10165b9a
cmp eax, 0x70
jne 0x10165bd7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0xa0]
push edi
push 0xffffffffffffffef
push edx
push eax
mov eax, dword [esp + 0xa8]
push ecx
lea edx, [esp + 0x88]
push edx
push esi
push eax
mov eax, dword [esp + 0x68]
call fcn.101536c7
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x58]
add esp, 0x20
cmp eax, 0x72
je 0x10165d1d
cmp eax, 0x73
je 0x10165d1d
mov ecx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ecx
mov dword [esp + 0x10], ecx
jg 0x10165c12
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10165c0a
mov dword [esp + 0x1c], 1
jmp 0x10165c3b
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x44]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov byte [eax], 0x1b
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
cmp ecx, eax
mov dword [esp + 0x10], eax
jg 0x10165c60
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165c8d
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc ecx
mov dword [ebp + 0x1c], ecx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x10165ca8
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165cce
mov eax, dword [esp + 0x10]
inc dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x18]
inc ecx
mov byte [eax], 4
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x10], eax
jg 0x10165ce9
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165d0e
mov eax, dword [esp + 0x10]
inc dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [esp + 0x40]
fld qword [ecx + 0x20]
fadd qword [esi + 0x20]
fstp qword [esi + 0x20]
jmp 0x10165d6c
mov ecx, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], ecx
mov dword [esp + 0x10], ecx
jg 0x10165d43
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10165d3b
mov ecx, 1
jmp 0x10165d64
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x44]
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 4]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x38], 0x73
jne 0x10165d97
fld qword [esi + 0x20]
mov edx, dword [esp + 0x20]
fcomp qword [ecx + 0x20]
mov dword [esp + 0x2c], edx
fnstsw ax
test ah, 0x41
jne 0x10165ea6
fld qword [ecx + 0x20]
fstp qword [esi + 0x20]
jmp 0x10165ea6
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10165db4
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10165db4
mov dword [esp + 0x1c], 1
jmp 0x10165de5
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x18]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x44]
mov byte [eax], 0x1b
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
jg 0x10165e00
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165e2e
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
inc ecx
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10165e41
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165e6a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x34]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 4
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10165e7d
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165ea6
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10165ec3
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10165ec3
mov dword [esp + 0x14], 1
jmp 0x10165ef5
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x24]
inc ecx
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x20], esi
jg 0x10165f10
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165f39
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x34]
mov byte [eax], 4
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10165f4c
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165f79
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov byte [eax], 0x1b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10165f8c
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10165fb5
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x50]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x38]
cmp eax, 0x71
jne 0x10165fcb
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x101660a7
cmp eax, 0x73
jne 0x10165fe2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
inc eax
mov dword [esp + 0x10], eax
jmp 0x101660a7
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10165ffc
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10165ffc
mov esi, 1
jmp 0x10166025
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x34]
mov byte [eax], 4
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], esi
mov esi, dword [ebp + 0x1c]
cmp eax, esi
jg 0x1016603e
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016606b
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov byte [eax], 0x1b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016607e
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101660a7
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x50]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x38]
cmp eax, 0x71
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x14], esi
je 0x101660bc
cmp eax, 0x70
jne 0x101660f9
cmp dword [ebp + 0x20], esi
jg 0x101660cc
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101660f9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x58]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x60]
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016610c
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10166136
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
inc ecx
mov byte [eax], 4
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10166149
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10166176
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov byte [eax], 0x1b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10166189
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101661b2
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x50]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x6c]
cmp eax, ebx
jl 0x101661cb
mov ecx, dword [ebp + 0x1c]
cmp ecx, eax
jbe 0x101661cb
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101661de
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10166207
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x18]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016621a
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10166243
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10166256
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10166283
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x34]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x5c]
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10166296
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x101662c4
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
inc ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax], 2
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101662d7
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10166304
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov byte [eax], 0x1b
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10166317
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x10166344
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x1b
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x1016635d
mov edx, dword [esp + 0x50]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [eax], edx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x10166377
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10166377
mov eax, 1
jmp 0x1016639e
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x17
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, esi
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
je 0x101663e7
cmp byte [edi + 0x38], bl
jne 0x101663e7
cmp eax, ebx
jge 0x101663b5
mov eax, dword [ebp + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10147587
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x101663db
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x101663f5
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf1
jmp 0x101663f5
mov ecx, dword [esp + 0x3c]
mov eax, 0xfffffff1
call fcn.10147587
mov eax, dword [esp + 0x7c]
mov esi, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x5c], eax
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x54], ecx
jg 0x10166422
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x10166422
mov esi, 1
jmp 0x10166453
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x54]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov byte [eax], 0x18
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
mov eax, esi
je 0x101664a7
cmp byte [edi + 0x38], bl
jne 0x101664a7
cmp esi, ebx
jge 0x1016646c
mov eax, dword [ebp + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10147587
mov eax, dword [esp + 0x4c]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x10166492
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x101664b5
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x101664b5
mov ecx, dword [esp + 0x4c]
mov eax, 0xfffffff0
call fcn.10147587
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x101664c7
mov eax, dword [ebp + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 1
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x101664da
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016650b
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
mov byte [eax], 0x19
mov byte [eax + 3], bl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov esi, dword [esp + 0x98]
je 0x1016653d
mov edi, dword [esp + 0x28]
mov edx, eax
inc edi
push edx
mov eax, edi
call fcn.1013fb57
mov eax, dword [esi + 0x3c]
add esp, 4
cmp edi, eax
jle 0x1016653d
mov eax, dword [esp + 0x48]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x10166556
mov ecx, dword [esp + 0x44]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [esp + 0xa0]
cmp byte [edx], 5
jne 0x10166583
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x3c]
cmp eax, ebx
je 0x10166576
mov ecx, eax
mov eax, dword [ecx + 0x3c]
cmp eax, ebx
jne 0x1016656d
mov eax, dword [ecx]
push eax
push ebx
push esi
call fcn.1015bfb7
add esp, 0xc
mov ebp, dword [esp + 0x9c]
mov edi, dword [ebp + 0x3c]
cmp edi, ebx
je 0x101665aa
mov ecx, dword [esp + 0x30]
push edi
push ecx
call fcn.10140fd7
mov ecx, dword [esp + 0x38]
add esp, 8
mov eax, edi
call fcn.101394e7
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
push ebx
push eax
mov dword [ebp + 0x3c], edx
movzx edx, byte [ebp + 4]
push ecx
push edx
mov eax, esi
call fcn.10152947
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret