Function at 0x4f7fc0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f8f20
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x4f800d
mov eax, 0x80004003
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov edi, dword [ebp + 8]
lea esi, [edi - 0x24]
mov dword [eax], 0
mov dword [esp + 0x14], 1
mov byte [esp + 0x13], 0
mov dword [esp + 0x28], esi
call fcn.004f6450
mov eax, dword [edi - 0x20]
test eax, eax
lea ebx, [edi - 0x20]
mov dword [esp + 0x20], ebx
je 0x4f8057
cmp eax, dword [ebp + 0x10]
je 0x4f8057
push 0x507
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
call fcn.004f7e10
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f834b
mov eax, dword [ebp + 0x10]
cmp dword [ebx], eax
je 0x4f8080
mov ebx, eax
call fcn.004f7820
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x13], 1
cmp dword [edi + 0xa8], 0
jne 0x4f80a5
push ebx
call fcn.004f8420
test eax, eax
je 0x4f8097
push 0xf
jmp 0x4f8099
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [edi + 0xa8], eax
mov ecx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
push ecx
lea edx, [esp + 0x16]
mov ecx, ebx
mov byte [esp + 0x16], 0
call fcn.004f8490
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jl 0x4f80dc
mov edx, dword [ebp + 0x14]
mov eax, dword [edi]
push edx
push 0
push eax
call fcn.004f7880
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x5c]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
jl 0x4f8315
mov eax, dword [edi]
test eax, eax
je 0x4f811e
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x4f811e
add esi, 0x70
push esi
push ecx
push edx
call fcn.004f86e0
cmp byte [esp + 0x12], 0
je 0x4f8305
cmp dword [edi], 0
je 0x4f8305
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push edx
call esi
test eax, 0x300000
jne 0x4f8156
mov eax, dword [ebp + 8]
or dword [eax + 0xbc], 8
jmp 0x4f818b
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push 0xfffffffffffffff0
push ecx
call esi
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
and eax, 0xffcfffff
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
push 0x37
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [edi]
xor esi, esi
cmp edi, esi
mov dword [esp + 0x1c], edi
je 0x4f819f
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov dword [esp + 0x58], esi
movzx eax, word [ebx]
cmp ax, 0x4d
je 0x4f81b6
cmp ax, 0x6d
jne 0x4f8371
movzx eax, word [ebx + 2]
cmp ax, 0x53
je 0x4f81ca
cmp ax, 0x73
jne 0x4f8371
movzx eax, word [ebx + 4]
cmp ax, 0x48
je 0x4f81de
cmp ax, 0x68
jne 0x4f8371
movzx eax, word [ebx + 6]
cmp ax, 0x54
je 0x4f81f2
cmp ax, 0x74
jne 0x4f8371
movzx eax, word [ebx + 8]
cmp ax, 0x4d
je 0x4f8206
cmp ax, 0x6d
jne 0x4f8371
movzx eax, word [ebx + 0xa]
cmp ax, 0x4c
je 0x4f821a
cmp ax, 0x6c
jne 0x4f8371
cmp word [ebx + 0xc], 0x3a
jne 0x4f8371
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax - 0xe]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4f8364
mov dword [esp + 0x24], 0
push esi
mov byte [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [ebx + 0xe]
mov eax, edi
mov edx, edi
call fcn.00429200
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x24]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
mov dword [esp + 0x14], eax
jl 0x4f82d8
mov dword [esp + 0x18], 0
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x63629c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov dword [esp + 0x14], eax
jl 0x4f82c3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f82d8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4f82ed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x1c]
test edi, edi
mov dword [esp + 0x58], 0xffffffff
je 0x4f8305
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp dword [esp + 0x14], 0
jl 0x4f8315
mov edx, dword [ebp + 8]
cmp dword [edx + 0x3c], 0
jne 0x4f834b
mov esi, dword [esp + 0x28]
call fcn.004f6450
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4f834b
push 0x507
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
cmp dword [esp + 0x14], 0
jge 0x4f834b
cmp byte [esp + 0x13], 0
je 0x4f834b
call fcn.004f7e10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov dword [esp + 0x14], 0x8007000e
jmp 0x4f82ed
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x5c], 3
mov eax, dword [edi]
mov edx, dword [eax]
push 0x6362fc
push edi
call edx
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4f83f8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, ebx
lea esi, [esp + 0x3c]
mov byte [esp + 0x58], 4
call fcn.004f8780
mov byte [esp + 0x58], 5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa4]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push edx
push edx
push edx
mov edx, esi
push edx
push eax
mov eax, dword [ecx + 0xd0]
call eax
mov ecx, esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
call esi
lea edx, [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
test eax, eax
mov byte [esp + 0x58], 0
je 0x4f82f1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4f82f1