Function at 0x520870
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
xor eax, eax
push ebx
push esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x94]
push edi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x90], edx
or edi, 0xffffffff
mov dword [ebp - 0x58], eax
add edi, 1
cmp edi, dword [ebp - 0x58]
jae 0x520985
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x30]
mov ebx, dword [edx + edi*4]
cmp dword [ebx + 0x24], 0
je 0x5208e4
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ecx, eax
and ecx, dword [ebp + 0x10]
mov esi, edx
and esi, dword [ebp + 0x14]
or ecx, esi
je 0x5208e4
and eax, dword [ebp + 0x18]
and edx, dword [ebp + 0x1c]
or eax, edx
jne 0x5208e4
mov edx, dword [ebp - 0x4c]
mov edx, dword [edx + 0x30]
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x88], edx
mov ecx, dword [eax + 0x14]
or edx, 0xffffffff
cmp dword [eax + 0x24], edx
jne 0x520940
cmp dword [eax + 0x20], edx
jne 0x520940
add dword [ebp - 0x54], 1
test ecx, ecx
je 0x52094b
mov eax, ecx
mov ecx, dword [ecx + 0x14]
jmp 0x520932
add edi, 1
cmp edi, dword [ebp - 0x58]
jae 0x520985
mov eax, dword [ebp - 0x88]
mov eax, dword [eax + edi*4]
cmp dword [eax + 0x24], 0
je 0x52094b
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ecx, edx
and ecx, dword [ebp + 0x10]
mov ebx, esi
and ebx, dword [ebp + 0x14]
or ecx, ebx
je 0x52094b
and edx, dword [ebp + 0x18]
and esi, dword [ebp + 0x1c]
or edx, esi
jne 0x52094b
mov eax, dword [eax + 0x24]
jmp 0x52092c
mov eax, dword [ebp - 0x54]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
mov dword [ebp - 0x78], eax
je 0x52140b
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x54], 0
or edi, 0xffffffff
mov dword [ebp - 0x58], ecx
add edi, 1
cmp edi, dword [ebp - 0x58]
jae 0x520ae4
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x30]
mov ebx, dword [eax + edi*4]
cmp dword [ebx + 0x24], 0
je 0x5209bf
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov eax, ecx
and eax, dword [ebp + 0x10]
mov esi, edx
and esi, dword [ebp + 0x14]
or eax, esi
je 0x5209bf
and ecx, dword [ebp + 0x18]
and edx, dword [ebp + 0x1c]
or ecx, edx
jne 0x5209bf
mov esi, dword [ebx + 0x24]
mov dword [ebp - 0xac], edi
mov ebx, dword [ebp - 0x4c]
mov edi, dword [esi + 0x14]
or eax, 0xffffffff
cmp dword [esi + 0x24], eax
jne 0x520a87
cmp dword [esi + 0x20], eax
jne 0x520a87
mov edx, dword [ebx]
mov eax, dword [esi + 0x98]
mov edx, dword [edx + 0x14]
push eax
mov ecx, ebx
call edx
cmp eax, 0xd
jne 0x520a32
mov dword [esi + 0x28], 0xffffffff
jmp 0x520a78
mov ecx, dword [esi + 0x98]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebx
call edx
cmp eax, 0x1d
jne 0x520a50
mov dword [esi + 0x28], 0xffffffff
jmp 0x520a78
mov ecx, dword [esi + 0x98]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebx
call edx
cmp eax, 0x1b
jne 0x520a78
mov ecx, dword [esi + 0x98]
mov eax, dword [ebx]
mov edx, dword [eax + 0x70]
push ecx
mov ecx, ebx
call edx
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + eax*4], esi
add eax, 1
mov dword [ebp - 0x54], eax
test edi, edi
je 0x520a95
mov esi, edi
mov edi, dword [edi + 0x14]
jmp 0x520a07
mov edx, dword [ebx + 8]
mov edi, dword [ebp - 0xac]
mov dword [ebp - 0x58], edx
add edi, 1
cmp edi, dword [ebp - 0x58]
mov dword [ebp - 0xac], edi
jae 0x520aea
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x30]
mov esi, dword [ecx + edi*4]
cmp dword [esi + 0x24], 0
je 0x520aa1
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov eax, ecx
and eax, dword [ebp + 0x10]
mov ebx, edx
and ebx, dword [ebp + 0x14]
or eax, ebx
je 0x520aa1
and ecx, dword [ebp + 0x18]
and edx, dword [ebp + 0x1c]
or ecx, edx
jne 0x520aa1
mov esi, dword [esi + 0x24]
jmp 0x520a01
mov dword [ebp - 0xac], edi
mov edx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x54]
push edx
push 0x50baa0
mov esi, edi
call fcn.004ef110
xor ebx, ebx
cmp dword [ebp - 0x54], ebx
mov dword [ebp - 0x60], ebx
jbe 0x520b7f
mov edx, dword [ebp - 0x54]
lea ecx, [ecx]
cmp ebx, edx
mov esi, dword [edi + ebx*4]
jae 0x520b77
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x520b77
mov ecx, dword [eax + 0x28]
cmp ecx, dword [esi + 0x28]
jne 0x520b77
mov eax, dword [eax + 0x94]
mov ecx, dword [esi + 0x94]
cmp eax, ecx
je 0x520b70
test eax, eax
je 0x520b77
test ecx, ecx
je 0x520b77
mov ecx, dword [ecx + 0x20]
mov eax, dword [eax + 0x20]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x520b64
test dl, dl
je 0x520b60
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x520b64
add eax, 2
add ecx, 2
test dl, dl
jne 0x520b44
xor eax, eax
jmp 0x520b69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov edx, dword [ebp - 0x54]
jne 0x520b77
add ebx, 1
cmp ebx, edx
jb 0x520b17
add dword [ebp - 0x60], 1
cmp ebx, edx
jb 0x520b10
mov eax, dword [ebp + 0xc]
cmp eax, 0x4e47534f
mov esi, dword [ebp - 0x60]
jne 0x520bb7
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x4c]
cmp esi, eax
jbe 0x520bea
push eax
push 0x4620ac
push 0x11db
xor esi, esi
mov edi, edx
call fcn.004f5fb0
add esp, 0xc
mov ebx, 0x80004005
jmp 0x52144a
cmp eax, 0x4e475349
jne 0x520bea
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 0x48]
cmp esi, eax
jbe 0x520bea
mov edi, dword [ebp - 0x4c]
push eax
push 0x4620d8
push 0x119a
xor esi, esi
call fcn.004f5fb0
add esp, 0xc
mov ebx, 0x80004005
jmp 0x52144a
xor ecx, ecx
mov eax, esi
mov edx, 0x18
mul edx
seto cl
mov dword [ebp - 0xbc], esi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
mov dword [ebp - 0x84], eax
je 0x52140b
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
add esi, esi
push esi
mov edi, eax
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
push 1
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov eax, 8
call fcn.0054c250
mov ebx, eax
test ebx, ebx
jl 0x52144a
lea edx, [ebp - 0xb8]
push edx
push 1
push edi
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.0054c250
mov ebx, eax
test ebx, ebx
jl 0x52144a
xor eax, eax
cmp dword [ebp - 0x54], eax
mov byte [ebp - 0x4d], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
jbe 0x5213cf
lea ecx, [ecx]
mov esi, dword [ebp - 0x64]
cmp esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x78]
mov ebx, dword [ecx + esi*4]
mov dword [ebp - 0x68], ebx
mov edi, esi
jae 0x520d07
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x520d04
mov ecx, dword [eax + 0x28]
cmp ecx, dword [ebx + 0x28]
jne 0x520d04
mov eax, dword [eax + 0x94]
mov ecx, dword [ebx + 0x94]
cmp eax, ecx
je 0x520cfc
test eax, eax
je 0x520d04
test ecx, ecx
je 0x520d04
mov ecx, dword [ecx + 0x20]
mov eax, dword [eax + 0x20]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x520cf3
test dl, dl
je 0x520cef
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x520cf3
add eax, 2
add ecx, 2
test dl, dl
jne 0x520cd3
xor eax, eax
jmp 0x520cf8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x520d04
add esi, 1
cmp esi, dword [ebp - 0x54]
jb 0x520ca3
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x60]
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x84]
lea ecx, [eax + edx*8]
mov eax, dword [ebp + 0xc]
xor edx, edx
sub eax, 0x4e475349
mov dword [ebp - 0x6c], ecx
mov byte [ecx + 0x14], 0
mov dword [ebp - 0x80], edx
je 0x520d31
sub eax, 6
jne 0x520d37
lea edx, [ecx + 0x15]
mov dword [ebp - 0x80], edx
mov byte [edx], 0
cmp dword [ebx + 0x94], 0
je 0x52136e
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x94]
mov esi, dword [ecx + 0x20]
mov eax, dword [ebp - 0x4c]
push 0
lea edx, [ebp - 0xa4]
push edx
push esi
push eax
lea edx, [ebp - 0xa8]
call fcn.004d9fe0
mov ebx, eax
test ebx, ebx
jl 0x52144a
lea eax, [ebp - 0x48]
mov ecx, eax
xor ebx, ebx
mov edx, 0x3f
sub esi, ecx
lea ecx, [edx + 0x7fffffbf]
test ecx, ecx
je 0x520da1
mov cl, byte [esi + eax]
test cl, cl
je 0x520da1
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x520d84
jmp 0x520da5
test edx, edx
jne 0x520dad
sub eax, 1
mov ebx, 0x8007007a
test ebx, ebx
mov byte [eax], 0
jl 0x52138c
cmp edi, dword [ebp - 0x64]
mov edx, dword [ebp - 0xa8]
lea eax, [ebp - 0x48]
mov byte [ebp + edx - 0x48], 0
mov dword [ebp - 0x58], eax
mov esi, edi
jae 0x520e1d
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax + 0x2c]
xor dl, dl
cmp eax, 3
ja case.default.0x520de0
jmp dword [eax*4 + 0x5214cc]
mov dl, 1
jmp case.default.0x520de0
mov dl, 2
jmp case.default.0x520de0
mov dl, 4
jmp case.default.0x520de0
mov dl, 8
mov eax, dword [ebp - 0x6c]
or byte [eax + 0x14], dl
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax + 0xc]
and ecx, 0x1000
xor eax, eax
or eax, ecx
jne 0x520e15
mov eax, dword [ebp - 0x80]
or byte [eax], dl
add esi, 1
cmp esi, dword [ebp - 0x64]
jb 0x520dd0
mov ecx, dword [ebp - 0x80]
mov al, byte [ecx]
test al, al
setne byte [ebp - 0x71]
cmp dword [ebp + 0xc], 0x4e47534f
jne 0x520e37
not al
and al, 0xf
mov byte [ecx], al
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x98]
cmp eax, 0xffffffff
jne 0x520e5c
mov edx, dword [ebx + 0x9c]
mov eax, dword [ebp - 0x6c]
shr edx, 2
add edx, dword [ebp - 0xa4]
mov dword [eax + 4], edx
jmp 0x520e65
mov ecx, dword [ebp - 0x6c]
shr eax, 0x10
mov dword [ecx + 4], eax
cmp dword [ebx + 0x94], 0
je 0x5213b1
mov esi, dword [ebp - 0x4c]
mov edx, dword [esi]
mov eax, dword [ebx + 0x98]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
mov edi, eax
cmp edi, 1
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x5c], 0
jne 0x520ebb
lea eax, [ebp - 0x48]
push 0x462164
push eax
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x520f22
mov dword [ebp - 0x58], 0x462164
jmp 0x520f22
cmp edi, 0x1b
jne 0x520ede
lea ecx, [ebp - 0x48]
push 0x462170
push ecx
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x520f22
mov dword [ebp - 0x58], 0x462170
jmp 0x520f22
cmp edi, 0xd
jne 0x520f01
lea edx, [ebp - 0x48]
push 0x46217c
push edx
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x520f22
mov dword [ebp - 0x58], 0x46217c
jmp 0x520f22
cmp edi, 0x15
jne 0x520f22
lea eax, [ebp - 0x48]
push 0x462188
push eax
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x520f22
mov dword [ebp - 0x58], 0x462188
cmp dword [ebp + 0xc], 0x4e47534f
jne 0x520fc6
mov eax, dword [ebp - 0x60]
test eax, eax
jbe 0x520fc6
mov ebx, dword [ebp - 0x84]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebx]
test ecx, ecx
jbe 0x520fb7
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 4]
cmp eax, dword [ebx + 4]
jne 0x520fb7
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x520fb7
cmp dword [eax + 0xc], ecx
je 0x520f70
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x520f62
jmp 0x520fb7
mov eax, dword [eax]
test eax, eax
je 0x520fb7
mov ecx, dword [ebp - 0x58]
push ecx
push eax
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
jne 0x520fb7
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
mov esi, dword [ecx + 0x94]
mov edi, dword [ebp - 0x4c]
push edx
push eax
push 0x462198
push 0x1197
call fcn.004f5fb0
mov edi, dword [ebp - 0x88]
add esp, 0x10
mov byte [ebp - 0x4d], 1
add ebx, 0x18
sub dword [ebp - 0x7c], 1
jne 0x520f43
mov ebx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x58]
push edx
push 6
push eax
lea ecx, [ebp - 0x9c]
push ecx
or eax, 0xffffffff
call fcn.0054c250
cmp dword [ebp + 0xc], 0x4e475349
jne 0x521002
test byte [esi + 0xad], 8
je 0x521002
cmp edi, 0x14
jne 0x521002
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0x10], 0xffffffff
jmp 0x52100b
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov eax, edx
mov esi, 1
and ecx, 0x1ff
and eax, 0x80000000
cmp ecx, 0x10
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x70], esi
ja 0x521082
jb 0x521034
test eax, eax
ja 0x521082
test eax, eax
jne 0x52103d
cmp ecx, 0x10
je 0x52106e
cmp ecx, 4
ja 0x521077
jb 0x52104c
test eax, eax
ja 0x5210cd
test eax, eax
jne 0x5210cd
cmp ecx, 4
je 0x5210bf
test eax, eax
jne 0x5210cd
cmp ecx, esi
je 0x5210ae
test eax, eax
jne 0x5210cd
cmp ecx, 2
jne 0x5210cd
mov dword [ebp - 0x7c], 2
jmp 0x5210cd
test eax, eax
jne 0x5210cd
cmp ecx, 8
je 0x5210ae
jmp 0x5210cd
cmp ecx, 0x80
ja 0x5210b3
jb 0x521090
test eax, eax
ja 0x5210cd
test eax, eax
jne 0x5210cd
cmp ecx, 0x80
je 0x52106e
test eax, eax
jne 0x5210cd
cmp ecx, 0x20
je 0x5210bf
test eax, eax
jne 0x5210cd
cmp ecx, 0x40
jne 0x5210cd
mov dword [ebp - 0x7c], esi
jmp 0x5210cd
test eax, eax
jne 0x5210cd
cmp ecx, 0x100
jne 0x5210cd
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x7c], 3
mov eax, edx
and eax, 0x20000000
xor ecx, ecx
or eax, ecx
je 0x5210e2
mov dword [ebp - 0x70], esi
jmp 0x521199
mov ecx, edx
and ecx, 0x40000000
xor ebx, ebx
mov eax, ecx
or eax, ebx
je 0x521108
mov eax, edx
and eax, 0x10000000
xor esi, esi
or eax, esi
je 0x521108
mov dword [ebp - 0x70], 7
jmp 0x52116a
or ecx, ebx
je 0x521115
mov dword [ebp - 0x70], 6
jmp 0x52116a
mov ecx, edx
and ecx, 0x8000000
xor ebx, ebx
mov eax, ecx
or eax, ebx
je 0x52113b
mov eax, edx
and eax, 0x10000000
xor esi, esi
or eax, esi
je 0x52113b
mov dword [ebp - 0x70], 5
jmp 0x521199
or ecx, ebx
je 0x521148
mov dword [ebp - 0x70], 3
jmp 0x521199
and edx, 0x10000000
xor eax, eax
or edx, eax
je 0x52115d
mov dword [ebp - 0x70], 4
jmp 0x521199
mov eax, dword [ebp - 0x70]
cmp eax, 6
je 0x52116a
cmp eax, 7
jne 0x521199
mov ecx, dword [ebp - 0x4c]
test byte [ecx + 0xb2], 8
jne 0x521199
mov edx, dword [ebp - 0x68]
mov esi, dword [edx + 0x8c]
push 0x4621b8
push 0x11d8
mov edi, ecx
call fcn.004f5fb0
mov edi, dword [ebp - 0x88]
add esp, 8
lea eax, [edi - 1]
cmp eax, 0x1b
ja case.0x5211ac.2
movzx eax, byte [eax + 0x521508]
jmp dword [eax*4 + 0x5214dc]
mov esi, 2
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 3
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 1
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 4
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 5
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 6
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 7
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 8
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 9
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, 0xa
mov dword [ebp - 0x5c], esi
jmp 0x52121a
mov esi, dword [ebp - 0x5c]
mov eax, esi
call fcn.0050b700
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x7c]
cmp eax, 3
ja case.default.0x52122f
jmp dword [eax*4 + 0x521524]
xor eax, eax
jmp case.default.0x52122f
mov eax, 1
jmp case.default.0x52122f
mov eax, 2
jmp case.default.0x52122f
mov eax, 3
cmp dword [ebp + 0xc], 0x4e47534f
mov dword [ecx + 0xc], eax
jne 0x521288
cmp esi, 1
jne 0x521288
mov ecx, dword [ebp - 0x80]
cmp byte [ecx], 0
je 0x521288
mov edx, dword [ebp - 0x68]
mov esi, dword [edx + 0x8c]
mov edi, dword [ebp - 0x4c]
push 0x4621f0
push 0x11e1
call fcn.004f5fb0
add esp, 8
mov byte [ebp - 0x4d], 1
mov edx, dword [ebp - 0x4c]
test byte [edx + 0xad], 0x10
je 0x5212c1
cmp dword [ebp + 0xc], 0x4e475349
jne 0x5212c1
cmp byte [ebp - 0x71], 0
je 0x5212c1
cmp dword [ebp - 0x5c], 0xa
je 0x5212ba
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 8]
and eax, 0x40000000
xor ecx, ecx
or eax, ecx
je 0x5212c1
mov byte [edx + 0x28d8], 1
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 8]
and eax, 0x400
xor ecx, ecx
or eax, ecx
je 0x5212d9
mov al, 1
jmp 0x5212db
xor al, al
cmp dword [ebp + 0xc], 0x4e475349
lea edx, [ebp - 0xcc]
push edx
mov edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x60]
push edx
sete dl
push ecx
mov ecx, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x58]
push edx
call fcn.0050bf00
mov ebx, eax
test ebx, ebx
jl 0x52144a
cmp ebx, 1
mov ebx, dword [ebp - 0x8c]
jne 0x52133b
mov eax, dword [ebp - 0x68]
mov esi, dword [eax + 0x8c]
mov edi, dword [ebp - 0x4c]
push ebx
push 0x11e0
call fcn.004f5fb0
add esp, 8
mov byte [ebp - 0x4d], 1
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x54]
add dword [ebp - 0x60], 1
add esp, 4
cmp dword [ebp - 0x64], ecx
mov dword [ebp - 0x8c], 0
jb 0x520c90
cmp byte [ebp - 0x4d], 0
je 0x5213cf
mov ebx, 0x80004005
jmp 0x52144a
mov edi, dword [ebp - 0x4c]
push 0x462100
push 0
xor esi, esi
call fcn.004f5fb0
add esp, 8
mov ebx, 0x80004005
jmp 0x52144a
mov edx, dword [ebp - 0x68]
mov esi, dword [edx + 0x94]
mov edi, dword [ebp - 0x4c]
push 0x3f
push 0x45ce70
push 0x11dd
call fcn.004f5fb0
add esp, 0xc
jmp 0x52144a
mov edi, dword [ebp - 0x4c]
push 0x462134
push 0
xor esi, esi
call fcn.004f5fb0
add esp, 8
mov ebx, 0x80004005
jmp 0x52144a
mov esi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
add esi, 3
shr esi, 2
neg eax
sbb eax, eax
and eax, 2
add esi, eax
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
jne 0x521412
mov ebx, 0x8007000e
jmp 0x52144a
push esi
lea eax, [ebp - 0x9c]
push eax
mov eax, edi
call fcn.0054c440
mov ebx, eax
test ebx, ebx
jl 0x521441
mov edx, dword [ebp + 0xc]
push edi
lea ecx, [esi*4]
push ecx
mov ecx, dword [ebp - 0xa0]
push edx
call fcn.00752e80
mov ebx, eax
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x78]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x84]
add esp, 4
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp - 0x8c]
add esp, 4
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x94]
add esp, 4
test eax, eax
je 0x5214b4
mov edi, edi
mov esi, eax
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 8]
test al, 8
jne 0x521496
test al, 1
jne 0x5214a1
mov ecx, dword [esi]
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x94]
add esp, 4
test eax, eax
jne 0x521480
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0074f205
mov esp, ebp
pop ebp
ret 0x18