Function at 0x157e573
Capabilities:
Enumerate pe sections

Disassembly:
endbr32
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
test ebx, ebx
je 0x157e5e4
mov ecx, dword [ebx]
test ecx, ecx
je 0x157e5e4
mov edx, dword [ebx + 4]
test edx, edx
je 0x157e5e4
cmp dword [ebp - 0x30], 0
je 0x157e614
cmp dword [ebp - 0x30], 0x234d0
je 0x157e614
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x157e5e4
mov eax, dword [eax + 0xc]
test eax, eax
je 0x157e5e4
cmp dword [eax + 0xb8], 0
je 0x157e5e4
cmp dword [eax + 0xbc], 0
jne 0x157e614
push edi
mov dword [0x234d8], 0x16
push 0x20044
push 0x1d333
push 0
push 0x100
push 0xe6d
push 0x1d336
push 0x20044
jmp 0x157eb18
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x157e628
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x157e637
mov edi, dword [ebp - 0x1c]
test byte [edi + 0x10], 2
je 0x157e637
cmp dword [ebp - 0x28], 0x20
jne 0x157e65b
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
jmp 0x157eb57
mov edi, dword [ebx + 0xc]
test eax, eax
mov dword [ebp - 0x24], edi
jne 0x157e66b
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], ecx
jne 0x157e676
mov dword [ebx + 0x1c], edx
cmp dword [ebp - 0x28], 0xffffffff
je 0x157eb31
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x50], eax
add eax, dword [ecx + 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp dword [ebx + 0x10], 0
jne 0x157e6ae
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x10], eax
mov eax, 1
cmp dword [ebx + 8], 0
mov esi, dword [ebx + 0x10]
je 0x157e6d4
cmp dword [ebp - 0x28], 0
mov dword [ebx + 8], 0
jne 0x157e6cd
test eax, eax
je 0x157e6cd
cmp dword [esi], 0x20
ja 0x157e730
mov edi, esi
jmp 0x157e84d
mov eax, dword [ebp - 0x2c]
sub eax, esi
cmp eax, 0x19
jle 0x157eadf
movzx eax, word [esi + 4]
test al, 7
jne 0x157eadf
cmp ax, 0x19
jbe 0x157eadf
lea edi, [esi + eax]
cmp dword [ebp - 0x2c], edi
je 0x157eb28
mov eax, dword [ebp - 0x2c]
sub eax, edi
cmp eax, 0x19
jle 0x157eadf
cmp dword [ebp - 0x28], 0
jne 0x157e84d
cmp dword [esi], 0x1f
ja 0x157e84d
cmp dword [edi], 0x20
jbe 0x157e84d
mov esi, edi
mov eax, dword [ebp - 0x30]
or eax, dword [ebp - 0x40]
jne 0x157e748
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x3c]
jne 0x157e748
mov eax, dword [ebp - 0x58]
or eax, dword [ebp - 0x5c]
je 0x157e76e
push esi
mov dword [0x234d8], 0x16
push 0x2002c
push 0x1d333
push 0
push 0x100
push 0xc4f
jmp 0x157eb0e
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx], eax
xor ecx, ecx
movzx edx, word [eax + 0x14]
add eax, edx
xor edx, edx
mov dword [ebx + 4], eax
push ebx
push 0
mov eax, 0x20
push 0
push 1
call fcn.0158db59
add esp, 0x10
mov dword [ebx + 0x10], esi
mov dword [ebx + 8], 1
test eax, eax
jne 0x157e7b6
xor eax, eax
jmp 0x157ebb1
cmp dword [0x234d8], 2
jne 0x157ebb1
push ebx
mov dword [0x234d8], 5
push ebx
push 0x1d36c
push 0
push pe_nt_image_headers32
push 0xc70
jmp 0x157eb0e
cmp dword [ebp - 0x2c], edi
jb 0x157eadf
cmp dword [ebp - 0x2c], edi
mov dword [ebx + 0x10], edi
je 0x157eb28
lea eax, [edi + 0x1a]
cmp dword [ebp - 0x2c], eax
jb 0x157eadf
movzx edx, word [edi + 4]
mov eax, edx
lea esi, [edi + edx]
cmp dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
jb 0x157eadf
test al, 7
jne 0x157eadf
cmp ax, 5
jbe 0x157eadf
mov al, byte [edi + 6]
mov byte [ebp - 0x48], al
test al, al
jne 0x157e85a
cmp dword [ebp - 0x28], 0
je 0x157e872
mov eax, dword [ebp - 0x28]
cmp eax, dword [edi]
jb 0x157eb63
je 0x157e872
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x1c], edi
jbe 0x157e7e5
jmp 0x157eadf
movzx edx, byte [ebp - 0x48]
movzx eax, byte [edi + 7]
add edx, edx
add eax, edx
add eax, edi
cmp dword [ebp - 0x2c], eax
jae 0x157e837
jmp 0x157eadf
movzx eax, byte [ebp - 0x48]
mov dword [ebp - 0x34], eax
movzx eax, byte [edi + 7]
add eax, edi
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x28], 0
je 0x157e948
cmp dword [ebp - 0x30], 0x234d0
jne 0x157e8a0
cmp dword [ebp - 0x34], 0
je 0x157e8da
jmp 0x157eb63
cmp dword [ebp - 0x30], 0
je 0x157e8da
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x40]
push dword [eax + 0xbc]
push dword [eax + 0xb8]
mov eax, dword [ebp - 0x30]
push 0
push dword [ebp - 0x34]
call fcn.0157e426
add esp, 0x10
test eax, eax
je 0x157e8da
jns 0x157e84a
jmp 0x157eb63
mov eax, dword [ebp - 0x58]
or eax, dword [ebp - 0x5c]
je 0x157e948
mov edx, dword [ebp - 0x20]
cmp dword [ebp - 0x50], edx
ja 0x157e948
mov eax, edx
add eax, 6
cmp dword [ebp - 0x2c], eax
jbe 0x157e948
movzx eax, word [edx + 4]
add eax, edx
cmp dword [ebp - 0x2c], eax
jb 0x157e948
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
cmp esi, dword [edx + 8]
mov eax, edx
sbb ecx, dword [edx + 0xc]
jl 0x157e948
mov edx, dword [edi]
cmp dword [eax], edx
jne 0x157e948
mov esi, eax
movzx eax, byte [ebp - 0x48]
cmp al, byte [esi + 6]
jne 0x157e948
cmp dword [ebp - 0x34], eax
jne 0x157e948
cmp dword [ebp - 0x34], 0
je 0x157e84a
movzx eax, byte [esi + 7]
mov ecx, dword [ebp - 0x54]
add eax, esi
mov edx, dword [ebp - 0x34]
call fcn.0157e3d2
test eax, eax
jne 0x157e84a
mov ecx, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
movzx eax, cx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
movzx edx, cx
cmp edx, dword [eax + 4]
jne 0x157e988
cmp esi, dword [eax]
jne 0x157e988
shr ecx, 0x10
mov eax, dword [eax + 8]
cmp word [eax + 0x10], cx
je 0x157ea22
push ecx
push ecx
push 0x1d388
push 0
push pe_nt_image_headers32
push 0xccc
jmp 0x157e9d9
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
movzx eax, cx
cmp eax, dword [ebp - 0x44]
jne 0x157e9b6
cmp esi, dword [ebp - 0x48]
jne 0x157e9b6
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
jmp 0x157ea22
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x84], 0
jne 0x157e9f0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 0x1d3b6
push 0
push 0x100
push 0xcd9
push 0x1d336
push 0x2002c
call fcn.0157c179
add esp, 0x20
jmp 0x157eadf
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.01587b85
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x157ea17
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 4], eax
jmp 0x157eaeb
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0xc], eax
mov eax, dword [eax + 8]
mov dword [ebx], eax
mov eax, dword [ebx]
mov dword [ebp - 0x48], eax
movzx esi, word [eax + 0x14]
add esi, eax
mov dword [ebx + 4], esi
mov edx, esi
mov eax, dword [ebp - 0x48]
sub edx, dword [ebp - 0x48]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x60], eax
sub eax, edx
test edx, edx
js 0x157eadf
cmp eax, 3
jle 0x157eadf
mov edx, dword [esi]
cmp edx, 0xffffffff
je 0x157e84a
cmp eax, 0x17
jle 0x157eadf
cmp eax, dword [esi + 4]
jl 0x157eadf
mov ax, word [esi + 0xe]
cmp word [edi + 0x18], ax
je 0x157ea75
add esi, dword [esi + 4]
jmp 0x157ea30
cmp edx, dword [edi]
jne 0x157eadf
movzx eax, byte [esi + 9]
cmp dword [ebp - 0x34], eax
jne 0x157eadf
cmp dword [ebp - 0x34], 0
je 0x157ea9d
movzx eax, word [esi + 0xa]
mov ecx, dword [ebp - 0x54]
add eax, esi
mov edx, dword [ebp - 0x34]
call fcn.0157e3d2
test eax, eax
je 0x157eadf
cmp dword [ebp - 0x28], 0
mov dword [ebx + 4], esi
je 0x157e7af
cmp dword [ebp - 0x38], 0
je 0x157e7af
cmp byte [esi + 8], 0
jne 0x157ea70
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi + 0x10]
jne 0x157ea70
push edx
push eax
push dword [ebp - 0x38]
movzx eax, word [esi + 0x14]
add eax, esi
push eax
call fcn.0157d16f
add esp, 0x10
test eax, eax
jne 0x157ea70
jmp 0x157e7af
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x24], edi
jne 0x157ea01
mov eax, dword [ebp - 0x1c]
mov dword [0x234d8], 5
push dword [eax + 4]
push dword [eax]
push 0x1d3ea
push 0
push pe_nt_image_headers32
push 0xd2e
push 0x1d336
push 0x2002c
call fcn.0157c179
add esp, 0x20
or eax, 0xffffffff
jmp 0x157ebb1
mov eax, dword [ebp - 0x28]
dec eax
cmp eax, 0xfffffffd
jbe 0x157eb63
mov eax, ebx
call fcn.0158daa4
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], ebx
mov dword [ebp + 8], 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0158db59
mov eax, dword [ebx + 0x18]
mov dword [ebx], eax
movzx edx, word [eax + 0x14]
add eax, edx
mov dword [ebx + 8], 1
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
push ebx
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
push 0
call fcn.0158db59
add esp, 0x10
test eax, eax
je 0x157eb93
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret