Function at 0x1002a408
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 0x100c39ee
call fcn.100c0df0
sub esp, 0x544
push ebx
push esi
push edi
mov ebx, ecx
call fcn.10029fa7
mov ecx, dword [ebx + 0x18]
push 0x200
lea edx, [ebp - 0x350]
call fcn.10009c6f
test eax, eax
jne 0x1002ae3f
lea esi, [ebx + 0x20]
lea eax, [ebp - 0x350]
push eax
mov ecx, esi
call fcn.100288b3
test al, al
je 0x1002ae3c
mov eax, dword [ebx + 0x18]
lea edx, [ebp - 0x20]
push edx
push 2
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1002ae3f
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
call fcn.100c0fc0
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x60], eax
cmp edi, edx
mov dword [ebx + 0x64], edx
ja 0x1002a49e
jb 0x1002ae3c
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x60]
jb 0x1002ae3c
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi]
add eax, 1
adc edx, 0
call fcn.100c0fc0
cmp edi, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
jb 0x1002a527
ja 0x1002a4c2
cmp dword [ebp - 0x20], eax
jb 0x1002a527
mov eax, dword [ebx + 0x18]
mov ecx, dword [esi]
mov edx, dword [ebx + 0x34]
push 0
mov edi, dword [eax]
mov eax, dword [ebx + 0x30]
push 0
call fcn.100c0fc0
push edx
push eax
push dword [ebx + 0x18]
call dword [edi + 0x10]
test eax, eax
jne 0x1002ae3f
mov ecx, dword [ebx + 0x18]
mov edi, 0x200
push edi
lea edx, [ebp - 0x550]
call fcn.10009c6f
test eax, eax
jne 0x1002a527
lea eax, [ebp - 0x550]
push edi
push eax
lea eax, [ebp - 0x350]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1002a527
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x64], eax
push dword [ebx + 0x44]
mov ecx, ebx
push dword [ebx + 0x40]
call fcn.10029f81
lea ecx, [ebp - 0xe8]
call fcn.1002aed6
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
mov edi, 0x1000
lea ecx, [ebx + 0x6c]
push edi
mov byte [ebp - 4], 1
call fcn.10009bed
mov edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x18]
push edi
call fcn.10009c6f
mov edi, eax
test edi, edi
jne 0x1002a6cb
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax + 0x1c]
call fcn.10028a25
mov edx, dword [esi]
cmp eax, edx
jge 0x1002a594
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002a6a8
jmp 0x1002a6a2
cmp eax, 0xf
mov dword [ebx + 0x58], eax
ja 0x1002a580
mov ecx, eax
push 1
sub ecx, edx
pop eax
shl eax, cl
mov ecx, dword [ebx + 0x6c]
xor edi, edi
push edi
push edi
push eax
push edx
push ecx
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x14], eax
call fcn.10029ce5
test al, al
je 0x1002a5e0
cmp dword [ebp - 0xe8], 0x454c4946
jne 0x1002a5e0
lea ecx, [ebp - 0xe8]
call fcn.100296a5
cmp dword [ebp - 0xb4], edi
jne 0x1002a5eb
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
cmp eax, edi
jmp 0x1002a589
lea ecx, [ebp - 0x18]
mov eax, dword [ebx + 0x18]
push ecx
lea ecx, [ebp - 0xe8]
push dword [ebx + 0x3c]
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push edi
push eax
call fcn.1002979d
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x1002a628
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
cmp eax, edi
je 0x1002a620
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x1c]
jmp 0x1002adfa
cmp dword [ebp - 0x18], edi
je 0x1002a6a8
mov eax, dword [ebp - 0xd0]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x1c]
mov eax, dword [eax]
mov edi, dword [eax + 0x30]
mov dword [ebp - 0x44], edi
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x18]
call fcn.100c0fc0
push 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x40]
pop ecx
mov eax, edi
call fcn.100c0f20
cmp edx, dword [ebp - 0x1c]
jb 0x1002a66e
ja 0x1002a69b
cmp eax, dword [ebp - 0x20]
ja 0x1002a69b
mov ecx, dword [ebx + 0x58]
push 1
pop eax
shl eax, cl
cmp eax, 0x8000
mov dword [ebp - 0x1c], eax
ja 0x1002a69b
mov edx, dword [ebp - 0x40]
mov eax, edi
call fcn.100c0f20
test edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
ja 0x1002a69b
cmp eax, 0x40000000
jbe 0x1002a6b0
and byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop esi
jmp 0x1002adfa
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x1002a6e3
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
je 0x1002a6e3
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002a6dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x1002adfa
mov edi, 0x8000
lea ecx, [ebx + 0x6c]
push edi
call fcn.10009bed
mov eax, dword [ebp - 0x28]
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x30], eax
call fcn.1002c5bb
push dword [ebp - 0x30]
lea ecx, [ebx + 0xc]
call fcn.10022e37
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1002a747
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
and eax, 0x3ff
xor edx, edx
or eax, edx
jne 0x1002a747
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x28]
push edx
push ecx
call dword [eax + 0x10]
test eax, eax
mov dword [ebp - 0x30], eax
jne 0x1002a803
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edi
sbb ecx, dword [ebp - 0x38]
mov dword [ebp - 0x5c], ecx
jne 0x1002a762
cmp eax, edi
jae 0x1002a762
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jb 0x1002a82b
mov edx, dword [ebx + 0x6c]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.10009c6f
mov edi, eax
test edi, edi
jne 0x1002a6cb
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x3c], eax
adc dword [ebp - 0x38], edi
mov eax, dword [ebx + 0x6c]
lea ecx, [ebp - 0x150]
add eax, edi
mov dword [ebp - 0x30], eax
call fcn.1002aed6
mov eax, dword [ebx + 0x10]
xor ecx, ecx
cmp eax, 3
mov byte [ebp - 4], 2
jne 0x1002a7b1
lea ecx, [ebx + 0x74]
push ecx
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x150]
push dword [esi]
push dword [ebp - 0x30]
call fcn.10029ce5
test al, al
je 0x1002ae0d
lea eax, [ebp - 0x150]
lea ecx, [ebx + 0xc]
push eax
call fcn.1002c523
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.1002af36
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x10], eax
add edi, eax
cmp dword [ebp - 0x10], eax
jae 0x1002a78d
mov edi, 0x8000
jmp 0x1002a712
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002a814
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002af36
mov eax, dword [ebp - 0x30]
jmp 0x1002ae3f
and dword [ebp - 0x10], 0
cmp dword [ebx + 0x10], 0
jbe 0x1002a8cc
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x10]
mov esi, dword [edx + eax*4]
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov ecx, edi
or ecx, eax
je 0x1002a8bd
mov ecx, eax
mov dword [ebp - 0x20], edi
and ecx, 0xffff
xor edi, edi
cmp ecx, edi
ja 0x1002a580
jb 0x1002a871
mov ecx, dword [ebx + 0x10]
cmp dword [ebp - 0x20], ecx
ja 0x1002a580
mov ecx, dword [ebp - 0x20]
shr eax, 0x10
mov edx, dword [edx + ecx*4]
cmp word [edx + 4], ax
jne 0x1002a88c
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x1002a88c
mov cl, 1
jmp 0x1002a88e
xor cl, cl
mov al, byte [esi + 6]
and al, 1
je 0x1002a8a5
test byte [edx + 6], 1
je 0x1002a8a5
test cl, cl
je 0x1002a580
jmp 0x1002a8b1
test al, al
jne 0x1002a8af
test byte [edx + 6], 1
je 0x1002a8b1
xor cl, cl
test cl, cl
je 0x1002a8bd
push esi
mov ecx, edx
call fcn.1002aea1
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x10]
jb 0x1002a839
xor esi, esi
cmp dword [ebx + 0x10], esi
jbe 0x1002a8e4
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
call fcn.100296a5
inc esi
cmp esi, dword [ebx + 0x10]
jb 0x1002a8d3
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x10], 0
test eax, eax
jbe 0x1002ab4a
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x10]
mov esi, dword [eax + ecx*4]
mov dword [ebp - 0x30], esi
cmp dword [esi], 0x454c4946
jne 0x1002ab3b
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x1002ab3b
cmp ecx, 0x10
jae 0x1002a929
cmp byte [ebx + 0x94], 0
je 0x1002ab3b
test byte [esi + 6], 1
jne 0x1002a93c
cmp byte [ebx + 0x95], 0
je 0x1002ab3b
mov eax, dword [esi + 0x28]
or dword [ebp - 0x1c], 0xffffffff
mov dword [esi + 0x10], eax
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x1002a97e
mov edi, dword [esi + 0x34]
and dword [ebp - 0x14], 0
test edi, edi
jbe 0x1002a97e
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
mov ecx, dword [edx + ecx*4]
cmp dword [ecx + 8], 0
je 0x1002a978
inc dword [ebp - 0x14]
add eax, 8
cmp dword [ebp - 0x14], edi
jb 0x1002a960
jmp 0x1002a97e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp dword [esi + 0x28], eax
jne 0x1002aa1e
cmp dword [ebp - 0x10], 0x10
jae 0x1002a9cd
cmp dword [esi + 0x34], eax
mov dword [ebp - 0x14], eax
jbe 0x1002aa1e
mov edi, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
mov eax, dword [edi + eax*4]
cmp byte [eax + 0x14], 0
je 0x1002a9b4
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x1002a9b9
mov ecx, dword [eax + 0x10]
xor eax, eax
or ecx, eax
jne 0x1002a9cd
inc dword [ebp - 0x14]
add edx, 8
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x34]
jb 0x1002a9a1
jmp 0x1002aa1e
lea ecx, [esi + 0x24]
call fcn.1002c4a5
mov edi, eax
lea edx, [ebp - 0x80]
or dword [edi], 0xffffffff
or dword [edi + 4], 0xffffffff
mov al, byte [str._NONAME__]
test al, al
mov byte [ebp - 0x80], al
je 0x1002aa02
mov ecx, str._NONAME__
lea eax, [ebp - 0x80]
sub ecx, eax
mov al, byte [edx + ecx + 1]
inc edx
test al, al
mov byte [edx], al
jne 0x1002a9f7
mov ecx, dword [ebp - 0x10]
call fcn.100011e3
lea eax, [ebp - 0x80]
lea ecx, [edi + 8]
push eax
call fcn.10002b3a
and dword [edi + 0x10], 0
mov byte [edi + 0x14], 3
and dword [ebp - 0x14], 0
cmp dword [esi + 0x28], 0
jbe 0x1002ab3b
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1002ae5c
test eax, eax
jl 0x1002aa42
dec dword [esi + 0x10]
jmp 0x1002ab29
mov eax, dword [ebp - 0x14]
or dword [ebp - 0x4c], 0xffffffff
or dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov al, byte [esi + 6]
shr al, 1
test al, 1
je 0x1002aa68
mov dword [ebp - 0x50], 0xfffffffe
jmp 0x1002aa78
mov eax, dword [ebp - 0x1c]
test eax, eax
jge 0x1002aa75
or dword [ebp - 0x50], 0xffffffff
jmp 0x1002aa78
mov dword [ebp - 0x50], eax
cmp dword [esi + 0x14], 0
jge 0x1002aa84
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
mov ecx, ebx
call fcn.1002c9c7
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push 5
lea esi, [ebp - 0x58]
lea eax, [eax + eax*4]
and dword [ebp - 0x24], 0
lea edi, [ecx + eax*4]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x48], eax
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x30]
mov dword [ebx + 4], ecx
cmp dword [eax + 0x34], 0
jbe 0x1002ab29
mov esi, dword [ebp - 0x30]
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x1002aacb
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
je 0x1002ab1e
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x10], 8
mov eax, dword [eax + ecx*8]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + eax*4]
lea ecx, [eax + 4]
jne 0x1002aaf1
mov edx, str._Bad
call fcn.10002bcb
test al, al
jne 0x1002ab1e
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov byte [ebx + 0xbc], 1
mov dword [ebp - 0x50], eax
call fcn.1002c9c7
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push 5
lea esi, [ebp - 0x58]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4]
pop ecx
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 4]
mov esi, dword [ebp - 0x30]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi + 0x34]
jb 0x1002aab7
inc dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x28]
jb 0x1002aa2c
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x10]
jb 0x1002a8f3
cmp dword [ebx + 0x10], 9
jbe 0x1002ac58
mov eax, dword [ebx + 0xc]
and dword [ebp - 0x14], 0
mov esi, dword [eax + 0x24]
cmp dword [esi + 0x34], 0
jbe 0x1002ac58
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x14]
mov edx, str._SDS
mov eax, dword [eax + ecx*8]
mov ecx, dword [esi + 0x18]
mov edi, dword [ecx + eax*4]
lea ecx, [edi + 4]
call fcn.10002bcb
test al, al
jne 0x1002ab98
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x34]
jb 0x1002ab68
jmp 0x1002ac58
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebx + 0x18]
push ecx
mov ecx, esi
push dword [ebx + 0x3c]
mov byte [ebp - 4], 3
push dword [ebx + 0x38]
push dword [ebx + 0x24]
push dword [ebp - 0x14]
push eax
call fcn.1002979d
mov esi, eax
test esi, esi
je 0x1002abec
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test eax, eax
je 0x1002abd2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002adfa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1002adfa
cmp dword [ebp - 0x24], 0
je 0x1002ac47
cmp byte [edi + 0x14], 0
je 0x1002ac00
mov eax, dword [edi + 0x30]
mov edi, dword [edi + 0x34]
jmp 0x1002ac05
mov eax, dword [edi + 0x10]
xor edi, edi
test edi, edi
ja 0x1002ac47
jb 0x1002ac12
cmp eax, 0x20000000
jae 0x1002ac47
lea ecx, [eax + 1]
test ecx, 0x40000
je 0x1002ac47
lea edi, [eax - 0x40000]
lea esi, [ebx + 0x80]
push edi
mov ecx, esi
call fcn.10009bed
mov edx, dword [esi]
mov ecx, dword [ebp - 0x24]
push edi
call fcn.10009c6f
test eax, eax
jne 0x1002ac47
mov ecx, ebx
call fcn.1002af03
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test eax, eax
je 0x1002ac58
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and byte [ebp - 0x2a], 0
and byte [ebp - 0x29], 0
and dword [ebp - 0x10], 0
cmp dword [ebx + 4], 0
jbe 0x1002ad23
and dword [ebp - 0x1c], 0
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebx + 0xc]
add ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov eax, dword [eax + 0x24]
mov eax, dword [eax + edx*4]
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x60], edx
mov edx, edi
mov eax, dword [ebp - 0x60]
and edx, 0xffff
cmp eax, 5
mov dword [ebp - 0x28], eax
jne 0x1002acb2
test edx, edx
jne 0x1002acb2
or dword [ecx + 0xc], 0xffffffff
jmp 0x1002ad10
xor eax, eax
cmp edx, eax
ja 0x1002acf0
jb 0x1002acc2
mov eax, dword [ebx + 0x10]
cmp dword [ebp - 0x28], eax
jae 0x1002acf0
mov eax, dword [ebp - 0x28]
mov eax, dword [esi + eax*4]
mov dl, byte [eax + 6]
shr dl, 1
test dl, 1
je 0x1002acf0
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x1002acf0
lea edx, [eax + eax*4]
mov eax, dword [ebx]
shr edi, 0x10
mov eax, dword [eax + edx*4]
mov esi, dword [esi + eax*4]
cmp word [esi + 4], di
je 0x1002ad0a
mov eax, dword [ebp - 0x30]
test byte [eax + 6], 1
je 0x1002ad01
mov byte [ebp - 0x2a], 1
push 0xfffffffffffffffe
jmp 0x1002ad07
mov byte [ebp - 0x29], 1
push 0xfffffffffffffffd
pop eax
jmp 0x1002ad0d
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
inc dword [ebp - 0x10]
add dword [ebp - 0x1c], 0x14
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 4]
jb 0x1002ac72
cmp byte [ebx + 0x94], 0
mov esi, dword [ebx + 4]
je 0x1002ad6a
mov dword [ebx + 0xb0], esi
push dword [0x100e73ac]
lea ecx, [ebp - 0x20]
inc esi
call fcn.10002abe
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 4
call fcn.1002c5eb
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
je 0x1002ad6a
push dword [ebp - 0x20]
call fcn.100032e0
pop ecx
cmp byte [ebp - 0x2a], 0
je 0x1002adab
mov dword [ebx + 0xb4], esi
push dword [0x100e73b0]
lea ecx, [ebp - 0x20]
inc esi
call fcn.10002abe
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 5
call fcn.1002c5eb
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
je 0x1002adab
push dword [ebp - 0x20]
call fcn.100032e0
pop ecx
cmp byte [ebp - 0x29], 0
je 0x1002ade7
mov dword [ebx + 0xb8], esi
push dword [0x100e73b4]
lea ecx, [ebp - 0x34]
call fcn.10002abe
lea eax, [ebp - 0x34]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 6
call fcn.1002c5eb
cmp dword [ebp - 0x34], 0
je 0x1002ade7
push dword [ebp - 0x34]
call fcn.100032e0
pop ecx
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002adf8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002af36
mov eax, esi
jmp 0x1002ae3f
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.1002af36
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002ae2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002af36
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret