Function at 0x547a60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov ebx, ecx
lea edx, [esp + 0x2c]
push edi
push edx
push 2
mov ecx, dword [ebx + 0x2c]
lea edi, [ebx + 0xd8]
push 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, dword [ecx]
push 0
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
call dword [eax + 0x10]
test eax, eax
jne 0x547ad2
mov eax, dword [esp + 0x34]
lea ecx, [ebx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov dword [ecx], esi
mov dword [ecx + 4], eax
test eax, eax
ja 0x547adb
jb 0x547ac8
cmp esi, 0x20000
jae 0x547adb
cmp esi, 0x16
jae 0x547ae3
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x20], 0x20000
push ecx
mov ecx, ebx
call fcn.00545950
test eax, eax
jne 0x547ad2
push dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x24]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [esp + 0x38]
push 0
sbb edx, eax
mov eax, dword [ecx]
push edx
push esi
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x547ad2
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x2c]
push eax
mov dword [esp + 0x20], esi
call fcn.00558f10
mov ecx, dword [esp + 0x20]
add esp, 4
add dword [ebx + 0x10], ecx
mov edx, eax
mov dword [ebx + 0xc], ecx
adc dword [ebx + 0x14], 0
add dword [ebx + 0x18], ecx
mov dword [ebx + 8], 0
adc dword [ebx + 0x1c], 0
test edx, edx
je 0x547b57
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ecx, esi
jne 0x547acd
add esi, 0xffffffeb
je 0x547acd
mov ecx, dword [ebx]
dec esi
cmp byte [ecx + esi], 0x50
je 0x547b80
test esi, esi
je 0x547acd
dec esi
cmp byte [ecx + esi], 0x50
jne 0x547b71
cmp dword [ecx + esi], 0x6054b50
jne 0x547d31
mov byte [edi], 0
movzx eax, word [ecx + esi + 4]
mov dword [esp + 0x24], eax
mov dword [edi + 8], eax
movzx eax, word [ecx + esi + 6]
mov dword [edi + 0xc], eax
movzx eax, word [ecx + esi + 8]
cdq
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
movzx eax, word [ecx + esi + 0xa]
cdq
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
mov eax, dword [ecx + esi + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
mov eax, dword [ecx + esi + 0x10]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov ax, word [ecx + esi + 0x14]
mov word [edi + 2], ax
cmp esi, 0x14
jb 0x547d25
cmp dword [esi + ecx - 0x14], 0x7064b50
jne 0x547d25
mov edx, dword [esi + ecx - 0xc]
mov eax, dword [esi + ecx - 4]
test eax, eax
mov dword [esp + 0x18], edx
mov edx, dword [esi + ecx - 8]
mov dword [esp + 0x1c], edx
mov edx, 1
cmove eax, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
dec eax
cmp edx, eax
je 0x547c2f
cmp edx, 0xffff
jne 0x547d25
mov eax, dword [esi + ecx - 0x10]
cmp eax, dword [esp + 0x2c]
jae 0x547d25
cmp eax, edx
je 0x547c4d
cmp edx, 0xffff
jne 0x547d45
mov edx, dword [esp + 0x18]
lea eax, [esi - 0x14]
xor edi, edi
mov ebx, esi
sub ebx, dword [esp + 0x20]
sbb edi, edi
add ebx, dword [esp + 0x30]
adc edi, dword [esp + 0x34]
add ebx, 0xffffffb4
adc edi, 0xffffffff
cmp eax, 0x38
jb 0x547ca2
cmp byte [ebp + 8], 0
jne 0x547c81
cmp ebx, edx
jne 0x547cac
cmp edi, dword [esp + 0x1c]
jne 0x547cac
add ecx, 0xffffffc8
add ecx, eax
mov dword [esp + 0x2c], ecx
cmp dword [ecx], 0x6064b50
jne 0x547ca2
cmp dword [ecx + 4], 0x2c
jne 0x547ca2
cmp dword [ecx + 8], 0
je 0x547d53
cmp ebx, edx
jne 0x547cac
cmp edi, dword [esp + 0x1c]
je 0x547cca
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00547940
test eax, eax
je 0x547dc7
cmp byte [ebp + 8], 0
je 0x547d1d
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x40]
mov ecx, dword [eax + 0x44]
mov eax, edx
or eax, ecx
je 0x547d1d
add edx, dword [esp + 0x18]
adc ecx, dword [esp + 0x1c]
cmp edx, ebx
jne 0x547cf0
cmp ecx, edi
je 0x547d1d
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push edi
push ecx
push edx
mov ecx, ebx
call fcn.00547940
test eax, eax
jne 0x547d25
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 8]
jbe 0x547de4
test esi, esi
jne 0x547b68
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80004001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
sub ebx, dword [esp + 0x18]
mov byte [edx], 1
movzx eax, word [ecx + 0xc]
mov word [edx + 4], ax
movzx eax, word [ecx + 0xe]
sbb edi, dword [esp + 0x1c]
mov word [edx + 6], ax
mov eax, dword [ecx + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 0x2c], ecx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
jne 0x547e22
mov edx, dword [edi + 0x28]
xor eax, eax
sub esi, dword [esp + 0x20]
mov ecx, dword [edi + 0x2c]
sbb eax, eax
add esi, dword [esp + 0x30]
adc eax, dword [esp + 0x34]
add edx, dword [edi + 0x20]
adc ecx, dword [edi + 0x24]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
cmp esi, edx
jne 0x547e18
cmp eax, ecx
je 0x547e22
sub esi, edx
mov dword [ebx + 0x38], esi
sbb eax, ecx
mov dword [ebx + 0x3c], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4