Function at 0x1020efe9
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
jne 0x1020f004
mov dword [ebp + 8], 0x1007eb1c
push dword [ebp + 0xc]
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
mov esi, eax
test esi, esi
jne 0x1020f01d
mov eax, 0xd000007b
jmp 0x1020f3c5
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x18], eax
movzx eax, word [esi + 0x18]
cmp eax, 0x10b
je 0x1020f0c0
cmp eax, 0x20b
jne 0x1020f13e
mov eax, dword [esi + 0x84]
mov ebx, dword [esi + 0x54]
cmp eax, 6
jbe 0x1020f063
lea ecx, [esi + 0xb8]
mov dword [ebp - 0x14], ecx
lea edi, [esi + 0x30]
mov ecx, dword [edi]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x50]
mov dword [ebp - 0x20], ecx
cmp eax, 5
jbe 0x1020f085
lea ecx, [esi + 0xb0]
mov dword [ebp - 0x38], ecx
cmp eax, 0xc
jbe 0x1020f093
lea eax, [esi + 0xe8]
mov dword [ebp - 0x18], eax
test byte [ebp + 0x30], 4
je 0x1020f13e
lea eax, [ebp - 0x44]
push eax
push 8
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1020f11b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x1020f141
cmp dword [esi + 0x74], 6
mov ebx, dword [esi + 0x54]
jbe 0x1020f0d2
lea eax, [esi + 0xa8]
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x74], 5
lea edi, [esi + 0x34]
mov eax, dword [edi]
cdq
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], eax
jbe 0x1020f0f3
lea ecx, [esi + 0xa0]
mov dword [ebp - 0x38], ecx
cmp dword [esi + 0x74], 0xc
jbe 0x1020f102
lea eax, [esi + 0xd8]
mov dword [ebp - 0x18], eax
test byte [ebp + 0x30], 4
je 0x1020f13e
lea eax, [ebp - 0x44]
push eax
push 8
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1020f137
mov eax, dword [ebp - 4]
push 0x100a8450
push dword [eax + 4]
call fcn.1020cbf6
pop ecx
pop ecx
call fcn.100b5cee
jmp 0x1020f3c5
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
jmp 0x1020f141
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
push ecx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push 0
push ebx
mov ebx, dword [ebp - 4]
push 0
push ecx
push edi
push eax
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1020eee0
test eax, eax
jne 0x1020f3c5
movzx eax, word [esi + 0x14]
xor ecx, ecx
and dword [ebp - 0x28], 0
add eax, 0x18
add eax, esi
mov dword [ebp - 0x50], eax
cmp cx, word [esi + 6]
jae 0x1020f308
lea ecx, [eax + 0xc]
lea edx, [eax + 0x14]
mov dword [ebp - 0x1c], ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0xc], edx
add eax, 0x24
mov dword [ebp - 8], eax
cmp dword [edi], 0
mov ebx, dword [ebp - 4]
jne 0x1020f1bb
add eax, 0x28
add edx, 0x28
add edi, 0x28
mov dword [ebp - 8], eax
add ecx, 0x28
jmp 0x1020f2e9
mov ebx, dword [ecx]
mov dword [ebp - 0x24], ebx
mov ebx, dword [edi]
mov dword [ebp - 0x40], ebx
mov ebx, dword [edx]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x34], ebx
mov ebx, dword [eax]
and ebx, 0x80000000
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 4]
je 0x1020f226
test dword [eax], 0x40000000
je 0x1020f226
test byte [eax], 0xc0
je 0x1020f226
test byte [ebp + 0x30], 1
jne 0x1020f226
cmp dword [ebp - 0x18], 0
je 0x1020f1a7
mov edx, dword [ebp - 0x18]
mov edx, dword [edx]
cmp edx, dword [ecx]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0xc]
jb 0x1020f1a7
mov eax, dword [ecx]
add eax, dword [edi]
cmp dword [ebp - 0x24], eax
jae 0x1020f3ce
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ecx]
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x48], 0
je 0x1020f24b
test dword [eax], 0x40000000
je 0x1020f24b
test byte [eax], 0xc0
je 0x1020f24b
test dword [eax], 0x10000000
je 0x1020f24b
test byte [ebp + 0x30], 2
jne 0x1020f1a7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov edx, dword [edi]
test eax, eax
je 0x1020f285
cmp dword [eax], ecx
jb 0x1020f285
mov ebx, dword [ebp - 0x14]
lea eax, [ecx + edx]
cmp dword [ebx], eax
mov ebx, dword [ebp - 4]
jae 0x1020f285
mov eax, dword [ebp - 0x4c]
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
add ebx, dword [eax]
mov eax, ebx
mov dword [ebp - 0x10], ebx
add eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
cmp ecx, dword [ebp - 0x20]
jae 0x1020f292
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x20]
jbe 0x1020f2a8
push dword [ebp - 0x28]
push dword [ebp + 8]
push 0x100a84a0
push dword [ebx + 4]
call fcn.1020cba9
add esp, 0x10
push ecx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp - 0x34]
push dword [ebp - 0x40]
push dword [ebp - 0x24]
push ecx
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1020eee0
test eax, eax
jne 0x1020f3c5
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
push 0x28
pop eax
add dword [ebp - 8], eax
add edx, eax
add edi, eax
add ecx, eax
movzx eax, word [esi + 6]
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], edx
jb 0x1020f19f
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x14]
cmp dword [ebp - 0x2c], ecx
jne 0x1020f315
cmp dword [ebp - 0x30], edi
je 0x1020f351
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x1020f351
cmp dword [edx + 4], 0
je 0x1020f351
push eax
movzx eax, word [esi + 6]
push eax
push dword [ebp + 0x20]
mov eax, edi
push ecx
push dword [ebp + 0x10]
sub ecx, dword [ebp - 0x2c]
push dword [ebp + 0xc]
sbb eax, dword [ebp - 0x30]
push eax
movzx eax, word [esi + 4]
push ecx
push dword [edx]
mov ecx, ebx
push dword [edx + 4]
push eax
call fcn.1020e88f
test eax, eax
jne 0x1020f3c5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1020f3c3
mov eax, dword [ebp - 0x14]
xor edx, edx
push 0x1c
pop esi
mov eax, dword [eax + 4]
div esi
mov edi, eax
test edi, edi
je 0x1020f3c3
lea esi, [ecx + 0x14]
mov ecx, dword [esi]
dec edi
test ecx, ecx
je 0x1020f3bc
mov eax, dword [ebp - 0x20]
cmp dword [esi + 4], eax
jb 0x1020f3bc
xor eax, eax
add ecx, dword [ebp + 0x14]
push 0
adc eax, dword [ebp + 0x18]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.1020e698
test eax, eax
jne 0x1020f3bc
push ecx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [esi + 4]
push dword [esi - 4]
push dword [esi]
push ecx
push dword [ebp + 0x18]
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1020eee0
add esi, 0x1c
test edi, edi
jne 0x1020f36e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [ebp - 8]
jmp 0x1020f1a7