Function at 0x4add30
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x574044
call fcn.00566e38
sub esp, 0x64
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [edi]
mov dword [ecx], eax
cmp eax, 0x454c4946
je 0x4add59
call fcn.004acd53
jmp 0x4adfed
push ebx
movzx ebx, word [edi + 4]
push esi
movzx esi, word [edi + 6]
test bl, 1
jne 0x4adfe9
mov ecx, dword [ebp + 0xc]
lea edx, [ebx + esi*2]
xor eax, eax
inc eax
shl eax, cl
sub eax, 2
cmp edx, eax
ja 0x4adfe9
test esi, esi
je 0x4adfe9
lea eax, [esi - 1]
cmp eax, dword [ebp + 0x10]
jne 0x4adfe9
cmp ebx, 0x30
jb 0x4addab
mov eax, dword [edi + 0x2c]
cmp eax, dword [ebp + 0x14]
je 0x4addab
test eax, eax
jne 0x4adfe9
movzx eax, word [ebx + edi]
xor edx, edx
inc edx
mov dword [ebp + 0x14], eax
cmp esi, edx
jbe 0x4addec
lea eax, [edi + 2]
add eax, ebx
mov dword [ebp + 8], eax
mov ebx, edx
shl ebx, cl
mov ecx, dword [ebp + 0x14]
cmp word [ebx + edi - 2], cx
mov ecx, dword [ebp + 0xc]
jne 0x4adfe9
mov ax, word [eax]
inc edx
mov word [ebx + edi - 2], ax
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
cmp edx, esi
jb 0x4addc1
mov esi, dword [ebp - 0x10]
mov ax, word [edi + 0x10]
mov word [esi + 4], ax
mov ax, word [edi + 0x16]
movzx ebx, word [edi + 0x14]
mov word [esi + 6], ax
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x24]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0x10]
shl edx, cl
mov dword [esi + 8], eax
cmp ebx, edx
jae 0x4adfe9
mov ecx, dword [ebp + 0xc]
mov eax, ecx
or eax, ebx
test al, 7
jne 0x4adfe9
cmp ecx, edx
ja 0x4adfe9
cmp dword [ebp + 8], edx
jne 0x4adfe9
cmp ebx, ecx
jae 0x4adfe9
xor edx, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
sub ecx, ebx
mov dword [ebp - 4], edx
push ecx
lea eax, [ebx + edi]
mov dword [ebp + 0x10], ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.004ada27
test eax, eax
je 0x4adfd1
cmp dword [ebp + 0x10], eax
jb 0x4adfd1
add ebx, eax
mov eax, dword [ebp - 0x70]
cmp eax, 0xffffffff
je 0x4adffc
sub eax, 0x10
je 0x4adf85
sub eax, 0x20
je 0x4adf34
sub eax, 0x50
je 0x4adf27
sub eax, 0x40
je 0x4aded0
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4adf97
mov ecx, esi
call fcn.0040393c
mov ecx, esi
lea eax, [ebp - 0x70]
push eax
call fcn.004ab35e
jmp 0x4adf97
add esi, 0x68
lea eax, [ebp - 0x60]
cmp eax, esi
je 0x4adf97
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ecx
cmp eax, dword [esi + 4]
je 0x4adf15
mov ecx, esi
call fcn.00405423
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4adf97
push eax
call fcn.00566e05
pop ecx
mov ecx, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
jmp 0x4adf19
test eax, eax
je 0x4adf97
push eax
push ecx
push dword [esi]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x4adf97
lea ecx, [esi + 0x18]
call fcn.0040393c
lea ecx, [esi + 0x18]
jmp 0x4adec2
xor eax, eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], al
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push dword [ebp - 0x60]
call fcn.004adb4b
test al, al
je 0x4adfc2
lea ecx, [esi + 0x24]
call fcn.0040393c
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x24]
call fcn.004ab3a4
cmp dword [ebp - 0x20], 0
je 0x4adf97
push dword [ebp - 0x20]
call fcn.00566e0e
pop ecx
jmp 0x4adf97
push dword [ebp - 0x5c]
lea ecx, [esi + 0x40]
push dword [ebp - 0x60]
call fcn.004ae01f
test al, al
je 0x4adfd1
push dword [ebp - 0x60]
or dword [ebp - 4], 0xffffffff
call fcn.00566e0e
cmp dword [ebp - 0x68], 0
pop ecx
je 0x4adfb3
push dword [ebp - 0x68]
call fcn.00566e0e
pop ecx
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jae 0x4adfe9
mov esi, dword [ebp - 0x10]
jmp 0x4ade50
cmp dword [ebp - 0x20], 0
je 0x4adfd1
push dword [ebp - 0x20]
call fcn.00566e0e
pop ecx
push dword [ebp - 0x60]
call fcn.00566e0e
cmp dword [ebp - 0x68], 0
pop ecx
je 0x4adfe9
push dword [ebp - 0x68]
call fcn.00566e0e
pop ecx
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret 0x14
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jne 0x4adfd1
push dword [ebp - 0x60]
call fcn.00566e0e
cmp dword [ebp - 0x68], 0
pop ecx
je 0x4ae01b
push dword [ebp - 0x68]
call fcn.00566e0e
pop ecx
mov al, 1
jmp 0x4adfeb