Function at 0x49bafe
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov eax, ecx
mov ebx, edx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov edi, dword [eax]
mov ecx, dword [eax + 0x204]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
test byte [edi + 0x18], 1
mov dword [ebp - 8], edi
je 0x49bb2c
xor eax, eax
jmp 0x49c071
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebp + 8]
shl edx, 6
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
mov eax, dword [edx + ecx + 0x28]
mov esi, dword [edx + ecx + 0x18]
mov dword [ebp - 0x18], eax
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x30], eax
je 0x49bb5a
cmp dword [ebp + 0x10], 0
je 0x49bb65
jmp 0x49bb25
cmp dword [ebp + 0x10], 0
je 0x49bb65
cmp word [ecx], ax
jg 0x49bb25
mov eax, dword [esi + 0x48]
test eax, eax
je 0x49bb72
cmp dword [ebx + 0x48], 0
jne 0x49bb25
cmp dword [esi + 0x4c], 0
jne 0x49bb25
cmp dword [ebx + 0x44], 0
je 0x49bb82
test eax, eax
jne 0x49bb25
mov edi, dword [esi + 0x28]
xor ecx, ecx
cmp word [edi], cx
mov ecx, dword [ebp - 0xc]
je 0x49bb25
test byte [esi + 6], 1
jne 0x49bb25
test eax, eax
je 0x49bbab
xor edi, edi
inc edi
cmp word [ecx], di
jg 0x49bb25
cmp dword [ebp + 0xc], 0
jne 0x49bb25
mov di, word [ebx + 6]
xor ecx, ecx
inc ecx
and di, cx
mov ecx, dword [ebp - 0xc]
mov word [ebp - 2], di
je 0x49bbc8
cmp dword [ebp + 0x10], 0
jne 0x49bb25
cmp dword [ebx + 0x38], 0
mov edi, dword [ebp - 8]
je 0x49bbdb
cmp dword [esi + 0x38], 0
jne 0x49bb25
cmp dword [ebp + 0xc], 0
je 0x49bbeb
cmp dword [esi + 0x38], 0
jne 0x49bb25
test eax, eax
je 0x49bc0b
cmp dword [ebx + 0x2c], 0
jne 0x49bb25
test eax, eax
je 0x49bc0b
mov ax, word [ebp - 2]
test ax, ax
je 0x49bc0f
jmp 0x49bb25
mov ax, word [ebp - 2]
test byte [edx + ecx + 0x24], 0x20
jne 0x49bb25
cmp dword [esi + 0x3c], 0
je 0x49bcc4
cmp dword [esi + 0x38], 0
jne 0x49bb25
cmp dword [ebp + 0xc], 0
jne 0x49bb25
test ax, ax
jne 0x49bb25
xor eax, eax
inc eax
cmp word [ecx], ax
jne 0x49bb25
mov ecx, esi
test byte [ecx + 6], 5
jne 0x49bb25
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x49bc6d
cmp byte [ecx + 4], 0x71
jne 0x49bb25
mov eax, dword [ecx + 0x28]
xor edi, edi
inc edi
cmp word [eax], di
mov edi, dword [ebp - 8]
jl 0x49bb25
mov eax, dword [esi]
mov ecx, dword [ecx]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x49bb25
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x49bc4f
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x49bcc1
cmp dword [eax], ecx
jle 0x49bcc1
mov eax, dword [eax + 8]
add eax, 0xe
xor edx, edx
cmp word [eax], dx
mov edx, dword [ebp - 0x10]
je 0x49bb25
mov edi, dword [ebx + 0x38]
inc ecx
add eax, 0x14
cmp ecx, dword [edi]
mov edi, dword [ebp - 8]
jl 0x49bca5
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x204], eax
xor eax, eax
push eax
push eax
push eax
push 0x15
pop edx
call fcn.0048c5ff
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x204], ecx
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49bd63
mov eax, dword [ebx + 0x3c]
mov edx, ebx
mov edi, dword [ebx + 0x38]
mov esi, dword [ebx + 0x48]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
xor eax, eax
push eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x48], eax
call fcn.00487b5d
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x48], esi
xor esi, esi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x28], ecx
mov byte [ebx + 4], 0x71
mov dword [ebx + 0x44], esi
test eax, eax
jne 0x49bd3b
mov eax, dword [ebp - 0x24]
jmp 0x49bd44
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x44], esi
mov edi, dword [ebp - 8]
mov dword [ebx + 0x3c], eax
cmp byte [edi + 0x36], 0
jne 0x49c06e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x49bcf7
jmp 0x49bd66
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + ecx + 0x18]
mov esi, edx
mov dword [ebp - 0x34], edx
mov edx, dword [eax + ecx + 8]
mov ecx, edi
mov dword [ebp - 0x24], esi
call fcn.00466cd8
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + eax + 0xc]
call fcn.00466cd8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + ecx + 0x10]
mov ecx, edi
call fcn.00466cd8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + edx + 8], ecx
mov dword [eax + edx + 0xc], ecx
mov dword [eax + edx + 0x10], ecx
mov dword [eax + edx + 0x18], ecx
mov ecx, dword [eax + edx + 0x14]
test ecx, ecx
je 0x49be05
movzx eax, word [ecx + 0x20]
cmp ax, word [ebp - 0x30]
jne 0x49bdf5
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
mov eax, dword [eax + 0x1b0]
test eax, eax
cmovne ebx, eax
mov eax, ebx
mov eax, dword [eax + 0x224]
mov dword [ecx + 0x48], eax
mov eax, ebx
mov ebx, dword [ebp - 0x20]
mov dword [eax + 0x224], ecx
jmp 0x49bdfa
dec eax
mov word [ecx + 0x20], ax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [eax + edx + 0x14], ecx
jmp 0x49be07
xor ecx, ecx
mov byte [ebp - 1], cl
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x30], ecx
movsx edx, word [ecx]
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x49be2f
mov edi, dword [ebp - 0xc]
mov al, byte [eax + edi + 0x24]
mov edi, dword [ebp - 8]
mov byte [ebp - 1], al
jmp 0x49be51
xor eax, eax
xor edx, edx
push eax
push eax
mov ecx, edi
call fcn.0048f80d
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebx + 0x28], ecx
test ecx, ecx
je 0x49c064
mov edx, dword [ebp - 0x14]
xor eax, eax
inc eax
cmp edx, eax
jle 0x49be81
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [edx - 1]
mov edx, ecx
push eax
mov ecx, edi
call fcn.0048f72b
pop ecx
pop ecx
mov ecx, eax
mov dword [ebx + 0x28], ecx
cmp byte [edi + 0x36], 0
mov dword [ebp - 0x1c], ecx
jne 0x49c064
mov edx, dword [ebp - 0x14]
test edx, edx
jle 0x49bedc
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x30]
add edi, 8
mov ebx, dword [ebp - 8]
add esi, 8
add edi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov edx, dword [edi + 0x28]
mov ecx, ebx
call fcn.0048f6a9
push 0x10
pop ecx
push 0x40
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2c]
push eax
push esi
call fcn.00538910
mov edi, dword [ebp - 0x28]
add esi, 0x40
add edi, 0x40
mov dword [ebp - 0x2c], esi
add esp, 0xc
mov dword [ebp - 0x28], edi
dec dword [ebp - 0x14]
jne 0x49be9c
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
mov byte [eax + ecx + 0x24], dl
xor eax, eax
mov ecx, dword [ebx]
mov edx, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
cmp dword [ecx], eax
jle 0x49bf3a
mov dword [ebp - 0x1c], eax
mov esi, dword [ecx + 8]
cmp dword [esi + eax + 4], 0
jne 0x49bf29
mov esi, dword [esi + eax + 8]
test esi, esi
je 0x49bf29
mov edx, esi
mov ecx, edi
call fcn.00466fc0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx + 4], eax
mov eax, edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
inc edx
add eax, 0x14
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], eax
cmp edx, dword [ecx]
jl 0x49bef9
mov esi, dword [ebp - 0x24]
push dword [esi]
mov edx, dword [ebx]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0049ba19
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
je 0x49bf74
push dword [esi]
mov edx, dword [ebx + 0x30]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0049ba19
push dword [esi]
mov edx, dword [ebx + 0x34]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0049b966
add esp, 0x10
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x49bf85
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [esi + 0x38], eax
jmp 0x49bf9c
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x49bf9a
push dword [esi]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0049ba19
pop ecx
pop ecx
xor eax, eax
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x49bfb5
push eax
push eax
mov ecx, edi
call fcn.00487694
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x49bfba
mov ecx, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x10], 0
je 0x49c00c
mov eax, dword [ebx + 0x2c]
mov edx, eax
mov dword [ebx + 0x2c], ecx
mov ecx, edi
mov dword [ebx + 0x34], eax
push dword [esi]
push dword [ebp - 0x18]
call fcn.0049b966
mov dword [ebx + 0x34], eax
mov ecx, edi
mov edx, dword [esi + 0x34]
xor eax, eax
push eax
push eax
call fcn.00487694
mov edx, dword [ebx + 0x34]
mov ecx, edi
push eax
call fcn.004872a8
add esp, 0x14
mov dword [ebx + 0x34], eax
mov edx, dword [esi + 0x30]
xor eax, eax
mov ecx, edi
push eax
call fcn.00487891
pop ecx
mov dword [ebx + 0x30], eax
jmp 0x49c030
push dword [esi]
mov edx, dword [ebx + 0x2c]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0049b966
push dword [ebp - 0x2c]
mov edx, eax
mov dword [ebx + 0x2c], eax
mov ecx, edi
call fcn.004872a8
add esp, 0xc
mov dword [ebx + 0x2c], eax
mov ax, word [esi + 6]
xor ecx, ecx
inc ecx
and ax, cx
xor ecx, ecx
or word [ebx + 6], ax
mov eax, dword [esi + 0x48]
test eax, eax
je 0x49c04d
mov dword [ebx + 0x48], eax
mov dword [esi + 0x48], ecx
mov ebx, dword [ebx + 0x3c]
mov esi, dword [esi + 0x3c]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x49be07
mov edx, dword [ebp - 0x34]
mov ecx, edi
call fcn.0049904e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret