Function at 0x1005cf60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101df098
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x1005cfad
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.1005c5c0
mov eax, dword [edi - 0x20]
test eax, eax
lea ebx, [edi - 0x20]
mov dword [esp + 0x1c], ebx
je 0x1005cff7
cmp eax, dword [ebp + 0x10]
je 0x1005cff7
push 0x507
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
call fcn.1005f0f0
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005d38f
mov eax, dword [ebp + 0x10]
cmp dword [ebx], eax
je 0x1005d020
mov ebx, eax
call fcn.1005f090
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
cmp dword [edi + 0xa8], 0
jne 0x1005d045
push ebx
call fcn.1005b1b0
test eax, eax
je 0x1005d037
push 0xf
jmp 0x1005d039
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]
push edx
mov ecx, ebx
mov byte [esp + 0x1a], 0
call fcn.1005b8c0
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jl 0x1005d07d
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi]
push eax
push 0
push ecx
call fcn.1005ec20
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov esi, dword [ebp + 8]
lea eax, [esi + 0x5c]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
jl 0x1005d359
mov ecx, dword [edi]
test ecx, ecx
je 0x1005d0c0
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x1005d0c0
add esi, 0x70
push esi
push eax
push edx
push ecx
call fcn.1005a780
cmp byte [esp + 0x12], 0
je 0x1005d349
cmp dword [edi], 0
je 0x1005d349
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push eax
call esi
test eax, 0x300000
jne 0x1005d0f8
mov eax, dword [ebp + 8]
or dword [eax + 0xbc], 8
jmp 0x1005d12d
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push 0xfffffffffffffff0
push edx
call esi
mov esi, dword [esp + 0x1c]
and eax, 0xffcfffff
push eax
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esi]
push 0x37
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [edi]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.100e9000
mov dword [esp + 0x58], 0
movzx eax, word [ebx]
cmp ax, 0x4d
je 0x1005d155
cmp ax, 0x6d
jne 0x1005d296
movzx eax, word [ebx + 2]
cmp ax, 0x53
je 0x1005d169
cmp ax, 0x73
jne 0x1005d296
movzx eax, word [ebx + 4]
cmp ax, 0x48
je 0x1005d17d
cmp ax, 0x68
jne 0x1005d296
movzx eax, word [ebx + 6]
cmp ax, 0x54
je 0x1005d191
cmp ax, 0x74
jne 0x1005d296
movzx eax, word [ebx + 8]
cmp ax, 0x4d
je 0x1005d1a5
cmp ax, 0x6d
jne 0x1005d296
movzx eax, word [ebx + 0xa]
cmp ax, 0x4c
je 0x1005d1b9
cmp ax, 0x6c
jne 0x1005d296
cmp word [ebx + 0xc], 0x3a
jne 0x1005d296
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 0x1005d289
lea ecx, [esp + 0x20]
push ecx
call fcn.1018d250
mov byte [esp + 0x58], 1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
lea ecx, [ebx + 0xe]
mov eax, edi
mov edx, edi
call fcn.10029a20
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x20]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
mov dword [esp + 0x14], eax
jl 0x1005d275
lea eax, [esp + 0x18]
push eax
call fcn.1018d250
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x102366bc
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov dword [esp + 0x14], eax
jl 0x1005d266
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
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
lea ecx, [esp + 0x18]
push ecx
call fcn.10128270
mov byte [esp + 0x58], 0
lea edx, [esp + 0x20]
push edx
call fcn.10128270
jmp 0x1005d337
mov dword [esp + 0x14], 0x8007000e
jmp 0x1005d337
lea eax, [esp + 0x18]
push eax
call fcn.1018d250
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x1023671c
push eax
mov eax, dword [ecx]
call eax
cmp dword [esp + 0x18], 0
je 0x1005d328
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x58], 4
mov edi, ebx
lea esi, [esp + 0x3c]
call fcn.1005a5e0
mov byte [esp + 0x58], 5
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0xa4]
call eax
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 byte [esp + 0x58], 4
mov ecx, esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
call esi
mov byte [esp + 0x58], 3
lea edx, [esp + 0x2c]
push edx
call esi
mov byte [esp + 0x58], 0
lea eax, [esp + 0x18]
push eax
call fcn.10128270
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x24]
push ecx
call fcn.10128270
cmp dword [esp + 0x14], 0
jl 0x1005d359
mov edx, dword [ebp + 8]
cmp dword [edx + 0x3c], 0
jne 0x1005d38f
mov esi, dword [esp + 0x28]
call fcn.1005c5c0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x1005d38f
push 0x507
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
cmp dword [esp + 0x14], 0
jge 0x1005d38f
cmp byte [esp + 0x13], 0
je 0x1005d38f
call fcn.1005f0f0
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