Function at 0x6539f5b9
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push 0x12
xor esi, esi
push eax
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.6539d3ed
add esp, 0xc
cmp eax, esi
jl 0x6539f7d4
cmp word [esp + 0x1e], 9
je 0x6539f5fb
mov eax, 0x800a01e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x3c]
add ecx, 0x14
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
cmp ebp, esi
mov dword [esp + 0x38], ebp
jne 0x6539f622
mov eax, 0x8007000e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esp + 0x40]
mov esi, eax
add esi, 0x12
mov dword [esp + 0x10], eax
test edi, edi
je 0x6539f6c9
mov edx, dword [ebx]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov ebp, dword [edx + 0x14]
mov edx, dword [esp + 0x14]
push eax
push 1
push ecx
push edx
push ebx
call ebp
cmp dword [esp + 0x3c], 0x14
jb 0x6539f723
push 0x14
push esi
push ebx
call fcn.6539d3ed
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
jge 0x6539f694
mov esi, dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi], 5
jne 0x6539f723
cmp word [esi + 4], 0x20b
jne 0x6539f723
cmp dword [esi + 0xa], 5
jne 0x6539f723
cmp word [esi + 0xe], 0x20c
jne 0x6539f723
mov ecx, dword [esp + 0x3c]
sub ecx, 0x14
add esi, 0x14
mov dword [esp + 0x3c], ecx
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov dword [eax], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov cx, word [esp + 0x2c]
lea edx, [edi - 0x12]
mov word [eax + 0x10], cx
push edx
push esi
push ebx
call fcn.6539d3ed
add esp, 0xc
mov esi, eax
xor ebx, ebx
cmp esi, ebx
push ebp
jge 0x6539f793
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ax, word [edi + 2]
mov dword [esi], 5
add esi, 4
mov cx, word [edi]
mov dx, word [edi + 6]
push 0
mov word [esi], 0x20b
add esi, 2
sub dx, ax
push 0
mov word [esi], ax
add esi, 2
mov ax, word [edi + 4]
mov word [esi], cx
add esi, 2
sub ax, cx
mov dword [esi], 5
add esi, 4
mov word [esi], 0x20c
add esi, 2
mov word [esi], dx
add esi, 2
mov word [esi], ax
mov ecx, dword [esp + 0x2a]
mov edx, dword [esp + 0x1c]
add ecx, 0xa
mov dword [esp + 0x2a], ecx
mov ecx, dword [esp + 0x20]
push ecx
push edx
push ebx
add esi, 2
call ebp
jmp 0x6539f6c1
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
add edi, 0x14
push edi
push ebp
call fcn.6539e21c
add esp, 8
cmp eax, ebx
jne 0x6539f7be
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 0x800a01e1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x1c], 2
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x28], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret