Function at 0x49dcb0
Capabilities:
Enumerate pe sections

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 0x43c
push ebx
mov ebx, 1
push ebp
mov ebp, dword [esp + 0x44c]
push esi
push edi
test bl, al
je 0x49dd3f
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x1c]
push 0x24
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x454]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00497490
add esp, 0xc
test eax, eax
jne 0x49dd0c
test byte [esp + 0x45c], bl
jne 0x49dd3f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [ebp + 1], edx
mov edx, dword [esp + 0x2c]
lea ecx, [ebp + 0xa]
mov dword [ebp + 5], eax
mov eax, dword [esp + 0x30]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x1b], ecx
test byte [esp + 0x458], 2
je 0x49e24c
mov esi, dword [esp + 0x450]
xor eax, eax
push eax
lea edx, [esp + 0x50]
push 0x400
push edx
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x58]
push eax
push 0x2a
rep stosd dword es:[edi], eax
push esi
call fcn.00497680
add esp, 0x18
test eax, eax
je 0x49ddda
cmp byte [esp + 0x55], 0x1c
jb 0x49ddda
mov al, byte [esp + 0x56]
test bl, al
je 0x49dd8e
mov dword [ebp + 0x28], ebx
test al, 2
je 0x49dd95
mov dword [ebp + 0x2c], ebx
test al, 8
je 0x49dd9c
mov dword [ebp + 0x40], ebx
test al, 0x10
je 0x49dda3
mov dword [ebp + 0x64], ebx
test al, 0x20
je 0x49ddaa
mov dword [ebp + 0x7c], ebx
mov al, byte [esp + 0x57]
test bl, al
je 0x49ddb5
mov dword [ebp + 0x30], ebx
test al, 2
je 0x49ddbc
mov dword [ebp + 0x34], ebx
test al, 0x10
je 0x49ddc3
mov dword [ebp + 0x68], ebx
test al, 0x20
je 0x49ddcd
mov dword [ebp + 0x80], ebx
test al, al
je 0x49ddd4
mov byte [ebp + 0x20], bl
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x74], eax
lea ecx, [esp + 0x1c]
push 8
push ecx
push 0
push 0
push esi
call fcn.00498490
add esp, 0x14
test eax, eax
jne 0x49de0d
test byte [esp + 0x45c], 2
jne 0x49e24c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edi, dword [esp + 0x1e]
mov edx, dword [esp + 0x1f]
and edi, 0xff
and edx, 0xff
shl edi, 8
or edi, edx
add edi, 4
push edi
push 0x40
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x49de4b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
mov eax, dword [esp + 0x450]
push edi
push esi
push 0
push 0
push eax
call fcn.00498490
add esp, 0x14
test eax, eax
jne 0x49de87
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [esp + 0x45c], 2
jne 0x49e24c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edx, 8
cmp edi, edx
mov dword [esp + 0x10], edx
jbe 0x49e234
add edx, esi
xor eax, eax
xor ecx, ecx
mov ah, byte [edx]
mov cl, byte [edx + 1]
or eax, ecx
cmp eax, 0x2f
ja 0x49e09f
je 0x49e087
cmp eax, 0x2e
ja case.0x49e0b6.66
xor ecx, ecx
mov cl, byte [eax + 0x49e304]
jmp dword [ecx*4 + 0x49e2dc]
test byte [edx + 3], 0xfc
jbe case.0x49e0b6.66
mov esi, 0xfffffffb
lea edi, [edx + 5]
sub esi, edx
xor eax, eax
mov ah, byte [edi - 1]
mov al, byte [edi]
dec eax
cmp eax, 0x51
ja case.0x49def9.20
xor ecx, ecx
mov cl, byte [eax + 0x49e384]
jmp dword [ecx*4 + 0x49e334]
mov dword [ebp + 0x24], ebx
jmp case.0x49def9.20
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x30], ebx
jmp case.0x49def9.1
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x34], ebx
jmp case.0x49def9.1
mov dword [ebp + 0x40], ebx
jmp case.0x49def9.20
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
jmp case.0x49def9.1
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x80], ebx
jmp case.0x49def9.1
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x78], ebx
jmp case.0x49def9.1
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
jmp case.0x49def9.1
mov dword [ebp + 0x44], ebx
jmp case.0x49def9.20
mov dword [ebp + 0x4c], ebx
jmp case.0x49def9.20
mov dword [ebp + 0x54], ebx
jmp case.0x49def9.20
mov dword [ebp + 0x5c], ebx
jmp case.0x49def9.20
mov dword [ebp + 0x84], ebx
jmp case.0x49def9.20
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
jmp case.0x49def9.1
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], ebx
jmp case.0x49def9.1
mov dword [ebp + 0xa8], ebx
jmp case.0x49def9.20
mov dword [ebp + 0xac], ebx
mov dword [ebp + 0xb0], ebx
jmp case.0x49def9.1
mov dword [ebp + 0xb4], ebx
mov dword [ebp + 0xb8], ebx
mov byte [ebp + 0x20], bl
mov cl, byte [edx + 3]
add edi, 4
and ecx, 0xfc
lea eax, [esi + edi]
cmp eax, ecx
jb 0x49dee0
jmp case.0x49e0b6.66
mov dword [ebp + 0x24], ebx
mov al, byte [edx + 4]
test al, 2
je 0x49dfed
mov dword [ebp + 0x38], ebx
test byte [edx + 4], bl
je case.0x49e0b6.66
mov dword [ebp + 0x3c], ebx
jmp case.0x49e0b6.66
mov dword [ebp + 0x40], ebx
mov al, byte [edx + 6]
test bl, al
je case.0x49e0b6.66
mov dword [ebp + 0x6c], ebx
jmp case.0x49e0b6.66
test byte [edx + 4], bl
je 0x49e01f
mov dword [ebp + 0x34], ebx
mov byte [ebp + 0x20], bl
test byte [edx + 4], 2
je 0x49e028
mov dword [ebp + 0x44], ebx
test byte [edx + 4], 4
je case.0x49e0b6.66
mov dword [ebp + 0x48], ebx
mov byte [ebp + 0x20], bl
jmp case.0x49e0b6.66
mov dword [ebp + 0x44], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x49e0b6.66
mov dword [ebp + 0x48], ebx
mov byte [ebp + 0x20], bl
jmp case.0x49e0b6.66
mov dword [ebp + 0x4c], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x49e0b6.66
mov dword [ebp + 0x50], ebx
mov byte [ebp + 0x20], bl
jmp case.0x49e0b6.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x30], ebx
test byte [edx + 4], 2
je case.0x49e0b6.66
mov dword [ebp + 0x34], ebx
jmp case.0x49e0b6.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x68], ebx
test byte [edx + 4], 2
je case.0x49e0b6.66
mov dword [ebp + 0x78], ebx
jmp case.0x49e0b6.66
lea edi, [eax - 0x33]
cmp edi, 0xdd
ja case.0x49e0b6.66
xor eax, eax
mov al, byte [edi + 0x49e418]
jmp dword [eax*4 + 0x49e3d8]
mov byte [ebp + 0x20], bl
jmp case.0x49e0b6.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x34], ebx
jmp case.0x49e0b6.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x90], ebx
jmp case.0x49e0b6.66
mov dword [ebp + 0x54], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x49e0b6.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x58], ebx
jmp case.0x49e0b6.66
mov dword [ebp + 0x5c], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x49e0b6.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x60], ebx
jmp case.0x49e0b6.66
mov dword [ebp + 0x84], ebx
mov al, byte [edx + 9]
test al, 6
je 0x49e129
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
test byte [edx + 0x11], 2
je case.0x49e0b6.66
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
jmp case.0x49e0b6.66
mov byte [ebp + 0x20], bl
mov al, byte [edx + 9]
test al, 4
je 0x49e15a
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], ebx
test byte [edx + 0x11], 2
je case.0x49e0b6.66
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
jmp case.0x49e0b6.66
mov dword [ebp + 0xa8], ebx
mov al, byte [edx + 4]
test bl, al
je 0x49e188
mov dword [ebp + 0xac], ebx
test byte [edx + 6], bl
je case.0x49e0b6.66
mov dword [ebp + 0xb4], ebx
jmp case.0x49e0b6.66
mov byte [ebp + 0x20], bl
mov al, byte [edx + 4]
test bl, al
je 0x49e1a9
mov dword [ebp + 0xb0], ebx
test byte [edx + 6], bl
je case.0x49e0b6.66
mov dword [ebp + 0xb8], ebx
jmp case.0x49e0b6.66
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xc0], ebx
jmp case.0x49e0b6.66
xor ecx, ecx
lea esi, [edx + 4]
mov cl, byte [edx + 3]
lea edi, [ebp + 0xc4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.0x49e0b6.66
lea ecx, [edx + 4]
lea eax, [ebp + 0x1c4]
mov esi, dword [ecx]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov cx, word [ecx + 0xc]
mov word [eax + 0xc], cx
jmp case.0x49e0b6.66
mov dword [ebp + 0x1d4], ebx
jmp case.0x49e0b6.66
mov dword [ebp + 0x1d8], ebx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [edx + 3]
mov esi, dword [esp + 0x14]
lea edx, [ecx + eax + 4]
mov eax, dword [esp + 0x18]
cmp edx, eax
mov dword [esp + 0x10], edx
jb 0x49de98
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x49e242
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x49e245
mov dword [ebp + 0x24], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [esp + 0x458], 8
je 0x49e2b8
xor eax, eax
lea edx, [esp + 0x4c]
push eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x50]
push 0x400
push edx
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x460]
push 0x2a
push eax
call fcn.00497680
add esp, 0x18
test eax, eax
je 0x49e2c5
cmp byte [esp + 0x55], 0x1c
jb 0x49e2c5
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x61]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
add ecx, edx
mov dword [ebp + 0x1e0], 0
shl ecx, 0xa
mov dword [ebp + 0x1dc], ecx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x43c
ret
test byte [esp + 0x45c], 8
jne 0x49e2b8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret