Function at 0x416636
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57311f
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5e3c30]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.0043e61e
pop ecx
push eax
call fcn.00545685
pop ecx
call fcn.00545697
mov dword [ebp - 0x44], eax
push 0x5b178c
lea ecx, [ebp - 0x40]
call fcn.00407628
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x44]
and eax, reloc.LUNAR.dll_Ordinal_1
jns 0x416696
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4166b6
push 0x5b1790
lea ecx, [ebp - 0x40]
call fcn.004076b0
push 0x5b1794
lea ecx, [ebp - 0x40]
call fcn.004076b0
jmp 0x4166c3
push 0x5b1798
lea ecx, [ebp - 0x40]
call fcn.004076b0
call fcn.00545697
mov esi, eax
call fcn.00545697
cdq
push 0x64
pop ecx
idiv ecx
mov ecx, edx
mov eax, esi
cdq
idiv ecx
mov dword [ebp - 0x48], edx
and dword [ebp - 0x4c], 0
jmp 0x4166ec
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x48]
jge 0x416725
call fcn.00545697
and eax, reloc.LUNAR.dll_Ordinal_1
jns 0x416705
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x416718
push 0x5b17a0
lea ecx, [ebp - 0x40]
call fcn.004076b0
jmp 0x416723
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x40]
call fcn.004076c6
jmp 0x4166e5
lea ecx, [ebp - 0x40]
call fcn.00405e71
push eax
push 0x5b17a4
call fcn.005455c8
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401d44
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 0x20], eax
and dword [ebp - 0x10], 0
jmp 0x41677a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
add eax, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
jge 0x416825
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x10], 0
jne 0x4167dc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x4167da
push 4
push 0x1000
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x14]
call fcn.00547d40
add esp, 0xc
jmp 0x41676a
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0x14]
call fcn.0054ace0
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x41676a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00543a33
leave
ret