Function at 0x1002b03f
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 0x100d118e
call fcn.100ce110
sub esp, 0x544
push ebx
push esi
push edi
mov ebx, ecx
call fcn.1002abde
mov ecx, dword [ebx + 0x18]
push 0x200
lea edx, [ebp - 0x350]
call fcn.1000a04a
test eax, eax
jne 0x1002ba76
lea esi, [ebx + 0x20]
lea eax, [ebp - 0x350]
push eax
mov ecx, esi
call fcn.100294f0
test al, al
je 0x1002ba73
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 0x1002ba76
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
call fcn.100ce2e0
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x60], eax
cmp edi, edx
mov dword [ebx + 0x64], edx
ja 0x1002b0d5
jb 0x1002ba73
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 0x60]
jb 0x1002ba73
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi]
add eax, 1
adc edx, 0
call fcn.100ce2e0
cmp edi, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
jb 0x1002b15e
ja 0x1002b0f9
cmp dword [ebp - 0x20], eax
jb 0x1002b15e
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.100ce2e0
push edx
push eax
push dword [ebx + 0x18]
call dword [edi + 0x10]
test eax, eax
jne 0x1002ba76
mov ecx, dword [ebx + 0x18]
mov edi, 0x200
push edi
lea edx, [ebp - 0x550]
call fcn.1000a04a
test eax, eax
jne 0x1002b15e
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 0x1002b15e
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.1002abb8
lea ecx, [ebp - 0xe8]
call fcn.1002bb0d
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.10009fc8
mov edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x18]
push edi
call fcn.1000a04a
mov edi, eax
test edi, edi
jne 0x1002b302
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax + 0x1c]
call fcn.10029662
mov edx, dword [esi]
cmp eax, edx
jge 0x1002b1cb
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002b2df
jmp 0x1002b2d9
cmp eax, 0xf
mov dword [ebx + 0x58], eax
ja 0x1002b1b7
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.1002a91c
test al, al
je 0x1002b217
cmp dword [ebp - 0xe8], 0x454c4946
jne 0x1002b217
lea ecx, [ebp - 0xe8]
call fcn.1002a2de
cmp dword [ebp - 0xb4], edi
jne 0x1002b222
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
cmp eax, edi
jmp 0x1002b1c0
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.1002a3d4
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x1002b25f
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
cmp eax, edi
je 0x1002b257
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x1c]
jmp 0x1002ba31
cmp dword [ebp - 0x18], edi
je 0x1002b2df
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.100ce2e0
push 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x40]
pop ecx
mov eax, edi
call fcn.100ce240
cmp edx, dword [ebp - 0x1c]
jb 0x1002b2a5
ja 0x1002b2d2
cmp eax, dword [ebp - 0x20]
ja 0x1002b2d2
mov ecx, dword [ebx + 0x58]
push 1
pop eax
shl eax, cl
cmp eax, 0x8000
mov dword [ebp - 0x1c], eax
ja 0x1002b2d2
mov edx, dword [ebp - 0x40]
mov eax, edi
call fcn.100ce240
test edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
ja 0x1002b2d2
cmp eax, 0x40000000
jbe 0x1002b2e7
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 0x1002ba31
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x1002b31a
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 0x1002b31a
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002b313
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
jmp 0x1002ba31
mov edi, 0x8000
lea ecx, [ebx + 0x6c]
push edi
call fcn.10009fc8
mov eax, dword [ebp - 0x28]
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x30], eax
call fcn.1002d1d1
push dword [ebp - 0x30]
lea ecx, [ebx + 0xc]
call fcn.1004a71b
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x1002b37e
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 0x1002b37e
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 0x1002b43a
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 0x1002b399
cmp eax, edi
jae 0x1002b399
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jb 0x1002b462
mov edx, dword [ebx + 0x6c]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.1000a04a
mov edi, eax
test edi, edi
jne 0x1002b302
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.1002bb0d
mov eax, dword [ebx + 0x10]
xor ecx, ecx
cmp eax, 3
mov byte [ebp - 4], 2
jne 0x1002b3e8
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.1002a91c
test al, al
je 0x1002ba44
lea eax, [ebp - 0x150]
lea ecx, [ebx + 0xc]
push eax
call fcn.1002d139
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.1002bb6d
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x10], eax
add edi, eax
cmp dword [ebp - 0x10], eax
jae 0x1002b3c4
mov edi, 0x8000
jmp 0x1002b349
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002b44b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002bb6d
mov eax, dword [ebp - 0x30]
jmp 0x1002ba76
and dword [ebp - 0x10], 0
cmp dword [ebx + 0x10], 0
jbe 0x1002b503
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 0x1002b4f4
mov ecx, eax
mov dword [ebp - 0x20], edi
and ecx, 0xffff
xor edi, edi
cmp ecx, edi
ja 0x1002b1b7
jb 0x1002b4a8
mov ecx, dword [ebx + 0x10]
cmp dword [ebp - 0x20], ecx
ja 0x1002b1b7
mov ecx, dword [ebp - 0x20]
shr eax, 0x10
mov edx, dword [edx + ecx*4]
cmp word [edx + 4], ax
jne 0x1002b4c3
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x1002b4c3
mov cl, 1
jmp 0x1002b4c5
xor cl, cl
mov al, byte [esi + 6]
and al, 1
je 0x1002b4dc
test byte [edx + 6], 1
je 0x1002b4dc
test cl, cl
je 0x1002b1b7
jmp 0x1002b4e8
test al, al
jne 0x1002b4e6
test byte [edx + 6], 1
je 0x1002b4e8
xor cl, cl
test cl, cl
je 0x1002b4f4
push esi
mov ecx, edx
call fcn.1002bad8
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x10]
jb 0x1002b470
xor esi, esi
cmp dword [ebx + 0x10], esi
jbe 0x1002b51b
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + esi*4]
call fcn.1002a2de
inc esi
cmp esi, dword [ebx + 0x10]
jb 0x1002b50a
mov eax, dword [ebx + 0x10]
and dword [ebp - 0x10], 0
test eax, eax
jbe 0x1002b781
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 0x1002b772
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x1002b772
cmp ecx, 0x10
jae 0x1002b560
cmp byte [ebx + 0x94], 0
je 0x1002b772
test byte [esi + 6], 1
jne 0x1002b573
cmp byte [ebx + 0x95], 0
je 0x1002b772
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 0x1002b5b5
mov edi, dword [esi + 0x34]
and dword [ebp - 0x14], 0
test edi, edi
jbe 0x1002b5b5
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 0x1002b5af
inc dword [ebp - 0x14]
add eax, 8
cmp dword [ebp - 0x14], edi
jb 0x1002b597
jmp 0x1002b5b5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp dword [esi + 0x28], eax
jne 0x1002b655
cmp dword [ebp - 0x10], 0x10
jae 0x1002b604
cmp dword [esi + 0x34], eax
mov dword [ebp - 0x14], eax
jbe 0x1002b655
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 0x1002b5eb
mov ecx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
jmp 0x1002b5f0
mov ecx, dword [eax + 0x14]
xor eax, eax
or ecx, eax
jne 0x1002b604
inc dword [ebp - 0x14]
add edx, 8
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x34]
jb 0x1002b5d8
jmp 0x1002b655
lea ecx, [esi + 0x24]
call fcn.1002d0bb
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 0x1002b639
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 0x1002b62e
mov ecx, dword [ebp - 0x10]
call fcn.100011fa
lea eax, [ebp - 0x80]
lea ecx, [edi + 8]
push eax
call fcn.10002c85
and dword [edi + 0x10], 0
mov byte [edi + 0x14], 3
and dword [ebp - 0x14], 0
cmp dword [esi + 0x28], 0
jbe 0x1002b772
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1002ba93
test eax, eax
jl 0x1002b679
dec dword [esi + 0x10]
jmp 0x1002b760
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 0x1002b69f
mov dword [ebp - 0x50], 0xfffffffe
jmp 0x1002b6af
mov eax, dword [ebp - 0x1c]
test eax, eax
jge 0x1002b6ac
or dword [ebp - 0x50], 0xffffffff
jmp 0x1002b6af
mov dword [ebp - 0x50], eax
cmp dword [esi + 0x14], 0
jge 0x1002b6bb
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
mov ecx, ebx
call fcn.1002d605
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 0x1002b760
mov esi, dword [ebp - 0x30]
mov al, byte [esi + 6]
shr al, 1
test al, 1
jne 0x1002b702
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
je 0x1002b755
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 0x1002b728
mov edx, str._Bad
call fcn.10002d16
test al, al
jne 0x1002b755
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov byte [ebx + 0xbc], 1
mov dword [ebp - 0x50], eax
call fcn.1002d605
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 0x1002b6ee
inc dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x28]
jb 0x1002b663
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x10]
jb 0x1002b52a
cmp dword [ebx + 0x10], 9
jbe 0x1002b88f
mov eax, dword [ebx + 0xc]
and dword [ebp - 0x14], 0
mov esi, dword [eax + 0x24]
cmp dword [esi + 0x34], 0
jbe 0x1002b88f
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.10002d16
test al, al
jne 0x1002b7cf
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x34]
jb 0x1002b79f
jmp 0x1002b88f
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.1002a3d4
mov esi, eax
test esi, esi
je 0x1002b823
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test eax, eax
je 0x1002b809
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002ba31
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1002ba31
cmp dword [ebp - 0x24], 0
je 0x1002b87e
cmp byte [edi + 4], 0
je 0x1002b837
mov eax, dword [edi + 0x30]
mov edi, dword [edi + 0x34]
jmp 0x1002b83c
mov eax, dword [edi + 0x14]
xor edi, edi
test edi, edi
ja 0x1002b87e
jb 0x1002b849
cmp eax, 0x20000000
jae 0x1002b87e
lea ecx, [eax + 1]
test ecx, 0x40000
je 0x1002b87e
lea edi, [eax - 0x40000]
lea esi, [ebx + 0x80]
push edi
mov ecx, esi
call fcn.10009fc8
mov edx, dword [esi]
mov ecx, dword [ebp - 0x24]
push edi
call fcn.1000a04a
test eax, eax
jne 0x1002b87e
mov ecx, ebx
call fcn.1002bb3a
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 1
test eax, eax
je 0x1002b88f
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 0x1002b95a
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 0x1002b8e9
test edx, edx
jne 0x1002b8e9
or dword [ecx + 0xc], 0xffffffff
jmp 0x1002b947
xor eax, eax
cmp edx, eax
ja 0x1002b927
jb 0x1002b8f9
mov eax, dword [ebx + 0x10]
cmp dword [ebp - 0x28], eax
jae 0x1002b927
mov eax, dword [ebp - 0x28]
mov eax, dword [esi + eax*4]
mov dl, byte [eax + 6]
shr dl, 1
test dl, 1
je 0x1002b927
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x1002b927
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 0x1002b941
mov eax, dword [ebp - 0x30]
test byte [eax + 6], 1
je 0x1002b938
mov byte [ebp - 0x2a], 1
push 0xfffffffffffffffe
jmp 0x1002b93e
mov byte [ebp - 0x29], 1
push 0xfffffffffffffffd
pop eax
jmp 0x1002b944
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 0x1002b8a9
cmp byte [ebx + 0x94], 0
mov esi, dword [ebx + 4]
je 0x1002b9a1
mov dword [ebx + 0xb0], esi
push dword [0x100dd708]
lea ecx, [ebp - 0x20]
inc esi
call fcn.10002c09
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 4
call fcn.1002d201
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
je 0x1002b9a1
push dword [ebp - 0x20]
call fcn.10003419
pop ecx
cmp byte [ebp - 0x2a], 0
je 0x1002b9e2
mov dword [ebx + 0xb4], esi
push dword [0x100dd70c]
lea ecx, [ebp - 0x20]
inc esi
call fcn.10002c09
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 5
call fcn.1002d201
cmp dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
je 0x1002b9e2
push dword [ebp - 0x20]
call fcn.10003419
pop ecx
cmp byte [ebp - 0x29], 0
je 0x1002ba1e
mov dword [ebx + 0xb8], esi
push dword [0x100dd710]
lea ecx, [ebp - 0x34]
call fcn.10002c09
lea eax, [ebp - 0x34]
lea ecx, [ebx + 0x98]
push eax
mov byte [ebp - 4], 6
call fcn.1002d201
cmp dword [ebp - 0x34], 0
je 0x1002ba1e
push dword [ebp - 0x34]
call fcn.10003419
pop ecx
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002ba2f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002bb6d
mov eax, esi
jmp 0x1002ba76
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
call fcn.1002bb6d
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
je 0x1002ba64
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.1002bb6d
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret