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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
movzx eax, word [ecx]
cmp ax, 0x40
push edi
jle 0x10077a5d
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.10048140
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
movsx edi, ax
shl edi, 6
add edi, 0x27
and edi, 0xfffffff8
lea ebx, [edi + 0x264]
mov ecx, ebx
mov dword [esp + 0x24], esi
call fcn.100414d0
mov dword [esp + 0x18], eax
test eax, eax
je 0x10077a90
push ebx
push 0
push eax
call fcn.100ae530
add esp, 0xc
cmp byte [esi + 0x1e], 0
jne 0x10078066
mov eax, dword [ebp + 0xc]
movsx edx, word [eax]
mov esi, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], edx
mov dword [esi], ebx
call fcn.10043760
mov dword [esi + 0x14], eax
mov ax, word [ebp + 0x18]
add edi, esi
push 0x104
mov dword [esi + 0x1c], edi
mov word [esi + 4], ax
lea esi, [edi + 0x160]
push 0
push esi
mov dword [esp + 0x28], edi
call fcn.100ae530
mov dword [edi], ebx
mov dword [esp + 0x6c], ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
lea edx, [esp + 0x64]
lea ecx, [edi + 0x20]
push ebx
push edx
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 8
mov dword [edi + 0x1c], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0x6c], 0x1006c260
mov dword [esp + 0x70], eax
call fcn.10044070
push 0x45
push ebx
push edi
call fcn.10046380
add esp, 0x20
test ebx, ebx
je 0x10077b55
mov eax, dword [ebp + 0xc]
cmp word [eax], 0
je 0x10077b3e
mov eax, ebx
call fcn.100446e0
test eax, eax
je 0x10077b55
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
push 8
push edx
push ebx
push eax
call fcn.10064220
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp dx, word [ecx]
mov dword [esp + 0x20], 0
jge 0x10077bb3
lea ebx, [ecx + 0x14]
lea ebx, [ebx]
mov eax, dword [esi]
mov edx, dword [ebx + 0xc]
mov dword [esi + eax*4 + 4], edx
inc dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x10077ba0
test byte [eax + 0x22], 0x10
je 0x10077ba0
mov ecx, dword [esp + 0x20]
mov eax, 1
xor edx, edx
call fcn.100af460
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
movsx edx, word [ecx]
inc eax
add ebx, 0x38
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x10077b70
mov esi, dword [edi + 0x14]
sub esi, 1
js 0x10077bd0
mov ebx, dword [ebp + 0xc]
mov edi, edi
push esi
push edi
push ebx
call fcn.1006ee60
add esp, 0xc
sub esi, 1
jns 0x10077bc0
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x1e], 0
jne 0x10078066
mov ebx, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
add ebx, 0x20
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], eax
xor eax, eax
xor ecx, ecx
cmp cx, word [edx]
mov esi, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], esi
jge 0x10077f06
jmp 0x10077c20
fld qword [0x100f7d38]
or edx, 0xffffffff
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
fstp qword [esp + 0x78]
mov dword [esp + 0x44], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x4c], 1
nop
test edx, edx
jge 0x10077e35
xor eax, eax
cmp dword [esp + 0x4c], eax
je 0x10077c86
mov dword [esp + 0x5c], eax
jmp 0x10077c92
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x5c], ecx
mov edi, dword [esp + 0x30]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
lea edx, [edi*8]
sub edx, edi
lea ebx, [eax + edx*8 + 8]
movsx eax, word [eax]
cmp edi, eax
mov esi, edi
mov dword [esp + 0x50], esi
jge 0x10077e1e
mov edx, dword [esp + 0x18]
mov ecx, edi
shl ecx, 6
lea eax, [ecx + edx + 0x5c]
mov dword [esp + 0x48], eax
test byte [ebx + 0x15], 0xa
mov eax, 0
setne al
mov dword [esp + 0x54], eax
cmp esi, edi
je 0x10077ce8
test eax, eax
jne 0x10077e1e
mov eax, dword [esp + 0x1c]
add eax, 0x160
xor ecx, ecx
cmp dword [eax], ecx
mov dword [esp + 0x34], eax
jle 0x10077d15
mov edx, dword [ebx + 0x18]
add eax, 4
cmp dword [eax], edx
je 0x10077d37
mov edi, dword [esp + 0x34]
inc ecx
add eax, 4
cmp ecx, dword [edi]
mov edi, dword [esp + 0x30]
jl 0x10077d01
xor eax, eax
xor edx, edx
and eax, dword [esp + 0x38]
and edx, dword [esp + 0x3c]
or eax, edx
jne 0x10077d45
cmp esi, edi
jne 0x10077e03
inc edi
mov dword [esp + 0x30], edi
jmp 0x10077e03
mov eax, 1
xor edx, edx
call fcn.100af460
jmp 0x10077d19
cmp dword [esp + 0x20], 0
jne 0x10077d57
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10077d57
mov eax, dword [eax]
jmp 0x10077d59
xor eax, eax
mov ecx, dword [ebx + 0xc]
test byte [ecx + 0x22], 0x10
lea ecx, [esp + 0x90]
je 0x10077d8e
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x64]
push edx
mov edx, dword [ebp + 8]
push eax
push ebx
push ecx
push edx
call fcn.1006f780
add esp, 0x20
jmp 0x10077dac
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [ebp + 8]
push eax
push ebx
push ecx
push edx
call fcn.10068ad0
add esp, 0x1c
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
and eax, dword [esp + 0x38]
and ecx, dword [esp + 0x3c]
or eax, ecx
jne 0x10077dfc
cmp esi, edi
je 0x10077ddc
fld qword [esp + 0x78]
fcomp qword [esp + 0xa0]
fnstsw ax
test ah, 0x41
jne 0x10077dfc
mov eax, dword [esp + 0x50]
mov ecx, 0xa
lea esi, [esp + 0x90]
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov esi, eax
cmp dword [esp + 0x54], 0
jne 0x10077e1e
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx]
add dword [esp + 0x48], 0x40
inc esi
add ebx, 0x38
cmp esi, edx
mov dword [esp + 0x50], esi
jl 0x10077ccc
sub dword [esp + 0x4c], 1
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
jns 0x10077c70
mov eax, dword [esp + 0x68]
test eax, 0x1000000
je 0x10077e49
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov ecx, dword [esp + 0x6c]
and dword [esp + 0x2c], eax
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x70]
and eax, 0xf0000
mov dword [esi + 8], ecx
mov dword [esp + 0x54], eax
je 0x10077e76
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [esi + 0x14], ecx
inc dword [eax + 0x44]
jmp 0x10077e7d
mov dword [esi + 0x14], 0xffffffff
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [edi + 0x160], ecx
jle 0x10077eb4
lea eax, [edx*8]
sub eax, edx
mov edx, dword [ebx + eax*8 + 0x20]
lea eax, [edi + 0x164]
lea ecx, [ecx]
cmp dword [eax], edx
je 0x10078042
inc ecx
add eax, 4
cmp ecx, dword [edi + 0x160]
jl 0x10077ea0
xor eax, eax
xor edx, edx
not eax
and dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
lea ecx, [eax*8]
sub ecx, eax
not edx
and dword [esp + 0x3c], edx
mov byte [esi + 0x28], al
mov eax, dword [ebx + ecx*8 + 0x3c]
test eax, eax
je 0x10077ee7
cmp dword [esp + 0x54], 0
je 0x10078053
mov eax, dword [esp + 0x20]
movsx edx, word [ebx]
inc eax
add esi, 0x40
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
jl 0x10077c20
mov ebx, dword [esp + 0x28]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x40], 0
jne 0x10078066
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x1e], 0
jne 0x10078066
mov eax, dword [esp + 0x2c]
and eax, 0x4000000
je 0x10077f39
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10077f39
mov dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x10077f51
test eax, eax
je 0x10077f51
mov edx, dword [esp + 0x18]
and dword [ebx], 0xff7fffff
mov byte [edx + 6], 1
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x10077f5d
mov esi, eax
cmp dword [esi + 0x15c], 0
jne 0x10077fa1
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x10077f8a
mov eax, dword [esi]
call fcn.10049580
mov edi, eax
mov dword [esi + 0xc], eax
test edi, edi
je 0x10077fa1
push 0x84
call fcn.10043660
add esp, 4
push 0
push 0
push 1
mov eax, edi
call fcn.10043700
add esp, 0xc
inc eax
mov dword [esi + 0x15c], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ax, word [ecx]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], ebx
jge 0x10078477
jmp 0x10077fc0
mov edx, dword [ebp + 8]
cmp byte [edx + 0x1d8], 2
jne 0x1007819b
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0x28]
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0x24]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*8 + 0xc]
lea ebx, [edx + ecx*8 + 8]
push eax
push str.TABLE__s
call fcn.10047f80
mov ebx, dword [ebx + 8]
add esp, 8
mov esi, eax
test ebx, ebx
je 0x1007801a
push ebx
push esi
push str._s_AS__s
mov eax, edi
call fcn.10047fa0
add esp, 0xc
mov esi, eax
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, 0xf0000
je 0x1007807c
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push edx
push esi
push str._s_WITH_INDEX__s
mov eax, edi
call fcn.10047fa0
add esp, 0xc
jmp 0x100780d0
mov eax, 1
xor edx, edx
call fcn.100af460
jmp 0x10077eb8
mov eax, dword [eax]
mov esi, dword [ebp + 8]
push eax
push str.cannot_use_index:__s
call fcn.10048140
add esp, 8
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
call fcn.10046690
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x10000000
je 0x10078095
push esi
push str._s_VIA_MULTI_INDEX_UNION
mov eax, edi
call fcn.10047fa0
add esp, 8
jmp 0x100780d0
test eax, 0x3000
je 0x100780ae
push esi
push str._s_USING_PRIMARY_KEY
mov eax, edi
call fcn.10047fa0
add esp, 8
jmp 0x100780d0
test eax, 0x8000000
je 0x100780d2
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
push ecx
push edx
push esi
push str._s_VIRTUAL_TABLE_INDEX__d:_s
mov eax, edi
call fcn.10047fa0
add esp, 0x10
mov esi, eax
test dword [ebx], 0x1000000
je 0x100780ec
push esi
push str._s_ORDER_BY
mov eax, edi
call fcn.10047fa0
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x28]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0xc]
cmp dword [ecx + 0x10], ebx
jg 0x10078118
mov edi, ecx
call fcn.10043580
test eax, eax
je 0x10078116
mov eax, 1
jmp 0x10078149
mov ecx, edi
mov eax, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 0x86
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ecx + 0x6e], dl
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x14]
mov edi, dword [ecx]
test ebx, ebx
je 0x10078191
cmp byte [edi + 0x1e], 0
jne 0x10078191
test eax, eax
jge 0x10078164
mov eax, dword [ecx + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*4 + 0x10]
lea ebx, [ebx + eax*4]
movsx eax, byte [ebx + 1]
call fcn.10043980
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x10078188
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x1007819b
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x1007819b
mov ecx, esi
or eax, 0xffffffff
call fcn.10043980
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + 0x28]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edx*8 + 0x14]
mov edi, dword [esi + 0x44]
lea ebx, [eax + edx*8 + 8]
mov eax, 0xfff0bdc0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], eax
test edi, edi
je 0x100781f2
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x1c], eax
test edx, edx
jle 0x100781f2
mov ecx, dword [ecx + 8]
add ecx, 0xc
cmp dword [ecx], edi
je 0x100781ee
inc eax
add ecx, 0x10
cmp eax, edx
jl 0x100781e2
mov dword [esp + 0x1c], eax
test byte [esi + 0x22], 2
jne 0x1007845b
cmp dword [esi + 0x1c], 0
jne 0x1007845b
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
test ecx, 0x8000000
je 0x100782e4
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x1007822f
nop
mov eax, dword [esp + 0x24]
cmp dword [ebx], eax
je 0x1007822f
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x10078220
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov esi, dword [eax + 0xc]
cmp dword [eax + 0x10], esi
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x28], edx
jg 0x10078258
mov edi, eax
call fcn.10043580
test eax, eax
je 0x10078258
mov eax, 1
jmp 0x10078289
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
xor edx, edx
mov byte [eax], 0x7c
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ecx + 0x6e], dl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x14]
mov edi, dword [ecx]
test esi, esi
je 0x1007836e
cmp byte [edi + 0x1e], 0
jne 0x1007836e
test eax, eax
jge 0x100782ac
mov eax, dword [ecx + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*4 + 0x10]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
call fcn.10043980
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x100782d5
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1007836e
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x1007836e
test ecx, 0x800000
jne 0x10078358
test byte [ebp + 0x18], 0x10
jne 0x10078358
mov edi, dword [esp + 0x18]
mov edx, dword [ebx + 0x18]
xor ecx, ecx
cmp byte [edi + 6], cl
setne cl
add ecx, 0x26
push ecx
mov ecx, dword [ebp + 8]
push eax
push edx
mov eax, esi
call fcn.100534c0
add esp, 0xc
cmp byte [edi + 6], 0
jne 0x1007836e
cmp dword [esi + 0xc], 0x40
jge 0x1007836e
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x1007833f
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x10078332
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
push edx
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.10043b20
add esp, 8
jmp 0x1007836e
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.10044b80
add esp, 0x10
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
test dword [edi], 0xf0000
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x10], ecx
je 0x1007844f
mov esi, dword [edi + 8]
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.10064c50
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0xc]
add esp, 8
cmp dword [eax + 0x10], esi
mov edi, eax
jg 0x100783c6
call fcn.10043580
test eax, eax
je 0x100783c6
mov esi, 1
xor ebx, ebx
jmp 0x100783f5
mov edx, dword [edi + 0x14]
inc dword [edi + 0xc]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ebx
xor ebx, ebx
mov byte [eax], 0x26
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [edi + 0x6e], bl
mov ecx, dword [edi + 0x14]
mov edx, dword [edi]
mov eax, esi
cmp ecx, ebx
je 0x1007843f
cmp byte [edx + 0x1e], 0
jne 0x1007843f
cmp esi, ebx
jge 0x1007840e
mov eax, dword [edi + 0xc]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
mov edi, edx
call fcn.10043980
mov eax, dword [esp + 0x34]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x10078436
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0
jmp 0x1007844f
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x1007844f
mov ecx, dword [esp + 0x34]
mov eax, 0xfffffff0
mov edi, edx
call fcn.10043980
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
call fcn.1005f1e0
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
movsx edx, word [ecx]
add dword [esp + 0x14], 0x40
inc eax
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x10077fc0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x18]
mov edi, dword [ebp + 0xc]
mov dword [edx + 0xc], ecx
xor ecx, ecx
or eax, 0xffffffff
or edx, 0xffffffff
xor esi, esi
cmp cx, word [edi]
jge 0x100784c7
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
add edi, 0x40
push edx
mov edx, dword [ebp + 0x18]
push eax
push edx
mov ecx, esi
mov eax, ebx
call fcn.1006fce0
mov ecx, dword [edi]
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0xc]
movsx ecx, word [ecx]
inc esi
add esp, 0xc
add edi, 0x40
cmp esi, ecx
jl 0x100784a2
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret