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

Disassembly:
sub esp, 0x7c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0xc], 0
call fcn.1002a770
cmp dword [ebx + 0x80c], 0
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
jne 0x1002c6eb
cmp dword [edi + 0x80c], 0
jne 0x1002c6d6
push esi
push 0
push dword [esp + 0x94]
mov ecx, edi
call fcn.1002a930
test byte [esi], 8
jne 0x1002c6e3
mov eax, dword [edi + 0x810]
jmp 0x1002c6e5
xor eax, eax
mov dword [ebx + 0x810], eax
test byte [esi], 8
jne 0x1002d37d
cmp dword [ebx + 0x820], 0
push ebp
mov ebp, dword [esp + 0x94]
je 0x1002c744
cmp ebp, dword [ebx + 0x810]
ja 0x1002c744
cmp dword [ebx + 0x808], 0
jne 0x1002d37c
mov ecx, dword [ebx + 0x818]
test ecx, ecx
je 0x1002c744
mov eax, 0x2040811
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xa
push eax
call fcn.1002a880
test eax, eax
jne 0x1002d37c
cmp dword [edi + 0x80c], 0
jne 0x1002c75e
push esi
push 0
push dword [esp + 0x98]
mov ecx, edi
call fcn.1002a930
test byte [esi], 8
jne 0x1002d37c
mov eax, dword [edi + 0x824]
test eax, eax
je 0x1002c78d
cmp dword [edi + 0x820], 0
jne 0x1002c78d
push esi
shr eax, 8
mov ecx, edi
push eax
push dword [esp + 0x98]
call fcn.1002adf0
test byte [esi], 8
jne 0x1002d37c
cmp ebp, 0x6f0
ja 0x1002c80f
cmp dword [ebx + 0x808], 0
je 0x1002c80f
mov eax, dword [ebx + 0x810]
cmp eax, 0x6f0
ja 0x1002c80f
cmp dword [ebx + 0x820], 0
je 0x1002c7d5
sub ebp, eax
add eax, 4
push ebp
add eax, ebx
push 0
push eax
call fcn.100444c0
add esp, 0xc
jmp 0x1002d363
push esi
push eax
lea eax, [ebx + 4]
mov ecx, edi
push eax
push dword [esp + 0x9c]
call fcn.1002a8a0
cmp ebp, eax
jbe 0x1002c800
sub ebp, eax
add eax, 4
push ebp
add eax, ebx
push 0
push eax
call fcn.100444c0
add esp, 0xc
mov dword [ebx + 0x808], 1
jmp 0x1002d363
xor ebp, ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], ebp
cmp dword [ebx + 0x820], ebp
je 0x1002c8e1
cmp dword [ebx + 0x808], ebp
je 0x1002c866
push esi
push dword [ebx + 0x810]
lea eax, [ebx + 4]
mov ecx, ebx
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0xa0]
call fcn.1002a320
mov edi, dword [ebx + 0x810]
mov dword [esp + 0x14], edi
jmp 0x1002cbae
mov ebp, dword [esp + 0x94]
mov eax, 0x2040811
mov ecx, dword [ebx + 0x818]
mov edi, ebp
mul ebp
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 0xa
test ecx, ecx
je 0x1002c8d6
push 0
call fcn.1002a880
test eax, eax
je 0x1002c8d6
test edi, edi
je 0x1002c8b9
jmp 0x1002c8a0
mov ecx, dword [ebx + 0x818]
cmp edi, dword [ecx + 4]
jge 0x1002c8b6
push edi
call fcn.1000b950
cmp dword [eax], 0
jne 0x1002c8b9
dec edi
jne 0x1002c8a0
lea eax, [edi + 1]
imul edi, eax, 0x7f0
mov eax, dword [ebx + 0x810]
cmp eax, edi
cmovb edi, eax
mov dword [esp + 0x14], edi
jmp 0x1002cbb5
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x1002cbb5
cmp dword [edi + 0x808], ebp
je 0x1002c91f
push esi
push dword [edi + 0x810]
lea eax, [edi + 4]
mov ecx, ebx
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0xa0]
call fcn.1002a320
test byte [esi], 8
jne 0x1002cbaa
mov ecx, dword [edi + 0x810]
mov dword [esp + 0x14], ecx
jmp 0x1002cb9b
xor edi, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
lea esp, [esp]
mov ecx, dword [ebx + 0x818]
mov dword [esp + 0x20], 0
test ecx, ecx
je 0x1002c985
cmp edi, dword [ecx + 4]
jge 0x1002c985
push edi
call fcn.1000b950
cmp dword [eax], 0
je 0x1002c985
mov ecx, dword [ebx + 0x818]
mov dword [esp + 0x30], 0
cmp edi, dword [ecx + 4]
jl 0x1002c969
xor eax, eax
jmp 0x1002c971
push edi
call fcn.1000b950
mov eax, dword [eax]
push esi
push eax
mov dword [esp + 0x20], eax
mov ecx, ebx
lea eax, [esp + 0x54]
push eax
call fcn.1002bbd0
jmp 0x1002c9bc
push esi
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 1
push eax
push dword [esp + 0x98]
mov ecx, ebx
mov dword [esp + 0x24], 0
call fcn.1002a0a0
test byte [esi], 8
mov ecx, 1
mov eax, dword [esp + 0x20]
cmove eax, ecx
mov dword [esp + 0x20], eax
test byte [esi], 8
jne 0x1002ca54
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x818]
cmp edi, dword [ecx + 4]
jl 0x1002c9db
xor ecx, ecx
jmp 0x1002c9ea
push edi
call fcn.1000b950
mov ecx, dword [eax]
mov eax, dword [esp + 0x98]
push esi
push ecx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
call fcn.1002bc40
test byte [esi], 8
jne 0x1002ca54
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x818]
cmp edi, dword [ecx + 4]
jl 0x1002ca13
xor eax, eax
jmp 0x1002ca1b
push edi
call fcn.1000b950
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x60]
call fcn.1001b110
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002ca58
push esi
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ecx
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x818]
call fcn.1000b9f0
mov eax, dword [esp + 0x24]
test byte [esi], 8
jne 0x1002caa3
cmp dword [esp + 0x30], 0
lea ecx, [esp + 0x4c]
push dword [esp + 0x28]
push eax
je 0x1002ca8a
call fcn.1001adb0
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1002ca93
push 1
push 0xfffffc0c
mov ecx, esi
call fcn.1001c1e0
jmp 0x1002ca93
push dword [esp + 0x20]
call fcn.1001b1d0
test byte [esi], 8
jne 0x1002caa3
lea ecx, [esp + 0x4c]
call fcn.1002f520
jmp 0x1002cae1
cmp dword [esp + 0x20], 0
je 0x1002cae1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 1
call fcn.1002f4f0
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [ebx + 0x828]
push 1
push eax
call fcn.10042e10
test dword [esp + 0x64], 0xfffffffe
je 0x1002cae1
lea ecx, [esp + 0x64]
call fcn.1001c060
test byte [esi], 8
jne 0x1002cb8e
test edi, edi
je 0x1002cb44
mov ecx, dword [ebx + 0x818]
lea eax, [edi - 1]
cmp eax, dword [ecx + 4]
jl 0x1002cb00
xor eax, eax
jmp 0x1002cb08
push eax
call fcn.1000b950
mov eax, dword [eax]
push esi
push eax
mov dword [esp + 0x38], eax
mov ecx, ebx
lea eax, [esp + 0x54]
push eax
call fcn.1002bbd0
test byte [esi], 8
jne 0x1002cb8e
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x34]
lea ecx, [esp + 0x54]
call fcn.1001b110
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea ecx, [esp + 0x4c]
call fcn.1002f520
test byte [esi], 8
jne 0x1002cb8e
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x818]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push esi
push eax
push edi
call fcn.1000b9f0
mov eax, dword [esp + 0x28]
inc edi
add eax, 0xfffffffc
add ebp, eax
test byte [esi], 8
jne 0x1002cb8e
cmp ebp, dword [esp + 0x94]
jae 0x1002cb8e
mov eax, dword [esp + 0x98]
cmp ebp, dword [eax + 0x810]
jb 0x1002c930
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], ebp
call fcn.1002f490
test byte [esi], 8
jne 0x1002cbaa
mov dword [ebx + 0x808], 0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x94]
test byte [esi], 8
jne 0x1002d35a
cmp edi, ebp
jae 0x1002cf9b
mov eax, dword [esp + 0x98]
cmp edi, dword [eax + 0x810]
jae 0x1002cf9b
cmp edi, dword [ebx + 0x810]
jae 0x1002cf9b
mov ecx, dword [ebx + 0x818]
mov eax, 0x2040811
mul edi
mov ebp, edi
mov dword [esp + 0x20], 1
sub ebp, edx
shr ebp, 1
add ebp, edx
shr ebp, 0xa
push ebp
call fcn.1002a880
test eax, eax
jne 0x1002cc24
mov ecx, dword [esp + 0x98]
push esi
push ebp
push dword [esp + 0x98]
call fcn.1002af20
test byte [esi], 8
jne 0x1002d35a
lea ecx, [ecx]
cmp edi, dword [esp + 0x94]
jae 0x1002cf9b
mov eax, dword [esp + 0x98]
cmp edi, dword [eax + 0x810]
jae 0x1002cf9b
mov ecx, dword [ebx + 0x818]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
test ecx, ecx
je 0x1002ccaa
cmp ebp, dword [ecx + 4]
jge 0x1002ccaa
push ebp
call fcn.1000b950
cmp dword [eax], 0
je 0x1002ccaa
mov ecx, dword [ebx + 0x818]
push ebp
mov dword [esp + 0x34], 0
call fcn.1002a880
push esi
push eax
mov dword [esp + 0x20], eax
mov ecx, ebx
lea eax, [esp + 0x54]
push eax
call fcn.1002bbd0
jmp 0x1002cce9
push esi
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 1
push eax
push dword [esp + 0x98]
mov ecx, ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
call fcn.1002a0a0
test byte [esi], 8
mov ecx, 1
mov eax, dword [esp + 0x1c]
cmove eax, ecx
mov dword [esp + 0x1c], eax
test byte [esi], 8
jne 0x1002cd81
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x818]
cmp ebp, dword [ecx + 4]
jl 0x1002cd08
xor ecx, ecx
jmp 0x1002cd17
push ebp
call fcn.1000b950
mov ecx, dword [eax]
mov eax, dword [esp + 0x98]
push esi
push ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.1002bc40
test byte [esi], 8
jne 0x1002cd81
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 0x818]
cmp ebp, dword [ecx + 4]
jl 0x1002cd40
xor eax, eax
jmp 0x1002cd48
push ebp
call fcn.1000b950
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x6c]
call fcn.1001b110
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
test eax, eax
je 0x1002cd85
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push esi
push eax
lea eax, [ebp + 1]
push eax
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax + 0x818]
call fcn.1000b9f0
mov edx, dword [esp + 0x34]
test byte [esi], 8
jne 0x1002ceb2
mov eax, dword [ebx + 0x810]
mov ecx, 0x7f0
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x10], ecx
je 0x1002ce32
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.1001b110
mov edi, dword [esp + 0x28]
mov eax, 0x7f0
mov ecx, dword [esp + 0x10]
add edi, 0xfffffffc
sub eax, edi
cmp ecx, eax
cmovae ecx, eax
lea eax, [edi + 4]
add eax, ecx
mov dword [esp + 0x10], ecx
push eax
push 1
push dword [esp + 0x20]
lea ecx, [esp + 0x58]
call fcn.1001b280
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x54]
call fcn.1001b110
mov eax, dword [esp + 0x34]
push dword [esp + 0x10]
add eax, 4
add eax, edi
push eax
mov eax, dword [esp + 0x2c]
add eax, 4
add eax, edi
push eax
call fcn.10043e70
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x20], 0
jmp 0x1002cea2
cmp dword [esp + 0x30], 0
lea eax, [ecx + 4]
push eax
lea ecx, [esp + 0x50]
push edx
je 0x1002ce61
call fcn.1001adb0
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x1002ce6e
push 1
push 0xfffffc0c
mov ecx, esi
call fcn.1001c1e0
jmp 0x1002ce6a
push dword [esp + 0x20]
call fcn.1001b1d0
mov ecx, dword [esp + 0x18]
test byte [esi], 8
jne 0x1002ceb2
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
cmp edx, dword [eax + 0x810]
jb 0x1002cea2
lea eax, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.1001b110
mov eax, dword [esp + 0x3c]
mov dword [eax], 0
test byte [esi], 8
jne 0x1002ceb2
lea ecx, [esp + 0x4c]
call fcn.1002f520
jmp 0x1002cef0
cmp dword [esp + 0x1c], 0
je 0x1002cef0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x78], 1
call fcn.1002f4f0
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [ebx + 0x828]
push 1
push eax
call fcn.10042e10
test dword [esp + 0x78], 0xfffffffe
je 0x1002cef0
lea ecx, [esp + 0x78]
call fcn.1001c060
test byte [esi], 8
jne 0x1002cf89
test ebp, ebp
je 0x1002cf61
mov ecx, dword [ebx + 0x818]
lea eax, [ebp - 1]
push eax
call fcn.1002a880
push esi
push eax
mov dword [esp + 0x38], eax
mov ecx, ebx
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
mov dword [esp + 0x68], 0
call fcn.1002bbd0
test byte [esi], 8
jne 0x1002cf58
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x34]
lea ecx, [esp + 0x60]
call fcn.1001b110
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
lea ecx, [esp + 0x58]
call fcn.1002f520
lea ecx, [esp + 0x58]
call fcn.1002f490
test byte [esi], 8
jne 0x1002cf89
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x818]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push esi
push eax
push ebp
call fcn.1000b9f0
inc ebp
add edi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x64]
call fcn.1002f490
test byte [esi], 8
je 0x1002cc30
test byte [esi], 8
jne 0x1002d35a
cmp edi, dword [esp + 0x94]
jae 0x1002d35a
mov eax, 0x2040811
mov dword [esp + 0x24], 1
mul edi
mov ebp, edi
lea eax, [ebx + 4]
sub ebp, edx
shr ebp, 1
push 0x7f4
add ebp, edx
push 0
shr ebp, 0xa
push eax
mov dword [esp + 0x2c], ebp
call fcn.100444c0
add esp, 0xc
test byte [esi], 8
jne 0x1002d35a
lea eax, [ebp - 1]
mov dword [esp + 0x30], eax
imul eax, ebp, 0x7f0
mov dword [esp + 0x1c], eax
lea esp, [esp]
cmp edi, dword [esp + 0x94]
jae 0x1002d35a
mov ecx, dword [ebx + 0x818]
mov dword [esp + 0x2c], 0
test ecx, ecx
je 0x1002d06c
cmp ebp, dword [ecx + 4]
jge 0x1002d06c
push ebp
call fcn.1000b950
cmp dword [eax], 0
je 0x1002d06c
mov ecx, dword [ebx + 0x818]
mov dword [esp + 0x18], 0
cmp ebp, dword [ecx + 4]
jl 0x1002d054
push esi
xor ebp, ebp
lea eax, [esp + 0x50]
push ebp
push eax
mov ecx, ebx
call fcn.1002bbd0
jmp 0x1002d0a3
push ebp
call fcn.1000b950
push esi
mov ecx, ebx
mov ebp, dword [eax]
lea eax, [esp + 0x50]
push ebp
push eax
call fcn.1002bbd0
jmp 0x1002d0a3
push esi
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], 1
push eax
push dword [esp + 0x98]
mov ecx, ebx
mov dword [esp + 0x30], 0
xor ebp, ebp
call fcn.1002a0a0
test byte [esi], 8
mov eax, ebp
mov ecx, 1
cmove eax, ecx
mov dword [esp + 0x2c], eax
test byte [esi], 8
jne 0x1002d259
mov eax, dword [esp + 0x94]
mov ecx, 0x7f0
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x10], ecx
je 0x1002d219
mov eax, edi
lea ecx, [esp + 0x4c]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push eax
push ebp
call fcn.1001b110
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
lea edi, [ecx - 4]
cmp edi, eax
jbe 0x1002d183
test eax, eax
je 0x1002d183
sub edi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
push ecx
push dword [esp + 0x38]
cmovae eax, edi
mov dword [esp + 0x18], eax
lea eax, [ebx + 4]
push eax
call fcn.10043e70
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
add eax, 8
push edi
add eax, ebx
push 0
push eax
call fcn.100444c0
mov eax, dword [esp + 0x30]
lea ecx, [ebx + 4]
add esp, 0x18
mov dword [ecx], 0
add eax, 4
add eax, edi
push eax
push ecx
push ebp
lea ecx, [esp + 0x58]
call fcn.1001b1d0
test eax, eax
jne 0x1002d168
push 1
push 0xfffffc0c
mov ecx, esi
call fcn.1001c1e0
mov edi, dword [esp + 0x14]
test byte [esi], 8
jne 0x1002d259
lea ecx, [esp + 0x4c]
call fcn.1002f520
jmp 0x1002d297
mov ecx, dword [esp + 0x14]
cmp ecx, dword [ebx + 0x810]
jb 0x1002d19c
mov eax, dword [esp + 0x1c]
xor edx, edx
add eax, edi
cmp eax, ecx
cmovne edi, edx
mov ecx, dword [esp + 0x10]
mov eax, 0x7f0
sub eax, edi
cmp ecx, eax
cmovae ecx, eax
mov dword [esp + 0x10], ecx
lea eax, [edi + ecx]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x4c]
add eax, 4
push eax
push 1
push ebp
call fcn.1001b280
lea eax, [esp + 0x34]
push eax
push ebp
lea ecx, [esp + 0x54]
call fcn.1001b110
cmp dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
mov dword [eax], 0
jne 0x1002d1f3
mov eax, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x10], eax
jmp 0x1002d1f7
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x38]
add eax, 4
add eax, edi
push 0
push eax
call fcn.100444c0
add esp, 0xc
mov dword [esp + 0x24], 0
jmp 0x1002d168
cmp dword [esp + 0x18], 0
lea eax, [ecx + 4]
push eax
lea eax, [ebx + 4]
lea ecx, [esp + 0x50]
push eax
je 0x1002d24e
call fcn.1001adb0
mov ebp, eax
test ebp, ebp
jne 0x1002d16c
push 1
push 0xfffffc0c
mov ecx, esi
call fcn.1001c1e0
jmp 0x1002d16c
push ebp
call fcn.1001b1d0
jmp 0x1002d16c
cmp dword [esp + 0x2c], 0
je 0x1002d297
lea ecx, [esp + 0x4c]
mov dword [esp + 0x78], 1
call fcn.1002f4f0
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [ebx + 0x828]
push 1
push eax
call fcn.10042e10
test dword [esp + 0x78], 0xfffffffe
je 0x1002d297
lea ecx, [esp + 0x78]
call fcn.1001c060
test byte [esi], 8
jne 0x1002d34d
cmp dword [esp + 0x20], 0
je 0x1002d313
mov ecx, dword [ebx + 0x818]
mov eax, dword [esp + 0x30]
cmp eax, dword [ecx + 4]
jl 0x1002d2ba
xor eax, eax
jmp 0x1002d2c2
push eax
call fcn.1000b950
mov eax, dword [eax]
push esi
push eax
mov dword [esp + 0x34], eax
mov ecx, ebx
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
mov dword [esp + 0x68], 0
call fcn.1002bbd0
test byte [esi], 8
jne 0x1002d30a
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x30]
lea ecx, [esp + 0x60]
call fcn.1001b110
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x58]
mov dword [eax], ebp
call fcn.1002f520
lea ecx, [esp + 0x58]
call fcn.1002f490
test byte [esi], 8
jne 0x1002d34d
mov ecx, dword [ebx + 0x818]
lea eax, [esp + 0x2c]
push esi
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x24]
push eax
push ebp
call fcn.1000b9f0
add dword [esp + 0x1c], 0x7f0
inc ebp
inc dword [esp + 0x30]
add edi, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], edi
jmp 0x1002d351
mov ebp, dword [esp + 0x20]
test byte [esi], 8
je 0x1002d000
lea ecx, [esp + 0x4c]
call fcn.1002f490
test byte [esi], 8
jne 0x1002d37c
mov dword [ebx + 0x80c], 1
mov dword [ebx + 0x820], 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x7c
ret 0x10