Function at 0x541754
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x30], eax
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00540ce0
add esp, 0xc
mov eax, 1
test eax, eax
je 0x5417a1
mov ecx, dword [ebp - 5]
and ecx, 0xff
and ecx, 0x20
test ecx, ecx
je 0x5417a1
mov eax, 6
jmp 0x541ac2
mov edx, dword [ebp - 5]
and edx, 0xff
and edx, 1
test edx, edx
je 0x541850
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xb], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0
mov word [ebp - 0x2c], 1
jmp 0x5417da
mov dx, word [ebp - 0x2c]
add dx, 1
mov word [ebp - 0x2c], dx
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
cmp eax, 0x64
jge 0x541819
mov cx, word [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00540ba4
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.0054223b
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x541817
jmp 0x541819
jmp 0x5417ce
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
cmp eax, 0x64
jne 0x541830
mov eax, 7
jmp 0x541ac2
cmp dword [ebp - 0x1c], 4
je 0x54183e
mov eax, dword [ebp - 0x1c]
jmp 0x541ac2
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 5]
mov byte [ecx + 0xb], dl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 5]
and edx, 0xff
and edx, 2
test edx, edx
je 0x5418a5
mov word [ebp - 0x14], 0
jmp 0x541874
mov ax, word [ebp - 0x14]
add ax, 1
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
mov edx, dword [ebp - 0x30]
xor eax, eax
mov ax, word [edx + ecx*2]
test eax, eax
je 0x54188c
jmp 0x541868
mov eax, dword [ebp - 0x14]
and eax, 0xffff
add eax, 0x19
cdq
mov ecx, 0xd
idiv ecx
mov word [ebp - 0x14], ax
jmp 0x5418ab
mov word [ebp - 0x14], 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00541af7
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5418ca
mov eax, dword [ebp - 0x1c]
jmp 0x541ac2
mov word [ebp - 0x24], 0
mov ax, word [ebp - 0x24]
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00541157
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5418fb
jmp 0x541981
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov cl, byte [eax]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
cmp edx, 0xe5
je 0x541923
mov eax, dword [ebp - 0x18]
and eax, 0xff
test eax, eax
jne 0x541960
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
test ecx, ecx
jne 0x54193b
mov edx, dword [ebp + 8]
mov ax, word [edx + 6]
mov word [ebp - 0x24], ax
mov cx, word [ebp - 0x2c]
add cx, 1
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 0x2c]
and edx, 0xffff
mov eax, dword [ebp - 0x14]
and eax, 0xffff
cmp edx, eax
jne 0x54195e
jmp 0x541981
jmp 0x541966
mov word [ebp - 0x2c], 0
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00541d03
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5418d8
cmp dword [ebp - 0x1c], 0
jne 0x541a50
mov edx, dword [ebp - 0x14]
and edx, 0xffff
cmp edx, 1
jle 0x541a50
mov ax, word [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00541af7
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x541a50
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call fcn.005421e7
add esp, 4
mov byte [ebp - 4], al
mov cx, word [ebp - 0x14]
sub cx, 1
mov word [ebp - 0x14], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00541157
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5419f9
jmp 0x541a50
mov al, byte [ebp - 4]
push eax
mov cl, byte [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.0054210a
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov byte [ecx + 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00541d03
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x541a50
mov ax, word [ebp - 0x14]
sub ax, 1
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
test ecx, ecx
jne 0x5419d9
cmp dword [ebp - 0x1c], 0
jne 0x541abf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00541157
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x541abf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
push 0x20
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.00541ac6
add esp, 0xc
push 0xb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00540ce0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
xor edx, edx
mov dl, byte [ecx + 0xb]
and edx, 0x18
mov eax, dword [ebp - 0x28]
mov byte [eax + 0xc], dl
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov byte [edx + 4], 1
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret