Function at 0xf049a92
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xf0ad034]
mov dword [ebp - 4], eax
xor eax, eax
mov al, byte [0xf229a40]
push ebx
push esi
push eax
mov eax, dword [0xf229a44]
push dword [eax + 0xe]
call sym.ntvdm.exe_Sim32pGetVDMPointer
mov esi, eax
movzx eax, byte [esi]
cmp eax, 0xf
ja case.0xf049ac7.0
jmp dword [eax*4 + 0xf049dcd]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0xf229a4c]
push ebx
push ebx
push 0x24014
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0xf049dac
mov eax, dword [ebp - 0x20]
mov byte [esi + 2], al
mov al, byte [ebp - 0x1e]
mov byte [esi + 6], al
mov al, byte [ebp - 0x1d]
mov byte [esi + 1], bl
mov byte [esi + 3], 1
mov byte [esi + 5], 2
mov byte [esi + 7], 3
mov byte [esi + 4], ah
mov byte [esi + 8], al
jmp 0xf049dc1
mov dword [esi + 1], 0x202
mov eax, dword [0xf229a4c]
cmp byte [eax + 0xb], 0
jne 0xf049b68
mov byte [eax + 0x10], 0xff
mov eax, dword [0xf229a4c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0xf229a4c]
or dword [eax], 0xffffffff
mov eax, dword [0xf229a4c]
cmp dword [eax + 0xc], 0x458
jne 0xf049dc1
or word [esi + 1], 0x801
jmp 0xf049dc1
test byte [eax + 0x21], 4
jne 0xf049dc1
mov dword [esi + 1], 0x212
jmp 0xf049dc1
push dword [0xf229a4c]
call fcn.0f049a2f
test eax, eax
je 0xf049dc1
movzx ecx, byte [eax + 3]
lea eax, [eax + ecx*8 + 4]
movzx ecx, byte [eax + 5]
movzx edx, byte [eax + 6]
imul ecx, ecx, 0x3c
movzx eax, byte [eax + 7]
add ecx, edx
imul ecx, ecx, 0x4b
add ecx, eax
mov dword [esi + 1], ecx
jmp 0xf049dc1
mov eax, dword [0xf229a4c]
mov cl, byte [eax + 0x10]
cmp cl, 1
jne 0xf049bfb
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push ebx
push ebx
push ebx
push 0x24800
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0xf049be9
mov byte [esi + 1], 1
jmp 0xf049dc1
mov byte [esi + 1], 0xff
mov eax, dword [0xf229a4c]
mov byte [eax + 0x10], 0xff
jmp 0xf049dac
mov byte [esi + 1], cl
jmp 0xf049dc1
push dword [0xf229a4c]
call fcn.0f049a2f
xor ebx, ebx
cmp eax, ebx
je 0xf049c45
mov cl, byte [eax + 2]
mov byte [esi + 1], cl
mov cl, byte [eax + 3]
mov byte [esi + 2], cl
movzx ecx, byte [eax + 3]
lea eax, [eax + ecx*8 + 4]
mov cl, byte [eax + 7]
mov byte [esi + 3], cl
mov cl, byte [eax + 6]
mov byte [esi + 4], cl
mov cl, byte [eax + 5]
mov byte [esi + 5], cl
mov al, byte [eax + 4]
mov byte [esi + 6], al
jmp 0xf049dc1
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov dword [esi + 3], ebx
jmp 0xf049dc1
push dword [0xf229a4c]
call fcn.0f049a2f
test eax, eax
je 0xf049dc1
mov cl, byte [esi + 1]
cmp cl, byte [eax + 3]
ja 0xf049d66
movzx ecx, cl
lea eax, [eax + ecx*8 - 4]
mov cl, byte [eax + 7]
mov byte [esi + 2], cl
mov cl, byte [eax + 6]
mov byte [esi + 3], cl
mov cl, byte [eax + 5]
mov byte [esi + 4], cl
mov cl, byte [eax + 4]
mov byte [esi + 5], cl
mov al, byte [eax + 1]
and al, 0xf
jmp 0xf049c3d
mov eax, dword [0xf229a4c]
cmp byte [eax + 0xb], 0
je 0xf049d11
mov al, byte [eax + 0x21]
mov byte [esi + 1], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x22]
mov byte [esi + 2], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x23]
mov byte [esi + 3], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x29]
mov byte [esi + 4], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x2a]
mov byte [esi + 5], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x2b]
mov byte [esi + 6], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x24]
mov byte [esi + 7], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x25]
mov byte [esi + 8], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x26]
mov byte [esi + 9], al
mov eax, dword [0xf229a4c]
mov al, byte [eax + 0x27]
mov byte [esi + 0xa], al
jmp 0xf049dc1
push dword [eax]
jmp 0xf049db3
push 0
lea eax, [ebp - 0x24]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0xf229a4c]
push 2
push 0xf0b13e8
push 0x2402c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0xf049d52
push 0xe
push 3
push dword [0xf229a4c]
call fcn.0f049754
jmp 0xf049dc1
test byte [ebp - 0x14], 0x80
je 0xf049d66
push edi
lea edi, [esi + 2]
lea esi, [ebp - 0x13]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
jmp 0xf049dc1
mov eax, dword [0xf229a44]
mov word [eax + 3], 0x8008
jmp 0xf049dc1
xor ebx, ebx
mov word [esi + 1], bx
mov eax, dword [0xf229a4c]
cmp byte [eax + 9], bl
je 0xf049d89
mov word [esi + 1], 1
mov eax, dword [0xf229a4c]
mov eax, dword [eax + 0x14]
mov dword [esi + 3], eax
mov eax, dword [0xf229a4c]
mov eax, dword [eax + 0x18]
mov dword [esi + 7], eax
jmp 0xf049dc1
mov eax, dword [0xf229a44]
mov word [eax + 3], 0x8003
mov eax, dword [0xf229a4c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0xf229a4c]
or dword [eax], 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01dda0
leave
ret