Function at 0x1002b9f6
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 0x100d7242
call fcn.100d39f0
sub esp, 0x544
push ebx
push esi
push edi
mov ebx, ecx
call fcn.1002b5bd
mov ecx, dword [ebx + 0x18]
push 0x200
lea edx, [ebp - 0x350]
call fcn.1006dc5d
test eax, eax
jne 0x1002c42d
lea esi, [ebx + 0x20]
lea eax, [ebp - 0x350]
push eax
mov ecx, esi
call fcn.10029e93
test al, al
je 0x1002c42a
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 0x1002c42d
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
call fcn.100d3bc0
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x60], eax
cmp edi, edx
mov dword [ebx + 0x64], edx
ja 0x1002ba8c
jb 0x1002c42a
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x60]
jb 0x1002c42a
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi]
add eax, 1
adc edx, 0
call fcn.100d3bc0
cmp edi, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
jb 0x1002bb15
ja 0x1002bab0
cmp dword [ebp - 0x20], eax
jb 0x1002bb15
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.100d3bc0
push edx
push eax
push dword [ebx + 0x18]
call dword [edi + 0x10]
test eax, eax
jne 0x1002c42d
mov ecx, dword [ebx + 0x18]
mov edi, 0x200
push edi
lea edx, [ebp - 0x550]
call fcn.1006dc5d
test eax, eax
jne 0x1002bb15
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 0x1002bb15
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.1002b597
lea ecx, [ebp - 0xe8]
call fcn.1002c4c4
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.1000446d
mov edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x18]
push edi
call fcn.1006dc5d
mov edi, eax
test edi, edi
jne 0x1002bcb9
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax + 0x1c]
call fcn.1001bb85
mov edx, dword [esi]
cmp eax, edx
jge 0x1002bb82
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002bc96
jmp 0x1002bc90
cmp eax, 0xf
mov dword [ebx + 0x58], eax
ja 0x1002bb6e
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.1002b2fb
test al, al
je 0x1002bbce
cmp dword [ebp - 0xe8], 0x454c4946
jne 0x1002bbce
lea ecx, [ebp - 0xe8]
call fcn.1006dc5d
cmp dword [ebp - 0xb4], edi
jne 0x1002bbd9
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
cmp eax, edi
jmp 0x1002bb77
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.1002ad67
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x1002bc16
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
cmp eax, edi
je 0x1002bc0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x1c]
jmp 0x1002c3e8
cmp dword [ebp - 0x18], edi
je 0x1002bc96
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.100d3bc0
push 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x40]
pop ecx
mov eax, edi
call fcn.100d3b20
cmp edx, dword [ebp - 0x1c]
jb 0x1002bc5c
ja 0x1002bc89
cmp eax, dword [ebp - 0x20]
ja 0x1002bc89
mov ecx, dword [ebx + 0x58]
push 1
pop eax
shl eax, cl
cmp eax, 0x8000
mov dword [ebp - 0x1c], eax
ja 0x1002bc89
mov edx, dword [ebp - 0x40]
mov eax, edi
call fcn.100d3b20
test edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
ja 0x1002bc89
cmp eax, 0x40000000
jbe 0x1002bc9e
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 0x1002c3e8
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x1002bcd1
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 0x1002bcd1
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002bcca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x1002c3e8
mov edi, 0x8000
lea ecx, [ebx + 0x6c]
push edi
call fcn.1000446d
mov eax, dword [ebp - 0x28]
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x30], eax
call fcn.1002db97
push dword [ebp - 0x30]
lea ecx, [ebx + 0xc]
call fcn.1004d562
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1002bd35
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 0x1002bd35
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 0x1002bdf1
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 0x1002bd50
cmp eax, edi
jae 0x1002bd50
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jb 0x1002be19
mov edx, dword [ebx + 0x6c]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.1006dc5d
mov edi, eax
test edi, edi
jne 0x1002bcb9
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.1002c4c4
mov eax, dword [ebx + 0x10]
xor ecx, ecx
cmp eax, 3
mov byte [ebp - 4], 2
jne 0x1002bd9f
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.1002b2fb
test al, al
je 0x1002c3fb
lea eax, [ebp - 0x150]
lea ecx, [ebx + 0xc]
push eax
call fcn.1002daff
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.1002c524
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x10], eax
add edi, eax
cmp dword [ebp - 0x10], eax
jae 0x1002bd7b
mov edi, 0x8000
jmp 0x1002bd00
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002be02
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002c524
mov eax, dword [ebp - 0x30]
jmp 0x1002c42d
and dword [ebp - 0x10], 0
cmp dword [ebx + 0x10], 0
jbe 0x1002beba
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 0x1002beab
mov ecx, eax
mov dword [ebp - 0x20], edi
and ecx, 0xffff
xor edi, edi
cmp ecx, edi
ja 0x1002bb6e
jb 0x1002be5f
mov ecx, dword [ebx + 0x10]
cmp dword [ebp - 0x20], ecx
ja 0x1002bb6e
mov ecx, dword [ebp - 0x20]
shr eax, 0x10
mov edx, dword [edx + ecx*4]
cmp word [edx + 4], ax
jne 0x1002be7a
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x1002be7a
mov cl, 1
jmp 0x1002be7c
xor cl, cl
mov al, byte [esi + 6]
and al, 1
je 0x1002be93
test byte [edx + 6], 1
je 0x1002be93
test cl, cl
je 0x1002bb6e
jmp 0x1002be9f
test al, al
jne 0x1002be9d
test byte [edx + 6], 1
je 0x1002be9f
xor cl, cl
test cl, cl
je 0x1002beab
push esi
mov ecx, edx
call fcn.1002c48f
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x10]
jb 0x1002be27
xor esi, esi
cmp dword [ebx + 0x10], esi
jbe 0x1002bed2
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
call fcn.1006dc5d
inc esi
cmp esi, dword [ebx + 0x10]
jb 0x1002bec1
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x10], 0
test eax, eax
jbe 0x1002c138
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 0x1002c129
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x1002c129
cmp ecx, 0x10
jae 0x1002bf17
cmp byte [ebx + 0x94], 0
je 0x1002c129
test byte [esi + 6], 1
jne 0x1002bf2a
cmp byte [ebx + 0x95], 0
je 0x1002c129
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 0x1002bf6c
mov edi, dword [esi + 0x34]
and dword [ebp - 0x14], 0
test edi, edi
jbe 0x1002bf6c
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
mov ecx, dword [edx + ecx*4]
cmp dword [ecx + 0xc], 0
je 0x1002bf66
inc dword [ebp - 0x14]
add eax, 8
cmp dword [ebp - 0x14], edi
jb 0x1002bf4e
jmp 0x1002bf6c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp dword [esi + 0x28], eax
jne 0x1002c00c
cmp dword [ebp - 0x10], 0x10
jae 0x1002bfbb
cmp dword [esi + 0x34], eax
mov dword [ebp - 0x14], eax
jbe 0x1002c00c
mov edi, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
mov eax, dword [edi + eax*4]
cmp byte [eax + 4], 0
je 0x1002bfa2
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x1002bfa7
mov ecx, dword [eax + 0x14]
xor eax, eax
or ecx, eax
jne 0x1002bfbb
inc dword [ebp - 0x14]
add edx, 8
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x34]
jb 0x1002bf8f
jmp 0x1002c00c
lea ecx, [esi + 0x24]
call fcn.1002da81
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 0x1002bff0
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 0x1002bfe5
mov ecx, dword [ebp - 0x10]
call fcn.1006dc5d
lea eax, [ebp - 0x80]
lea ecx, [edi + 8]
push eax
call fcn.1006dc5d
and dword [edi + 0x10], 0
mov byte [edi + 0x14], 3
and dword [ebp - 0x14], 0
cmp dword [esi + 0x28], 0
jbe 0x1002c129
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1002c44a
test eax, eax
jl 0x1002c030
dec dword [esi + 0x10]
jmp 0x1002c117
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 0x1002c056
mov dword [ebp - 0x50], 0xfffffffe
jmp 0x1002c066
mov eax, dword [ebp - 0x1c]
test eax, eax
jge 0x1002c063
or dword [ebp - 0x50], 0xffffffff
jmp 0x1002c066
mov dword [ebp - 0x50], eax
cmp dword [esi + 0x14], 0
jge 0x1002c072
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
mov ecx, ebx
call fcn.1002dfcb
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 0x1002c117
mov esi, dword [ebp - 0x30]
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x1002c0b9
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
je 0x1002c10c
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 + 8]
jne 0x1002c0df
mov edx, str._Bad
call fcn.10002cf5
test al, al
jne 0x1002c10c
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov byte [ebx + 0xbc], 1
mov dword [ebp - 0x50], eax
call fcn.1002dfcb
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 0x1002c0a5
inc dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x28]
jb 0x1002c01a
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x10]
jb 0x1002bee1
cmp dword [ebx + 0x10], 9
jbe 0x1002c246
mov eax, dword [ebx + 0xc]
and dword [ebp - 0x14], 0
mov esi, dword [eax + 0x24]
cmp dword [esi + 0x34], 0
jbe 0x1002c246
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 + 8]
call fcn.10002cf5
test al, al
jne 0x1002c186
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x34]
jb 0x1002c156
jmp 0x1002c246
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.1002ad67
mov esi, eax
test esi, esi
je 0x1002c1da
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test eax, eax
je 0x1002c1c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002c3e8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1002c3e8
cmp dword [ebp - 0x24], 0
je 0x1002c235
cmp byte [edi + 4], 0
je 0x1002c1ee
mov eax, dword [edi + 0x30]
mov edi, dword [edi + 0x34]
jmp 0x1002c1f3
mov eax, dword [edi + 0x14]
xor edi, edi
test edi, edi
ja 0x1002c235
jb 0x1002c200
cmp eax, 0x20000000
jae 0x1002c235
lea ecx, [eax + 1]
test ecx, 0x40000
je 0x1002c235
lea edi, [eax - 0x40000]
lea esi, [ebx + 0x80]
push edi
mov ecx, esi
call fcn.1000446d
mov edx, dword [esi]
mov ecx, dword [ebp - 0x24]
push edi
call fcn.1006dc5d
test eax, eax
jne 0x1002c235
mov ecx, ebx
call fcn.1002c4f1
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test eax, eax
je 0x1002c246
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 0x1002c311
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 0x1002c2a0
test edx, edx
jne 0x1002c2a0
or dword [ecx + 0xc], 0xffffffff
jmp 0x1002c2fe
xor eax, eax
cmp edx, eax
ja 0x1002c2de
jb 0x1002c2b0
mov eax, dword [ebx + 0x10]
cmp dword [ebp - 0x28], eax
jae 0x1002c2de
mov eax, dword [ebp - 0x28]
mov eax, dword [esi + eax*4]
mov dl, byte [eax + 6]
shr dl, 1
test dl, 1
je 0x1002c2de
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x1002c2de
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 0x1002c2f8
mov eax, dword [ebp - 0x30]
test byte [eax + 6], 1
je 0x1002c2ef
mov byte [ebp - 0x2a], 1
push 0xfffffffffffffffe
jmp 0x1002c2f5
mov byte [ebp - 0x29], 1
push 0xfffffffffffffffd
pop eax
jmp 0x1002c2fb
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 0x1002c260
cmp byte [ebx + 0x94], 0
mov esi, dword [ebx + 4]
je 0x1002c358
mov dword [ebx + 0xb0], esi
push dword [0x100e3820]
lea ecx, [ebp - 0x20]
inc esi
call fcn.10002be8
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 4
call fcn.1002dbc7
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
je 0x1002c358
push dword [ebp - 0x20]
call fcn.10003419
pop ecx
cmp byte [ebp - 0x2a], 0
je 0x1002c399
mov dword [ebx + 0xb4], esi
push dword [0x100e3824]
lea ecx, [ebp - 0x20]
inc esi
call fcn.10002be8
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 5
call fcn.1002dbc7
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
je 0x1002c399
push dword [ebp - 0x20]
call fcn.10003419
pop ecx
cmp byte [ebp - 0x29], 0
je 0x1002c3d5
mov dword [ebx + 0xb8], esi
push dword [0x100e3828]
lea ecx, [ebp - 0x34]
call fcn.10002be8
lea eax, [ebp - 0x34]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 6
call fcn.1002dbc7
cmp dword [ebp - 0x34], 0
je 0x1002c3d5
push dword [ebp - 0x34]
call fcn.10003419
pop ecx
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002c3e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002c524
mov eax, esi
jmp 0x1002c42d
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.1002c524
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002c41b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002c524
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret