Function at 0x479d80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x47a1fe
test dword [edi], 0x8000
je 0x47a1fe
mov edx, dword [edi + 8]
movzx eax, word [edx + 0xc]
test ax, ax
je 0x47a1fe
mov edx, dword [edx + 4]
mov dword [esp + 4], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
push ebx
push ebp
mov ebp, eax
mov eax, dword [0x8b81c0]
movzx ecx, bp
mov dword [esp + 0x14], ebp
push esi
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x14], ecx
test edx, edx
je 0x479e05
lea eax, [edx*8]
push eax
push 0
push eax
call fcn.0048bf00
add esp, 4
push eax
call fcn.0050abb0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x479e0d
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x3c], 0
je 0x479eb1
movzx eax, word [ecx + 0x3e]
test ax, ax
je 0x479eb1
mov esi, dword [ecx + 0x14]
mov ebx, eax
mov ebp, dword [esp + 0x1c]
nop
cmp word [esi + 4], 1
jne 0x479ea5
movzx edx, word [esi + 8]
movzx eax, word [esi + 6]
add edx, eax
test dword [edi], 0x8000
je 0x479ea1
test edx, edx
je 0x479ea1
mov eax, dword [edi + 8]
cmp edx, dword [eax + 4]
ja 0x479ea1
mov eax, dword [eax]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
add eax, 0xffffffe8
je 0x479ea1
push dword [esi]
lea edi, [edx*8]
push eax
call fcn.00473840
mov edx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x479e91
mov eax, 3
dec edx
mov word [edi + ebp - 2], ax
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], edx
jmp 0x479ea5
mov eax, 1
mov word [edi + ebp - 2], ax
mov edi, dword [esp + 0x34]
jmp 0x479ea5
mov edx, dword [esp + 0x10]
add esi, 0xc
sub ebx, 1
jne 0x479e30
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], 0
movzx edi, word [ecx + 0x54]
movzx ebx, word [ecx + 0x44]
mov esi, dword [ecx + 8]
mov dword [esp + 0x20], edi
test edx, edx
je 0x47a08c
test edi, edi
je 0x47a08c
cmp dword [esi], 0
je 0x47a022
mov ax, word [esp + 0x38]
test ax, ax
je 0x479ef9
test word [esi + 0x16], ax
je 0x47a022
movzx edx, word [ecx + 0x34]
cmp bp, dx
je 0x479f0c
cmp bp, word [esi + 0x14]
jne 0x47a01e
mov ecx, dword [esi + 8]
cmp ecx, 0x87ff70
je 0x479f1f
cmp ecx, 0x87ff80
jne 0x479f22
mov ecx, dword [esi + 0xc]
cmp ecx, 0x87fec0
je 0x479f36
cmp ecx, 0x87feb0
jne 0x47a01a
xor eax, eax
cmp ecx, 0x87fec0
sete al
add eax, 2
movzx ebp, ax
cmp word [esp + 0x18], dx
jne 0x479f54
movzx eax, word [esi + 0x1a]
jmp 0x479f58
mov eax, dword [esp + 0x2c]
movzx edi, word [esi + 0x18]
add edi, eax
je 0x479f66
cmp edi, dword [esp + 0x28]
jbe 0x479f7c
push 0
push str.__objGetIVars__
push 0
push 0x232d
call fcn.00458c70
add esp, 0x10
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + edi*8 - 2]
cmp dx, bp
jae 0x47a012
mov eax, dword [esp + 0x34]
test dword [eax], 0x8000
je 0x479fe7
test edi, edi
je 0x479fe7
mov eax, dword [eax + 8]
cmp edi, dword [eax + 4]
ja 0x479fe7
mov eax, dword [eax]
lea ecx, [edi + edi*2]
lea eax, [eax + ecx*8]
add eax, 0xffffffe8
je 0x479fe7
test dx, dx
jne 0x479fc0
test dword [eax], 0xfffbffff
je 0x479fe7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [edx + edi*8 - 8]
test ecx, ecx
mov word [edx + edi*8 - 4], ax
mov dword [edx + edi*8 - 8], esi
mov edx, dword [esp + 0x24]
lea eax, [edx + 1]
cmovne eax, edx
mov dword [esp + 0x24], eax
jmp 0x479fec
mov ebp, 3
mov eax, dword [esp + 0x1c]
cmp bp, 3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov word [eax + edi*8 - 2], bp
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
jne 0x47a022
dec edx
mov dword [esp + 0x10], edx
jmp 0x47a022
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add esi, 0x20
sub edi, 1
mov dword [esp + 0x20], edi
jne 0x47a080
mov ax, bx
add ebx, 0xffff
test ax, ax
je 0x47a080
mov ecx, dword [ecx + 0x2c]
movzx eax, bx
cmp bp, word [ecx + eax*4]
jne 0x47a056
mov ax, bx
add ebx, 0xffff
test ax, ax
je 0x47a08c
movzx eax, bx
movzx ebp, word [ecx + eax*4]
movzx eax, word [ecx + eax*4 + 2]
mov dword [esp + 0x2c], eax
mov eax, dword [0x8b81c0]
movzx ecx, bp
mov dword [esp + 0x18], ebp
mov eax, dword [eax + ecx*4]
movzx edi, word [eax + 0x54]
mov esi, dword [eax + 8]
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x14]
test edx, edx
jne 0x479ed4
xor ebx, ebx
push ebx
call fcn.004719e0
push dword [esp + 0x28]
mov esi, eax
push esi
mov dword [esp + 0x2c], esi
call fcn.0046cea0
mov edi, 1
add esp, 0xc
cmp dword [esp + 0x28], edi
jb 0x47a1e0
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x10], 0x18
cmp ebx, dword [esp + 0x24]
jae 0x47a1e0
mov eax, dword [ebp]
test eax, eax
je 0x47a1cd
mov eax, dword [eax]
add ecx, 0x18
inc ebx
mov dword [esp + 0x18], ecx
test dword [esi], 0x8000
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
je 0x47a108
test ebx, ebx
je 0x47a108
mov eax, dword [esi + 8]
cmp ebx, dword [eax + 4]
ja 0x47a108
mov esi, dword [eax]
add esi, 0xffffffe8
add esi, ecx
jmp 0x47a10a
xor esi, esi
push 2
push esi
call fcn.0046cea0
mov ecx, dword [esp + 0x1c]
add esp, 8
movzx eax, word [ebp + 4]
cmp ax, word [ecx + 0x34]
je 0x47a15f
mov ecx, eax
mov eax, dword [0x8b81c0]
push 0
push dword [esp + 0x30]
mov eax, dword [eax + ecx*4]
push 0x74d9fc
push dword [eax]
push 0
call fcn.004f5b30
add esp, 0x14
test dword [esi], 0x8000
je 0x47a17e
mov ecx, dword [esi + 8]
cmp dword [ecx + 4], 1
jb 0x47a17e
push eax
push dword [ecx]
call fcn.004747a0
jmp 0x47a17b
test dword [esi], 0x8000
je 0x47a17e
mov eax, dword [esi + 8]
cmp dword [eax + 4], 1
jb 0x47a17e
push dword [esp + 0x2c]
push dword [eax]
call fcn.004745b0
add esp, 8
mov eax, dword [esp + 0x34]
test dword [eax], 0x8000
je 0x47a1a3
test edi, edi
je 0x47a1a3
mov eax, dword [eax + 8]
cmp edi, dword [eax + 4]
ja 0x47a1a3
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, 0xffffffe8
add ecx, eax
jmp 0x47a1a5
xor ecx, ecx
test dword [esi], 0x8000
je 0x47a1c5
mov eax, dword [esi + 8]
cmp dword [eax + 4], 2
jb 0x47a1c5
mov eax, dword [eax]
push ecx
add eax, 0x18
push eax
call fcn.00473630
add esp, 8
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x10], 0x18
inc edi
add ebp, 8
cmp edi, dword [esp + 0x28]
jbe 0x47a0c4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47a1f4
add eax, 0xfffffffc
push eax
call fcn.0046b7d0
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
xor eax, eax
pop edi
add esp, 0x20
ret