Function at 0x47c180
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x54f048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
xor eax, eax
push ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov eax, dword [ecx + 8]
push esi
lea edx, [ebp - 0x98]
push edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x94], edx
or ebx, 0xffffffff
mov dword [ebp - 0x54], eax
inc ebx
cmp ebx, dword [ebp - 0x54]
jae 0x47c2a1
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0x30]
mov edi, dword [edx + ebx*4]
cmp dword [edi + 0x24], 0
je 0x47c1f1
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, eax
and ecx, dword [ebp + 0x10]
mov esi, edx
and esi, dword [ebp + 0x14]
or ecx, esi
je 0x47c1f1
and eax, dword [ebp + 0x18]
and edx, dword [ebp + 0x1c]
or eax, edx
jne 0x47c1f1
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0x30]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x90], edx
mov ecx, dword [eax + 0x14]
or edx, 0xffffffff
lea ecx, [ecx]
cmp dword [eax + 0x24], edx
jne 0x47c252
cmp dword [eax + 0x20], edx
jne 0x47c252
cmp dword [eax + 0x44], edx
jne 0x47c252
inc dword [ebp - 0x5c]
test ecx, ecx
je 0x47c25d
mov eax, ecx
mov ecx, dword [ecx + 0x14]
jmp 0x47c240
mov eax, dword [ebp - 0x90]
lea ecx, [eax + ebx*4]
mov dword [ebp - 0x74], ecx
add dword [ebp - 0x74], 4
inc ebx
cmp ebx, dword [ebp - 0x54]
jae 0x47c2a1
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
cmp dword [eax + 0x24], 0
je 0x47c269
mov edx, dword [eax + 8]
mov esi, dword [eax + 0xc]
mov ecx, edx
and ecx, dword [ebp + 0x10]
mov edi, esi
and edi, dword [ebp + 0x14]
or ecx, edi
je 0x47c269
and edx, dword [ebp + 0x18]
and esi, dword [ebp + 0x1c]
or edx, esi
jne 0x47c269
mov eax, dword [eax + 0x24]
jmp 0x47c237
mov eax, dword [ebp - 0x5c]
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
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x47cebd
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x5c], 0
or ebx, 0xffffffff
mov dword [ebp - 0x54], ecx
inc ebx
cmp ebx, dword [ebp - 0x54]
jae 0x47c3d3
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x30]
mov edi, dword [eax + ebx*4]
cmp dword [edi + 0x24], 0
je 0x47c2db
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov eax, ecx
and eax, dword [ebp + 0x10]
mov esi, edx
and esi, dword [ebp + 0x14]
or eax, esi
je 0x47c2db
and ecx, dword [ebp + 0x18]
and edx, dword [ebp + 0x1c]
or ecx, edx
jne 0x47c2db
mov dword [ebp - 0xc0], ebx
mov edi, dword [edi + 0x24]
mov esi, dword [ebp - 0x50]
mov ebx, dword [edi + 0x14]
or eax, 0xffffffff
cmp dword [edi + 0x24], eax
jne 0x47c369
cmp dword [edi + 0x20], eax
jne 0x47c369
cmp dword [edi + 0x44], eax
jne 0x47c369
mov edx, dword [esi]
mov eax, dword [edi + 0x98]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
sub eax, 0xd
je 0x47c352
sub eax, 0xe
je 0x47c374
sub eax, 2
jne 0x47c359
mov dword [edi + 0x28], 0xffffffff
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + eax*4], edi
inc eax
mov dword [ebp - 0x5c], eax
or eax, 0xffffffff
test ebx, ebx
je 0x47c389
mov edi, ebx
mov ebx, dword [ebx + 0x14]
jmp 0x47c324
mov ecx, dword [edi + 0x98]
mov eax, dword [esi]
mov edx, dword [eax + 0x70]
push ecx
mov ecx, esi
call edx
mov dword [edi + 0x28], eax
jmp 0x47c359
mov edx, dword [esi + 8]
mov ebx, dword [ebp - 0xc0]
mov dword [ebp - 0x54], edx
inc ebx
mov dword [ebp - 0xc0], ebx
cmp ebx, dword [ebp - 0x54]
jae 0x47c3d9
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x30]
mov edi, dword [ecx + ebx*4]
cmp dword [edi + 0x24], 0
je 0x47c395
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov eax, ecx
and eax, dword [ebp + 0x10]
mov esi, edx
and esi, dword [ebp + 0x14]
or eax, esi
je 0x47c395
and ecx, dword [ebp + 0x18]
and edx, dword [ebp + 0x1c]
or ecx, edx
jne 0x47c395
jmp 0x47c318
mov dword [ebp - 0xc0], ebx
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x6c]
push ebx
push 0x507cd0
call fcn.0047fe40
xor edi, edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x5c], edi
jbe 0x47c4a1
mov edi, edi
mov edx, dword [ebp - 0x6c]
mov esi, dword [edx + edi*4]
mov ecx, dword [esi + 0x98]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebx
call edx
cmp eax, 0xd
je 0x47c431
cmp eax, 0x14
je 0x47c431
cmp eax, 0x1d
je 0x47c431
mov eax, dword [esi + 0x28]
inc eax
cmp eax, dword [ebp - 0x54]
jbe 0x47c431
mov dword [ebp - 0x54], eax
cmp edi, dword [ebp - 0x5c]
jae 0x47c495
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x47c495
mov ecx, dword [eax + 0x28]
cmp ecx, dword [esi + 0x28]
jne 0x47c495
mov eax, dword [eax + 0x94]
mov ecx, dword [esi + 0x94]
cmp eax, ecx
je 0x47c48f
test eax, eax
je 0x47c495
test ecx, ecx
je 0x47c495
mov ecx, dword [ecx + 0x24]
mov eax, dword [eax + 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47c486
test dl, dl
je 0x47c482
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47c486
add eax, 2
add ecx, 2
test dl, dl
jne 0x47c466
xor eax, eax
jmp 0x47c48b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x47c495
inc edi
cmp edi, dword [ebp - 0x5c]
jb 0x47c436
inc dword [ebp - 0x64]
cmp edi, dword [ebp - 0x5c]
jb 0x47c400
mov eax, dword [ebp + 0xc]
cmp eax, 0x4e47534f
jne 0x47c4e2
mov eax, dword [ebx + 0x4c]
cmp dword [ebp - 0x54], eax
jbe 0x47c50c
mov edx, dword [ebp - 0x54]
push edx
push eax
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
push eax
push 0x43e670
mov ecx, 0x11db
xor edx, edx
mov esi, ebx
call fcn.004f47c0
add esp, 0x10
mov edi, 0x80004005
jmp 0x47cf40
cmp eax, 0x4e475349
jne 0x47c50c
mov eax, dword [ebx + 0x48]
cmp dword [ebp - 0x54], eax
jbe 0x47c50c
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebx]
push ecx
push eax
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
push eax
push 0x43e6a8
mov ecx, 0x119a
jmp 0x47c4cc
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov dword [ebp - 0xd0], eax
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x47cebd
mov esi, dword [ebp - 0x64]
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
add esi, esi
push esi
mov ebx, eax
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
push 1
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0xa0]
push ecx
mov eax, 8
call fcn.0045e1f0
mov edi, eax
test edi, edi
jl 0x47cf40
lea edx, [ebp - 0xcc]
push edx
push 1
push ebx
lea eax, [ebp - 0xa0]
push eax
mov eax, esi
call fcn.0045e1f0
mov edi, eax
test edi, edi
jl 0x47cf40
xor eax, eax
mov byte [ebp - 0x49], 0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x5c], eax
jbe 0x47ce81
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x6c]
mov edi, dword [ebx + esi*4]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x80], esi
cmp esi, dword [ebp - 0x5c]
jae 0x47c635
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x47c632
mov ecx, dword [eax + 0x28]
cmp ecx, dword [edi + 0x28]
jne 0x47c632
mov eax, dword [eax + 0x94]
mov ecx, dword [edi + 0x94]
cmp eax, ecx
je 0x47c62c
test eax, eax
je 0x47c632
test ecx, ecx
je 0x47c632
mov ecx, dword [ecx + 0x24]
mov eax, dword [eax + 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47c623
test dl, dl
je 0x47c61f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47c623
add eax, 2
add ecx, 2
test dl, dl
jne 0x47c603
xor eax, eax
jmp 0x47c628
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x47c632
inc esi
cmp esi, dword [ebp - 0x5c]
jb 0x47c5d6
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x64]
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x7c]
lea ebx, [eax + edx*8]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
sub eax, 0x4e475349
mov dword [ebp - 0x88], ebx
mov byte [ebx + 0x14], 0
mov dword [ebp - 0x84], ecx
je 0x47c662
sub eax, 6
jne 0x47c66b
lea ecx, [ebx + 0x15]
mov dword [ebp - 0x84], ecx
mov byte [ecx], 0
mov eax, dword [edi + 0x94]
test eax, eax
je 0x47cf01
cmp dword [eax + 0x24], 0
je 0x47cf01
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx + 0x94]
mov esi, dword [ecx + 0x24]
mov eax, dword [ebp - 0x50]
push 0
lea edx, [ebp - 0xb0]
push edx
push esi
push eax
lea edx, [ebp - 0xac]
call fcn.004fa260
mov edi, eax
test edi, edi
jl 0x47cf40
lea eax, [ebp - 0x48]
mov ecx, eax
xor edi, edi
mov edx, 0x3f
sub esi, ecx
lea ecx, [edx + 0x7fffffbf]
test ecx, ecx
je 0x47c6de
mov cl, byte [eax + esi]
test cl, cl
je 0x47c6de
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x47c6c3
jmp 0x47c6e2
test edx, edx
jne 0x47c6e8
dec eax
mov edi, 0x8007007a
mov byte [eax], 0
test edi, edi
jl 0x47cec7
mov esi, dword [ebp - 0x80]
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0x48]
mov byte [ebp + edx - 0x48], 0
mov dword [ebp - 0x70], eax
cmp esi, dword [ebp - 0x68]
jae 0x47c75b
lea esp, [esp]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax + 0x2c]
xor dl, dl
cmp eax, 3
ja case.default.0x47c720
jmp dword [eax*4 + 0x47cfbc]
mov dl, 1
jmp case.default.0x47c720
mov dl, 2
jmp case.default.0x47c720
mov dl, 4
jmp case.default.0x47c720
mov dl, 8
or byte [ebx + 0x14], dl
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + esi*4]
mov ecx, dword [eax + 0xc]
and ecx, 0x1000
xor eax, eax
or eax, ecx
jne 0x47c755
mov eax, dword [ebp - 0x84]
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x68]
jb 0x47c710
mov ecx, dword [ebp - 0x84]
mov al, byte [ecx]
test al, al
setne byte [ebp - 0x75]
cmp dword [ebp + 0xc], 0x4e47534f
jne 0x47c778
not al
and al, 0xf
mov byte [ecx], al
mov esi, dword [ebp - 0x58]
mov eax, dword [esi + 0x98]
mov edi, dword [ebp - 0x50]
cmp eax, 0xffffffff
je 0x47c7c2
test byte [edi + 0xb2], 0x20
je 0x47c7b6
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp eax, 6
je 0x47c7c2
mov edx, dword [edi]
mov eax, dword [esi + 0x98]
mov edx, dword [edx + 0x14]
push eax
mov ecx, edi
call edx
cmp eax, 4
je 0x47c7c2
movzx eax, word [esi + 0x9a]
mov dword [ebx + 4], eax
jmp 0x47c7d4
mov ecx, dword [esi + 0x9c]
shr ecx, 2
add ecx, dword [ebp - 0xb0]
mov dword [ebx + 4], ecx
cmp dword [esi + 0x94], 0
je 0x47cee9
mov edx, dword [edi]
mov eax, dword [esi + 0x98]
mov edx, dword [edx + 0x14]
push eax
mov ecx, edi
call edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x60], 0
cmp eax, 1
jne 0x47c825
lea eax, [ebp - 0x48]
push 0x43e770
push eax
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x47c8d7
mov dword [ebp - 0x70], 0x43e770
jmp 0x47c8d7
cmp eax, 0x1b
jne 0x47c84f
lea ecx, [ebp - 0x48]
push 0x43e77c
push ecx
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x47c8d7
mov dword [ebp - 0x70], 0x43e77c
jmp 0x47c8d7
cmp eax, 0xd
jne 0x47c876
lea edx, [ebp - 0x48]
push 0x43a630
push edx
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x47c8d7
mov dword [ebp - 0x70], 0x43a630
jmp 0x47c8d7
cmp eax, 0x15
jne 0x47c899
lea eax, [ebp - 0x48]
push 0x43c908
push eax
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
je 0x47c8d7
mov dword [ebp - 0x70], 0x43c908
jmp 0x47c8d7
cmp eax, 0xf
jne 0x47c8d7
mov esi, dword [esi + 0x84]
test esi, esi
je 0x47c8ad
add esi, 0x10
jmp 0x47c8af
xor esi, esi
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, esi
push 0x43e788
mov ecx, 0x11e7
mov esi, edi
call fcn.004f47c0
add esp, 0xc
mov byte [ebp - 0x49], 1
cmp dword [ebp + 0xc], 0x4e47534f
jne 0x47c96d
cmp dword [ebp - 0x64], 0
jbe 0x47c96d
mov edi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x64]
mov ecx, dword [edi]
test ecx, ecx
jbe 0x47c965
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 4]
cmp eax, dword [edi + 4]
jne 0x47c965
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x47c965
cmp dword [eax + 0xc], ecx
je 0x47c924
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x47c916
jmp 0x47c965
mov eax, dword [eax]
test eax, eax
je 0x47c965
mov ecx, dword [ebp - 0x70]
push ecx
push eax
call sub.msvcrt.dll__stricmp
add esp, 8
test eax, eax
jne 0x47c965
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x58]
mov edx, dword [edx + 0x94]
push eax
push 0x43e7a8
mov ecx, 0x1197
call fcn.004f47c0
add esp, 0xc
mov byte [ebp - 0x49], 1
add edi, 0x18
sub ebx, 1
jne 0x47c8f4
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x70]
push esi
push 6
push eax
lea ecx, [ebp - 0xa0]
push ecx
or eax, 0xffffffff
call fcn.0045e1f0
cmp dword [ebp + 0xc], 0x4e475349
jne 0x47c9b0
mov edx, dword [ebp - 0x50]
test byte [edx + 0xb1], 8
je 0x47c9b0
cmp dword [ebp - 0x80], 0x14
jne 0x47c9b0
mov edi, dword [ebp - 0x58]
mov dword [esi + 0x10], 0xffffffff
jmp 0x47c9b9
mov edi, dword [ebp - 0x58]
mov eax, dword [edi + 0x28]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x50]
test byte [ecx + 0xb2], 0x40
mov eax, dword [edi + 0x84]
mov ebx, 1
mov dword [ebp - 0x54], ebx
jne 0x47c9fa
test eax, eax
je 0x47c9fa
mov eax, dword [eax + 0x48]
lea edx, [ebp - 0x74]
push edx
mov edx, dword [edi + 0x88]
push edx
push eax
call fcn.0046b5c0
mov edi, eax
test edi, edi
jl 0x47cf40
mov edi, dword [ebp - 0x58]
jmp 0x47ca41
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
and eax, 0x70001ff
and ecx, 0x80000000
cmp eax, 0x20
ja 0x47ca58
jb 0x47ca16
test ecx, ecx
ja 0x47ca6e
test ecx, ecx
jne 0x47ca6e
cmp eax, 0x20
je 0x47ca77
test ecx, ecx
jne 0x47ca6e
cmp eax, 2
je 0x47ca3a
test ecx, ecx
jne 0x47ca6e
cmp eax, 4
je 0x47ca77
test ecx, ecx
jne 0x47ca6e
cmp eax, 0x10
jne 0x47ca6e
mov dword [ebp - 0x74], 2
mov eax, dword [ebp - 0x74]
dec eax
cmp eax, 0x12
ja case.0x47ca51.4
movzx ecx, byte [eax + 0x47cfdc]
jmp dword [ecx*4 + 0x47cfcc]
test ecx, ecx
jne 0x47ca6e
cmp eax, 0x80
je 0x47ca3a
test ecx, ecx
jne 0x47ca6e
cmp eax, 0x100
je 0x47ca77
mov dword [ebp - 0x74], 0x13
jmp 0x47ca41
mov dword [ebp - 0x74], 3
jmp 0x47ca41
mov ebx, 2
mov dword [ebp - 0x54], 3
jmp case.0x47ca51.4
mov dword [ebp - 0x54], 2
jmp case.0x47ca51.4
mov dword [ebp - 0x54], ebx
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, eax
mov dword [ebp - 0xc4], edx
and ecx, 0x20000000
xor edx, edx
or ecx, edx
je 0x47cabc
lea ebx, [edx + 1]
jmp 0x47cb29
mov edx, eax
and edx, 0x40000000
xor edi, edi
mov ecx, edx
or ecx, edi
je 0x47cadf
mov ecx, eax
and ecx, 0x10000000
xor esi, esi
or ecx, esi
je 0x47cadf
lea ebx, [edi + 7]
jmp 0x47cb26
or edx, edi
je 0x47caea
mov ebx, 6
jmp 0x47cb26
mov edx, eax
and edx, 0x8000000
xor edi, edi
mov ecx, edx
or ecx, edi
je 0x47cb0d
mov ecx, eax
and ecx, 0x10000000
xor esi, esi
or ecx, esi
je 0x47cb0d
lea ebx, [edi + 5]
jmp 0x47cb26
or edx, edi
je 0x47cb18
mov ebx, 3
jmp 0x47cb26
and eax, 0x10000000
xor ecx, ecx
or eax, ecx
je 0x47cb26
lea ebx, [ecx + 4]
mov edi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
test byte [eax + 0xb7], 0x80
je 0x47cb43
cmp dword [ebp - 0x80], 0x1a
jne 0x47cb43
mov ebx, 1
mov dword [ebp - 0x54], ebx
test byte [eax + 0xb1], 0x10
je 0x47cc88
cmp dword [ebp + 0xc], 0x4e475349
jne 0x47cc88
cmp ebx, 6
je 0x47cb67
cmp ebx, 7
jne 0x47cbc2
test byte [eax + 0xb6], 8
jne 0x47cbc2
mov eax, dword [edi + 0x84]
cmp eax, dword [ebp - 0xa4]
je 0x47cbaf
test eax, eax
je 0x47cb87
lea esi, [eax + 0x10]
jmp 0x47cb89
xor esi, esi
mov edi, dword [ebp - 0x50]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push eax
mov edx, esi
push 0x43e7c8
mov ecx, 0x11d8
mov esi, edi
call fcn.004f47c0
mov edi, dword [ebp - 0x58]
add esp, 8
mov ecx, dword [edi + 0x84]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 0x49], 1
cmp ebx, 1
jne 0x47cc21
test byte [eax + 0xb6], 0x10
jne 0x47cc88
mov eax, dword [edi + 0x84]
cmp eax, dword [ebp - 0xa8]
je 0x47cc13
test eax, eax
je 0x47cbeb
lea esi, [eax + 0x10]
jmp 0x47cbed
xor esi, esi
mov edi, dword [ebp - 0x50]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push eax
mov edx, esi
push 0x43e7f8
mov ecx, 0x11d8
mov esi, edi
call fcn.004f47c0
mov edi, dword [ebp - 0x58]
add esp, 8
mov ecx, dword [edi + 0x84]
mov dword [ebp - 0xa8], ecx
jmp 0x47cc84
cmp ebx, 5
je 0x47cc30
cmp ebx, 7
je 0x47cc30
cmp ebx, 4
jne 0x47cc88
test byte [eax + 0xb6], 0x20
jne 0x47cc88
mov eax, dword [edi + 0x84]
cmp eax, dword [ebp - 0x90]
je 0x47cc78
test eax, eax
je 0x47cc50
lea esi, [eax + 0x10]
jmp 0x47cc52
xor esi, esi
mov edi, dword [ebp - 0x50]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
push eax
mov edx, esi
push 0x43e820
mov ecx, 0x11d8
mov esi, edi
call fcn.004f47c0
mov edi, dword [ebp - 0x58]
add esp, 8
mov ecx, dword [edi + 0x84]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 0x49], 1
mov eax, dword [ebp - 0x80]
dec eax
cmp eax, 0x1b
ja case.0x47cc9c.2
movzx edx, byte [eax + 0x47d01c]
jmp dword [edx*4 + 0x47cff0]
mov esi, 2
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 3
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 1
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 4
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 5
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 6
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 7
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 8
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 9
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, 0xa
mov dword [ebp - 0x60], esi
jmp 0x47cd0a
mov esi, dword [ebp - 0x60]
mov eax, esi
call fcn.00467250
cmp dword [ebp - 0x54], 3
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 8], eax
ja case.default.0x47cd23
mov edx, dword [ebp - 0x54]
jmp dword [edx*4 + 0x47d038]
xor eax, eax
jmp 0x47cd46
mov eax, 1
jmp 0x47cd46
mov eax, 2
jmp 0x47cd46
mov eax, 3
jmp 0x47cd46
mov eax, dword [ebp - 0x54]
cmp dword [ebp + 0xc], 0x4e47534f
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 0xc], eax
jne 0x47cd98
cmp esi, 1
jne 0x47cd98
mov edx, dword [ebp - 0x84]
cmp byte [edx], 0
je 0x47cd98
mov edx, dword [edi + 0x84]
test edx, edx
je 0x47cd77
add edx, 0x10
jmp 0x47cd79
xor edx, edx
mov esi, dword [ebp - 0x50]
push 0x43e848
mov ecx, 0x11e1
call fcn.004f47c0
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x60]
add esp, 4
mov byte [ebp - 0x49], 1
mov eax, dword [ebp - 0x50]
test byte [eax + 0xb1], 0x10
je 0x47cdd0
cmp dword [ebp + 0xc], 0x4e475349
jne 0x47cdd0
cmp byte [ebp - 0x75], 0
je 0x47cdd0
cmp esi, 0xa
je 0x47cdc6
mov eax, dword [edi + 8]
and eax, 0x40000000
xor ecx, ecx
or eax, ecx
je 0x47cdd0
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 0x3664], 1
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
and eax, 0x400
xor ecx, ecx
or eax, ecx
je 0x47cde5
mov al, 1
jmp 0x47cde7
xor al, al
cmp dword [ebp + 0xc], 0x4e475349
mov esi, dword [ebp - 0x88]
lea edx, [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x8c]
push ecx
push ebx
push edx
push eax
sete al
movzx ecx, al
mov eax, dword [ebp - 0x70]
push ecx
call fcn.00467c00
mov edi, eax
test edi, edi
jl 0x47cf40
cmp edi, 1
mov edi, dword [ebp - 0x8c]
jne 0x47ce55
mov edx, dword [ebp - 0x58]
mov edx, dword [edx + 0x84]
test edx, edx
je 0x47ce3e
add edx, 0x10
jmp 0x47ce40
xor edx, edx
mov esi, dword [ebp - 0x50]
push edi
mov ecx, 0x11e0
call fcn.004f47c0
add esp, 4
mov byte [ebp - 0x49], 1
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x5c]
inc dword [ebp - 0x64]
add esp, 4
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x68], eax
jb 0x47c5c2
cmp byte [ebp - 0x49], 0
jne 0x47c4d8
mov esi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa0]
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 ebx, eax
add esp, 4
test ebx, ebx
jne 0x47cf08
mov edi, 0x8007000e
jmp 0x47cf40
mov edx, dword [ebp - 0x58]
mov edx, dword [edx + 0x94]
mov esi, dword [ebp - 0x50]
push 0x3f
push 0x43e714
mov ecx, 0x11dd
call fcn.004f47c0
add esp, 8
jmp 0x47cf40
push 0x43e740
mov esi, dword [ebp - 0x50]
xor ecx, ecx
xor edx, edx
call fcn.004f47c0
mov edi, 0x80004005
jmp 0x47cf3d
push 0x43e6e0
jmp 0x47ceee
push esi
lea eax, [ebp - 0xa0]
push eax
mov eax, ebx
call fcn.0045e370
mov edi, eax
test edi, edi
jl 0x47cf37
mov edx, dword [ebp + 0xc]
push ebx
lea ecx, [esi*4]
push ecx
mov ecx, dword [ebp - 0xb4]
push edx
call fcn.0054a0f8
mov edi, eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x6c]
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x7c]
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 - 0x98]
add esp, 4
test eax, eax
je 0x47cfa5
mov esi, eax
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 8]
test al, 8
jne 0x47cf87
test al, 1
jne 0x47cf92
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 - 0x98]
add esp, 4
test eax, eax
jne 0x47cf71
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054b0c8
mov esp, ebp
pop ebp
ret 0x18