Function at 0x404270
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1044
call fcn.00410e70
mov eax, dword [0x422040]
xor eax, esp
mov dword [esp + 0x1040], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 0x10], eax
mov esi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ecx
push edi
test eax, eax
je 0x404422
mov dword [esp + 0x30], eax
xorps xmm0, xmm0
push 0
lea eax, [esp + 0x4c]
movlpd qword [esp + 0x2c], xmm0
cdq
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x28
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x33
push eax
push 0x80862007
push ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0x1000
mov dword [esp + 0x64], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x404323
mov edx, str.____Cant_read_module_headers
jmp 0x40440a
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x404328
sub edi, ecx
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x48]
add ecx, dword [esp + 0x84]
movzx eax, word [ecx + 0x14]
lea ebx, [ecx + 0x18]
add ebx, eax
movzx eax, word [ecx + 6]
mov ecx, eax
mov dword [esp + 0xc], ecx
xor ecx, ecx
cmp cx, ax
jae 0x404405
mov eax, esi
mov edx, ebx
mov esi, edi
sub esi, 4
jb 0x404381
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x404386
add edx, 4
add eax, 4
sub esi, 4
jae 0x404370
cmp esi, 0xfffffffc
je 0x4043b3
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4043c5
cmp esi, 0xfffffffd
je 0x4043b3
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4043c5
cmp esi, 0xfffffffe
je 0x4043b3
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4043c5
cmp esi, 0xffffffff
je 0x4043b3
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
jne 0x4043c5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4043b8
sub ecx, edx
cmp edi, ecx
je 0x4043e2
mov ecx, dword [esp + 0x1c]
add ebx, 0x28
mov eax, dword [esp + 0xc]
inc ecx
movzx eax, ax
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jae 0x404405
mov esi, dword [esp + 0x10]
jmp 0x404362
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x404405
mov ecx, dword [ebx + 8]
lea eax, [esp + eax + 0x48]
test eax, eax
je 0x404405
test ecx, ecx
je 0x404405
lea edx, [esp + 0x48]
sub eax, edx
mov edx, dword [ebp + 8]
add edx, eax
jmp 0x404426
mov edx, str.____Cant_find_section
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.00405ed0
push 0x406100
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
xor edx, edx
xor ecx, ecx
push dword [esp + 0x14]
push dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00404110
mov ecx, dword [esp + 0x1058]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040fd39
mov esp, ebp
pop ebp
ret