Function at 0x401100
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x4030fc]
push 0x44
call edi
mov esi, eax
add esp, 4
test esi, esi
je 0x40112b
push 0x44
push 0
push esi
call fcn.0040228a
add esp, 0xc
jmp 0x40112d
xor esi, esi
push 0x10
call edi
add esp, 4
test eax, eax
je 0x40114c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ebx, eax
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], ebx
jmp 0x401156
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0
push 4
push 0
push 0
push 0
push eax
push 0
call dword [0x40300c]
mov edi, dword [ebx]
test edi, edi
je 0x4014cf
push edi
call fcn.00401000
push 0x1d8
mov dword [ebp - 0x14], eax
call dword [0x4030fc]
mov esi, eax
add esp, 8
test esi, esi
je 0x4011a9
push 0x1d8
push 0
push esi
call fcn.0040228a
add esp, 0xc
jmp 0x4011ab
xor esi, esi
mov ecx, dword [ebp - 0x14]
push 0
push 0x1d8
push esi
push ecx
push edi
call dword [0x403008]
neg eax
sbb edi, edi
mov eax, dword [ebx]
and edi, esi
mov edx, dword [edi + 8]
push edx
push eax
call fcn.00401080
push 0x30
call dword [0x4030fc]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4011f2
push 0x30
push 0
push esi
call fcn.0040228a
add esp, 0xc
mov ebx, esi
jmp 0x4011f4
xor ebx, ebx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebx + 0xc], eax
movzx edx, word [eax + 6]
mov dword [ebx + 0x14], edx
mov eax, dword [esi + 0x3c]
lea ecx, [eax + esi + 0xf8]
mov dword [ebx + 0x18], ecx
mov eax, dword [esi + 0x3c]
add eax, esi
push str.ntdll
mov dword [ebp - 0xc], eax
call dword [0x403010]
push str.NtUnmapViewOfSection
push eax
call dword [0x403004]
mov edx, dword [edi + 8]
mov ecx, dword [ebp - 4]
push edx
mov edx, dword [ecx]
push edx
call eax
test eax, eax
jne 0x4014cf
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x50]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
push 0x40
push 0x3000
push ecx
mov ecx, dword [eax]
push edx
push ecx
call dword [0x403014]
test eax, eax
je 0x4014cf
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0xc]
mov ecx, eax
sub ecx, dword [edx + 0x34]
mov dword [edx + 0x34], eax
mov edx, dword [edx + 0x54]
mov eax, dword [edi + 8]
push 0
push edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push esi
push eax
push edx
call dword [0x403018]
test eax, eax
je 0x4014cf
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x14], ecx
jbe 0x4012f3
mov dword [ebp - 0x10], ecx
lea esp, [esp]
add ecx, dword [ebx + 0x18]
mov edx, dword [ecx + 0x14]
test edx, edx
je 0x4012de
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
add eax, dword [edi + 8]
push 0
push ecx
add edx, esi
push edx
mov edx, dword [ebp - 4]
push eax
mov eax, dword [edx]
push eax
call dword [0x403018]
test eax, eax
je 0x4014cf
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 0x28
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [ebx + 0x14]
jb 0x4012b0
cmp dword [ebp - 0x14], 0
je 0x401455
cmp dword [ebx + 0x14], 0
mov dword [ebp - 8], 0
jbe 0x401455
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x10], esi
mov eax, 6
mov ecx, str..reloc
mov edi, edi
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x401358
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x401320
test eax, eax
je 0x401372
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x401358
cmp eax, 1
jbe 0x401372
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x401358
cmp eax, 2
jbe 0x401372
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x401372
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
inc eax
add esi, 0x28
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
cmp eax, dword [ebx + 0x14]
jb 0x401314
jmp 0x401455
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x18]
lea ecx, [eax + eax*4]
mov edx, dword [edx + ecx*8 + 0x14]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ecx + 0xa0]
mov ecx, dword [ecx + 0xa4]
xor eax, eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x401455
mov ecx, dword [ebp + 0xc]
lea esi, [edx + ecx]
mov dword [ebp - 0x24], esi
jmp 0x4013b0
mov ecx, dword [esi + eax + 4]
lea ebx, [esi + eax]
add eax, 8
lea edx, [esi + eax]
sub ecx, 8
mov dword [ebp - 0x18], edx
shr ecx, 1
mov edx, 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], edx
je 0x40144c
lea eax, [eax + ecx*2]
mov dword [ebp - 0x20], eax
jmp 0x4013e0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + edx*2]
test eax, 0xf000
je 0x40143e
mov edx, dword [edi + 8]
and eax, 0xfff
add eax, dword [ebx]
push 0
push 4
mov esi, eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [eax]
add edx, esi
push edx
push ecx
mov dword [ebp - 8], 0
call dword [0x403008]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi + 8]
add dword [ebp - 8], edx
mov edx, dword [ebp - 4]
push 0
push 4
lea eax, [ebp - 8]
push eax
mov eax, dword [edx]
add ecx, esi
push ecx
push eax
call dword [0x403018]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x10], edx
cmp edx, ecx
jb 0x4013e0
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jb 0x4013b0
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + 0x28]
add ebx, dword [edi + 8]
push 0x2cc
call dword [0x4030fc]
mov esi, eax
add esp, 4
test esi, esi
je 0x401484
push 0x2cc
push 0
push esi
call fcn.0040228a
add esp, 0xc
jmp 0x401486
xor esi, esi
mov edi, dword [ebp - 4]
mov dword [esi], 0x10002
mov edx, dword [edi + 4]
push esi
push edx
call dword [0x40301c]
test eax, eax
je 0x4014cf
mov dword [esi + 0xb0], ebx
mov eax, dword [edi + 4]
push esi
push eax
call dword [0x403020]
test eax, eax
je 0x4014cf
mov ecx, dword [edi + 4]
push ecx
call dword [0x403024]
test eax, eax
je 0x4014cf
push 0x403198
call dword [0x4030f8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret