Function at 0x49d052
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 - 0x1c], ebx
mov edi, dword [eax]
mov ecx, dword [eax + 0x204]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ecx
test byte [edi + 0x18], 1
mov dword [ebp - 0x10], edi
jne 0x49d13a
mov eax, dword [ebx + 0x28]
mov edx, dword [ebp + 8]
shl edx, 6
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov ecx, dword [edx + eax + 0x28]
mov esi, dword [edx + eax + 0x18]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
inc ecx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x30], ecx
je 0x49d0b6
cmp dword [ebp + 0xc], 0
jne 0x49d13a
cmp word [eax], cx
jg 0x49d13a
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x49d0c3
cmp dword [ebx + 0x48], 0
jne 0x49d13a
cmp dword [esi + 0x4c], 0
jne 0x49d13a
cmp dword [ebx + 0x44], 0
je 0x49d0d3
test ecx, ecx
jne 0x49d13a
mov edi, dword [esi + 0x28]
xor edx, edx
cmp word [edi], dx
je 0x49d13a
test byte [esi + 6], 1
jne 0x49d13a
test ecx, ecx
je 0x49d0f4
xor edi, edi
inc edi
cmp word [eax], di
jg 0x49d13a
cmp dword [ebp + 0xc], edx
jne 0x49d13a
mov ax, word [ebx + 6]
xor edi, edi
inc edi
and ax, di
mov edi, dword [ebp - 0x10]
je 0x49d108
cmp dword [ebp + 0x10], edx
jne 0x49d13a
mov edx, dword [ebx + 0x38]
test edx, edx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 8]
je 0x49d11b
cmp dword [esi + 0x38], 0
jne 0x49d13a
cmp dword [ebp + 0xc], 0
je 0x49d127
cmp dword [esi + 0x38], 0
jne 0x49d13a
test ecx, ecx
je 0x49d141
xor ecx, ecx
cmp dword [ebx + 0x2c], ecx
jne 0x49d13a
movzx ecx, ax
test ax, ax
je 0x49d144
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
movzx ecx, ax
mov eax, dword [ebp - 0xc]
test byte [edx + eax + 0x24], 0x20
jne 0x49d13a
cmp dword [esi + 0x3c], 0
je 0x49d1d8
cmp dword [esi + 0x38], 0
jne 0x49d13a
cmp dword [ebp + 0xc], 0
jne 0x49d13a
test cx, cx
jne 0x49d13a
xor ecx, ecx
inc ecx
cmp word [eax], cx
jne 0x49d13a
mov ecx, esi
test byte [ecx + 6], 5
jne 0x49d13a
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x49d189
cmp byte [ecx + 4], 0x71
jne 0x49d13a
mov eax, dword [ecx + 0x28]
xor edx, edx
inc edx
cmp word [eax], dx
mov edx, dword [ebp - 8]
jl 0x49d13a
mov eax, dword [esi]
mov ecx, dword [ecx]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x49d13a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x49d173
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x49d1d5
cmp dword [eax], ecx
jle 0x49d1d5
mov eax, dword [eax + 8]
add eax, 0xe
xor edi, edi
cmp word [eax], di
mov edi, dword [ebp - 0x10]
je 0x49d13a
mov ebx, dword [ebp - 0x28]
inc ecx
add eax, 0x14
cmp ecx, dword [ebx]
mov ebx, dword [ebp - 0x1c]
jl 0x49d1b9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + eax + 0xc]
mov dword [ecx + 0x204], eax
xor eax, eax
push eax
push eax
push eax
push 0x15
pop edx
call fcn.0048d19d
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x204], ecx
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x49d27a
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x20], eax
mov edi, dword [ebx + 0x38]
xor eax, eax
mov esi, dword [ebx + 0x48]
mov edx, ebx
mov ecx, dword [ebp - 0x10]
push eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x48], eax
call fcn.00488399
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 0x49d24f
mov eax, dword [ebp - 0x20]
jmp 0x49d258
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x44], esi
mov edi, dword [ebp - 0x10]
mov dword [ebx + 0x3c], eax
cmp byte [edi + 0x36], 0
jne 0x49d570
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0x24], edx
test edx, edx
jne 0x49d211
jmp 0x49d27d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
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.00466366
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax + 0xc]
call fcn.00466366
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + ecx + 0x10]
mov ecx, edi
call fcn.00466366
mov eax, dword [ebp - 8]
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 0x49d31c
movzx eax, word [ecx + 0x20]
cmp ax, word [ebp - 0x30]
jne 0x49d30c
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 - 0x1c]
mov dword [eax + 0x224], ecx
jmp 0x49d311
dec eax
mov word [ecx + 0x20], ax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [eax + edx + 0x14], ecx
jmp 0x49d31e
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 - 0x20], ecx
test ecx, ecx
je 0x49d346
mov edi, dword [ebp - 0xc]
mov al, byte [eax + edi + 0x24]
mov edi, dword [ebp - 0x10]
mov byte [ebp - 1], al
jmp 0x49d368
xor eax, eax
xor edx, edx
push eax
push eax
mov ecx, edi
call fcn.004903f1
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebx + 0x28], ecx
test ecx, ecx
je 0x49d566
mov edx, dword [ebp - 0x14]
xor eax, eax
inc eax
cmp edx, eax
jle 0x49d398
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [edx - 1]
mov edx, ecx
push eax
mov ecx, edi
call fcn.00490301
pop ecx
pop ecx
mov ecx, eax
mov dword [ebx + 0x28], ecx
cmp byte [edi + 0x36], 0
mov dword [ebp - 0x20], ecx
jne 0x49d566
mov edx, dword [ebp - 0x14]
test edx, edx
jle 0x49d3f1
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x30]
add edi, 8
mov ebx, dword [ebp - 0x10]
add esi, 8
add edi, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], edi
mov edx, dword [edi + 0x28]
mov ecx, ebx
call fcn.00490286
push 0x10
pop ecx
push 0x40
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x28]
push eax
push esi
call fcn.00548bf0
mov edi, dword [ebp - 0x2c]
add esi, 0x40
add edi, 0x40
mov dword [ebp - 0x28], esi
add esp, 0xc
mov dword [ebp - 0x2c], edi
sub dword [ebp - 0x14], 1
jne 0x49d3b3
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dl, byte [ebp - 1]
mov byte [eax + ecx + 0x24], dl
xor eax, eax
mov edi, dword [ebx]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp dword [edi], eax
jle 0x49d449
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov edx, dword [edi + 8]
cmp dword [edx + eax + 4], 0
jne 0x49d436
mov edx, dword [edx + eax + 8]
test edx, edx
je 0x49d436
mov ecx, esi
call fcn.00466657
mov ecx, dword [edi + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + edx + 4], eax
mov eax, edx
mov ecx, dword [ebp - 0x2c]
inc ecx
add eax, 0x14
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], eax
cmp ecx, dword [edi]
jl 0x49d40e
mov edi, dword [ebx]
mov esi, dword [ebp - 0x24]
push dword [esi]
mov edx, edi
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0049cf6f
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
je 0x49d486
push dword [esi]
mov edx, dword [ebx + 0x30]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0049cf6f
push dword [esi]
mov edx, dword [ebx + 0x34]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0049cebc
add esp, 0x10
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x49d497
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [esi + 0x38], eax
jmp 0x49d4ae
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x49d4ac
push dword [esi]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.0049cf6f
pop ecx
pop ecx
xor eax, eax
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x49d4c0
push eax
push eax
mov ecx, edi
call fcn.00487ee8
pop ecx
pop ecx
cmp dword [ebp + 0x10], 0
mov ecx, edi
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x2c], eax
je 0x49d513
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x2c], eax
push dword [esi]
push dword [ebp - 0x18]
call fcn.0049cebc
mov dword [ebx + 0x34], eax
mov ecx, edi
mov edx, dword [esi + 0x34]
xor eax, eax
push eax
push eax
call fcn.00487ee8
mov edx, dword [ebx + 0x34]
mov ecx, edi
push eax
call fcn.00487b09
add esp, 0x14
mov dword [ebx + 0x34], eax
mov edx, dword [esi + 0x30]
xor eax, eax
mov ecx, edi
push eax
call fcn.004880dd
pop ecx
mov dword [ebx + 0x30], eax
jmp 0x49d532
push dword [esi]
push dword [ebp - 0x18]
call fcn.0049cebc
push dword [ebp - 0x2c]
mov edx, eax
mov dword [ebx + 0x2c], eax
mov ecx, edi
call fcn.00487b09
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 0x49d54f
mov dword [ebx + 0x48], eax
mov dword [esi + 0x48], ecx
mov ebx, dword [ebx + 0x3c]
mov esi, dword [esi + 0x3c]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x49d31e
mov edx, dword [ebp - 0x34]
mov ecx, edi
call fcn.0049a155
xor eax, eax
inc eax
jmp 0x49d13c