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

Disassembly:
sub esp, 0xb8
push esi
mov esi, dword [esp + 0xc4]
test esi, esi
push edi
mov edi, dword [esp + 0xc4]
mov eax, dword [edi]
mov dword [esp + 0x34], 1
mov dword [esp + 8], eax
je 0x100298b3
cmp byte [eax + 0x1e], 0
jne 0x100298b3
cmp dword [edi + 0x40], 0
jne 0x100298b3
push 0
push 0
push 0
push 0x15
push edi
call fcn.10025570
add esp, 0x14
test eax, eax
jne 0x100298b3
push 0x2c
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.1012b3b0
mov edx, dword [esp + 0xd8]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
cmp byte [edx], 4
mov dword [esp + 0x18], ecx
ja 0x10029857
mov dword [esi + 0x1c], 0
mov byte [esi + 5], 0
push 0
push esi
push edi
call fcn.10028d80
add esp, 0xc
test eax, eax
jne 0x1002a4b7
cmp dword [esi + 0x20], 0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
je 0x100298e5
cmp dword [esi + 0x28], 0
jne 0x100298c1
xor ecx, ecx
xor edx, edx
mov eax, esi
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], esi
mov ecx, eax
mov eax, dword [eax + 0x20]
add edx, 1
test eax, eax
jne 0x10029884
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x100298c1
cmp edx, eax
jle 0x100298c1
push str.too_many_terms_in_compound_SELECT
push edi
call fcn.100049d0
add esp, 8
pop edi
mov eax, 1
pop esi
add esp, 0xb8
ret
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xcc]
push edx
push eax
push edi
mov edi, esi
call fcn.10028310
add esp, 0xc
pop edi
pop esi
add esp, 0xb8
ret
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0xc], eax
movzx eax, byte [esi + 5]
mov dword [esp + 0x20], edx
movzx edx, byte [esi + 7]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
je 0x1002a4b7
cmp dword [edi + 0x40], 0
jg 0x1002a4b7
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [esp + 0xcc]
push edx
mov ecx, edi
call fcn.100265e0
add esp, 4
test eax, eax
jne 0x1002a4b7
mov eax, dword [esp + 0xcc]
cmp byte [eax], 4
ja 0x1002995b
mov dword [esp + 0x18], 0
push ebp
push edi
call fcn.10028130
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x1002a4b6
mov ecx, dword [esp + 0x28]
cmp word [ecx], 0
push ebx
mov dword [esp + 0x38], 0
jle 0x10029abe
xor edx, edx
xor ebx, ebx
jmp 0x10029992
xor edx, edx
mov eax, dword [esp + 0x2c]
cmp dword [ebx + eax + 0x18], edx
lea ecx, [ebx + eax + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
je 0x10029aa5
cmp byte [ebx + eax + 0x1c], 0
jne 0x10029aa5
mov eax, dword [ebx + eax + 0xc]
cmp eax, edx
je 0x100299d9
mov edx, dword [edi + 0x18c]
mov dword [esp + 0x24], edx
mov dword [edi + 0x18c], eax
mov dword [esp + 0x1c], 1
jmp 0x100299dd
mov dword [esp + 0x1c], edx
push esi
call fcn.1002ad20
add dword [edi + 0x1a4], eax
mov eax, dword [esp + 0x30]
mov eax, dword [ebx + eax + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc0], eax
xor eax, eax
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
push esi
lea eax, [esp + 0xcc]
mov byte [esp + 0xcc], 9
mov byte [esp + 0xcd], 0
mov edx, dword [ecx]
push eax
push edx
push edi
call fcn.100297d0
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp byte [eax + 0x1e], 0
jne 0x1002a4b5
push esi
call fcn.1002ad20
sub dword [edi + 0x1a4], eax
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x10029a6a
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x18c], ecx
mov ecx, dword [esp + 0xd4]
cmp byte [ecx], 4
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jbe 0x10029a8b
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x20], edx
mov eax, dword [esi + 0x14]
movzx edx, byte [esi + 5]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x38]
movsx eax, word [eax]
add ecx, 1
add ebx, 0x30
cmp ecx, eax
mov dword [esp + 0x38], ecx
jl 0x10029990
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x10029b0c
mov ebx, dword [esp + 0xe0]
test ebx, ebx
je 0x10029b0c
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx]
push ecx
mov ecx, dword [esp + 0xe0]
push edx
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
call fcn.100293f0
add esp, 0x14
test eax, eax
je 0x10029b0c
cmp dword [esp + 0x44], 0
je 0x1002a4b5
mov dword [ebx], 1
jmp 0x1002a4b5
cmp byte [esi + 5], 0
je 0x10029b3d
cmp byte [esi + 7], 0
jne 0x10029b3d
cmp dword [esi + 0x14], 0
jne 0x10029b3d
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.1002aa10
add esp, 8
mov dword [esi + 0x14], eax
mov dword [esp + 0x14], eax
mov byte [esi + 5], 0
xor ebx, ebx
jmp 0x10029b41
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10029b85
push eax
push edi
call fcn.10026a90
mov edx, dword [edi + 0x44]
mov ecx, dword [esp + 0x28]
push 0xfffffffffffffff7
push eax
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x30]
add dword [edi + 0x44], 1
mov edx, dword [eax]
mov eax, dword [eax + 8]
push 0
add edx, 2
push edx
push eax
push 0x70
push ebp
call fcn.10016e40
add esp, 0x24
mov dword [esp + 0x24], eax
mov dword [esi + 0x44], eax
jmp 0x10029b8d
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0xd4]
cmp byte [eax], 9
jne 0x10029baf
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push eax
push 0x70
push ebp
call fcn.10014a90
add esp, 0x10
push ebp
call fcn.10014ab0
push eax
mov dword [esp + 0x94], eax
push esi
mov eax, edi
call fcn.10028170
add esp, 0xc
test ebx, ebx
je 0x10029bf7
mov ebx, dword [edi + 0x44]
lea ecx, [ebx + 1]
mov dword [edi + 0x44], ecx
mov edx, dword [esi]
push edx
push edi
mov dword [esp + 0x40], ebx
call fcn.10026a90
push 0xfffffffffffffff7
push eax
push 0
push 0
push ebx
push 0x70
push ebp
call fcn.10016e40
add esp, 0x24
jmp 0x10029bff
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x44], 0
jne 0x10029c9c
cmp dword [esp + 0x14], 0
jne 0x10029c9c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
push edx
push edi
call fcn.10038000
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1002a4b5
cmp dword [esp + 0x24], 0
jl 0x10029c5e
cmp dword [esp + 0x20], 0
jne 0x10029c5e
mov eax, dword [esp + 0x24]
push 1
push eax
push ebp
call fcn.100167f0
add esp, 0xc
mov dword [esi + 0x44], 0xffffffff
mov ecx, dword [esp + 0xe4]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
push eax
push esi
mov eax, edi
call fcn.10026610
push ebx
call fcn.10036b70
add esp, 0x2c
jmp 0x1002a433
push ebp
call fcn.10014ab0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], ecx
mov dword [esp + 0xb0], edx
je 0x10029d1a
mov ecx, dword [eax]
add ecx, 1
mov dword [esp + 0x58], ecx
jmp 0x10029d22
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
push edx
lea eax, [esp + 0x98]
push eax
call fcn.1002c160
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0xa0]
push edx
call fcn.1002c160
mov eax, dword [esp + 0x40]
add esp, 0x10
test eax, eax
je 0x10029d66
push eax
lea eax, [esp + 0x98]
push eax
call fcn.1002c140
add esp, 8
mov ecx, dword [esp + 0x60]
xor ebx, ebx
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x68], ecx
jle 0x10029dad
mov dword [esp + 0x18], ebx
lea ebx, [ebx]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edx]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.1002c160
add dword [esp + 0x20], 0x10
add ebx, 1
add esp, 8
cmp ebx, dword [esp + 0x70]
jl 0x10029d80
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x1e], 0
jne 0x1002a4b5
xor eax, eax
cmp dword [esp + 0x14], eax
je 0x1002a2ef
push ebp
call fcn.10014ab0
push ebp
mov dword [esp + 0x18], eax
call fcn.10014ab0
push ebp
mov dword [esp + 0x88], eax
call fcn.10014ab0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x5c], eax
push edx
add eax, 1
push edi
mov dword [edi + 0x44], eax
call fcn.10026a90
mov ecx, dword [esp + 0x64]
push 0xfffffffffffffff7
push eax
push 0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
push eax
push ecx
push 0x70
push ebp
call fcn.10016e40
mov ebx, dword [edi + 0x48]
mov edx, dword [esp + 0x44]
add ebx, 1
lea ecx, [ebx + 1]
mov dword [edi + 0x48], ecx
mov dword [esp + 0xc0], eax
mov eax, dword [edx]
add eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x44]
push ecx
mov dword [edi + 0x48], eax
mov edx, dword [edx]
push 0
add edx, eax
push 0x2f
push ebp
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x58], ecx
mov dword [edi + 0x48], edx
call fcn.10014a90
add esp, 0x40
push ebx
push 0
push 0x2f
push ebp
call fcn.10014a90
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x5b
push ebp
call fcn.10014a90
push ebp
call fcn.10014c50
mov ecx, dword [esp + 0x3c]
push ecx
push 1
push 0x2f
push ebp
mov dword [esp + 0x68], eax
call fcn.10014a90
push 0
push 0
push 0x18
push ebp
call fcn.10014a90
add esp, 0x44
push ebp
call fcn.10014c50
mov dword [esp + 0x20], eax
add eax, 2
push eax
push ebx
push 0x7b
push ebp
call fcn.10014a90
push 0
push 0
push 0x18
push ebp
call fcn.10014a90
add esp, 0x24
lea ebx, [esp + 0x4c]
mov eax, edi
call fcn.10029040
cmp dword [esp + 0x30], 0
je 0x10029efc
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push 8
add edx, 1
push edx
push eax
push edi
call fcn.1002e450
add esp, 0x10
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0x40]
add eax, 1
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi]
push edx
push eax
push 0
push 0
push ecx
push esi
mov eax, edi
call fcn.10026610
push 0
push 0
push 0x18
push ebp
call fcn.10014a90
push ebp
call fcn.10014c50
push edi
lea ebx, [esp + 0x8c]
mov dword [esp + 0xc4], eax
call fcn.10028f80
add esp, 0x40
push 0
push 0
push 0x18
push ebp
call fcn.10014a90
mov edx, dword [esp + 0x20]
push edx
push ebp
call fcn.10014b00
mov eax, dword [esp + 0x9c]
push eax
push 0
push 0x2e
push ebp
call fcn.10014a90
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
push 0
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
push edi
call fcn.10038000
add esp, 0x3c
test eax, eax
mov dword [esp + 0x34], eax
je 0x1002a4b5
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10029fc2
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
jmp 0x1002a11b
mov ebx, dword [eax]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
add ebx, 1
test esi, esi
mov dword [esp + 0x30], 1
mov eax, ebx
mov dword [esp + 0x28], ebx
mov edx, ebx
jle 0x1002a006
mov ecx, dword [esp + 0x5c]
add ecx, 0xc
lea ebx, [ebx]
cmp dword [ecx], edx
jl 0x10029ffa
add eax, 1
add edx, 1
add ecx, 0x18
sub esi, 1
jne 0x10029ff0
mov dword [esp + 0x28], eax
push eax
push edi
call fcn.1002b750
mov edx, dword [esp + 0x1c]
mov esi, eax
push 0
push esi
push edx
push edi
mov dword [esp + 0x54], esi
call fcn.1002b4c0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
lea ecx, [esi + eax]
push ecx
push edx
push 5
push ebp
call fcn.10014a90
add esp, 0x28
cmp dword [esp + 0x60], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], 0
jle 0x1002a0b9
mov eax, esi
mov ecx, ebx
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x5c]
xor esi, esi
lea esp, [esp]
mov edx, dword [esp + 0x10]
cmp dword [esi + eax + 0xc], edx
jl 0x1002a0a1
mov ecx, dword [esi + eax + 4]
mov edx, dword [esi + eax + 8]
mov eax, dword [esi + eax]
push 0
push ebx
push ecx
push edx
push eax
push edi
call fcn.1002b140
add esp, 0x18
cmp ebx, eax
je 0x1002a095
push ebx
push eax
push 8
push ebp
call fcn.10014a90
add esp, 0x10
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x5c]
add ebx, 1
mov ecx, dword [esp + 0x38]
add ecx, 1
add esi, 0x18
cmp ecx, dword [esp + 0x60]
mov dword [esp + 0x38], ecx
jl 0x1002a060
mov esi, dword [esp + 0x3c]
push edi
call fcn.1002b690
mov ecx, dword [esp + 0x2c]
mov ebx, eax
push ebx
push ecx
push esi
push 0x55
push ebp
call fcn.100149c0
mov edx, dword [esp + 0x68]
push ebx
push edx
push 0x68
push ebp
call fcn.10014a90
push ebx
push edi
call fcn.1002b730
mov eax, dword [esp + 0x58]
push eax
push esi
push edi
call fcn.1002b7c0
mov ecx, dword [esp + 0x70]
push ecx
call fcn.10036b70
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x90]
add esp, 0x40
push edx
push eax
push 0x12
push ebp
call fcn.10014a90
add esp, 0x10
mov byte [esp + 0x4d], 1
push ebp
call fcn.10014c50
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
xor esi, esi
add esp, 4
cmp dword [eax], esi
jle 0x1002a187
mov dword [esp + 0x28], esi
lea ebx, [ebx]
cmp dword [esp + 0x30], 0
lea ecx, [esi + ebx]
push ecx
je 0x1002a15e
mov edx, dword [esp + 0x54]
push esi
push edx
push 3
push ebp
call fcn.100149c0
add esp, 0x14
jmp 0x1002a177
mov byte [esp + 0x50], 1
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + eax]
push ecx
push edi
call fcn.1002b410
add esp, 0xc
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 0xc
add esi, 1
cmp esi, dword [eax]
jl 0x1002a140
mov esi, dword [eax]
sub esi, 1
js 0x1002a1eb
mov edi, edi
test esi, esi
jne 0x1002a1a9
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
push ebx
push edx
add eax, 1
push eax
push 0x44
jmp 0x1002a1bf
mov ecx, dword [esp + 0x7c]
lea eax, [esi + ebx]
push eax
mov eax, dword [esp + 0x1c]
add eax, 1
push ecx
lea edx, [esi + eax]
push edx
push 0x43
push ebp
call fcn.100149c0
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + esi*4 + 0x10]
add esp, 0x14
push 0xfffffffffffffffc
push ecx
push 0xffffffffffffffff
push ebp
call fcn.10016850
push 0x10
push ebp
call fcn.10014df0
add esp, 0x18
sub esi, 1
jns 0x1002a190
mov edx, dword [esp + 0x7c]
push edx
push ebp
call fcn.10014b00
mov eax, dword [esp + 0x1c]
add esp, 8
cmp dword [eax], 0
mov dword [esp + 0x10], 0
jle 0x1002a23f
mov eax, dword [esp + 0x18]
add eax, 1
sub eax, ebx
mov esi, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x48]
add ecx, esi
push ecx
push esi
push edi
call fcn.1002b320
mov edx, dword [esp + 0x20]
add ebx, 1
add esp, 0xc
add esi, 1
cmp ebx, dword [edx]
jl 0x1002a220
mov ebx, dword [esp + 0x1c]
push ebx
push 0
push 0x2e
push ebp
call fcn.10014a90
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x7b
push ebp
call fcn.10014a90
mov edx, dword [esp + 0xa4]
push edx
push 0
push 0x2e
push ebp
call fcn.10014a90
mov eax, dword [esp + 0xb0]
push eax
push ebp
call fcn.10014b00
lea ecx, [esp + 0x84]
push ecx
mov esi, edi
call fcn.10029090
mov edx, dword [esp + 0xc4]
push edx
push 1
push 0x2f
push ebp
call fcn.10014a90
add esp, 0x4c
cmp dword [esp + 0x30], 0
je 0x1002a2bf
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push 0x67
push ebp
call fcn.10014a90
jmp 0x1002a2d9
mov edx, dword [esp + 0x34]
push edx
call fcn.10036b70
mov eax, dword [esp + 0x94]
push 1
push eax
push ebp
call fcn.100167f0
add esp, 0x10
push ebx
push 0
push 0x2e
push ebp
call fcn.10014a90
add esp, 0x10
jmp 0x1002a425
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.10028d00
mov bl, al
test bl, bl
mov byte [esp + 0x34], bl
je 0x1002a34a
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.1002aa10
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x1002a34a
cmp byte [esi + 0x1e], 0
jne 0x1002a34a
mov eax, dword [eax + 0xc]
cmp bl, 1
setne dl
mov byte [eax + 8], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov byte [eax], 0x95
push edi
lea ebx, [esp + 0x50]
call fcn.10028f80
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
push edi
call fcn.10038000
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1002a389
mov edx, dword [esp + 0x1c]
push edx
call fcn.1002ad40
add esp, 4
jmp 0x1002a4b5
lea eax, [esp + 0x4c]
push eax
mov esi, edi
call fcn.10029090
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x1002a3b7
cmp byte [esp + 0x34], 0
je 0x1002a3b7
mov ecx, dword [ebx + 0x14]
push ecx
push 0
push 0x5b
push ebp
call fcn.10014a90
add esp, 0x10
push ebx
call fcn.10036b70
add esp, 4
lea ebx, [esp + 0x4c]
mov eax, edi
call fcn.10029040
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], 0
je 0x1002a3ec
push 8
push esi
push eax
push edi
call fcn.1002e450
add esp, 0x10
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xd4]
push edx
push esi
push esi
push eax
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
push 0
push 0
push ecx
push eax
mov eax, edi
call fcn.10026610
mov edx, dword [esp + 0x44]
push edx
call fcn.1002ad40
add esp, 0x2c
mov eax, dword [esp + 0x24]
push eax
push ebp
call fcn.10014b00
add esp, 8
cmp dword [esp + 0x20], 0
je 0x1002a45c
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0xd4]
push eax
push ecx
push edi
mov esi, ebp
call fcn.10026b30
add esp, 0x10
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x1002a47c
mov ecx, dword [esp + 0xdc]
mov eax, dword [eax + 0xc]
lea edx, [ecx + ecx*2]
shl edx, 4
mov byte [edx + eax + 0x1c], 1
mov ecx, dword [esp + 0x8c]
push ecx
push ebp
call fcn.10014b00
mov edx, dword [esp + 0xdc]
add esp, 8
cmp byte [edx], 5
mov dword [esp + 0x3c], 0
jne 0x1002a4b5
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.100270b0
add esp, 8
pop ebx
pop ebp
mov edx, dword [esp + 0x54]
push edx
call fcn.10007640
mov eax, dword [esp + 0x68]
push eax
call fcn.10007640
mov eax, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
add esp, 0xb8
ret