Function at 0x40c4c0
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411cea
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov edi, ecx
mov dword [ebp - 0x64], edi
mov ecx, dword [ebx + 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x8c], ecx
mov ecx, 0x5a4d
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
cmp word [eax], cx
jne 0x40cdb0
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [ebp - 0x28], esi
cmp dword [esi], 0x4550
jne 0x40cdb0
test esi, esi
je 0x40cdb0
mov eax, 0x20b
cmp word [esi + 0x18], ax
je 0x40c560
mov edx, str.____Image_is_not_64_bit
jmp 0x40cdb5
mov eax, dword [esi + 0x50]
push 4
push 0x3000
push eax
push 0
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x40cdcd
movzx eax, word [esi + 0x14]
xor edx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], edx
movlpd qword [ebp - 0x58], xmm0
mov ecx, dword [eax + esi + 0x24]
mov eax, dword [ebp - 0x60]
sub eax, ecx
mov dword [ebp - 0x4c], ecx
cmp dword [ebx + 0x20], 1
mov dword [ebp - 0x60], eax
jne 0x40c5cc
push edx
push eax
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0040bd50
mov dword [ebp - 0x3c], eax
mov ecx, edx
mov eax, dword [ebp - 0x60]
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ecx
jmp 0x40c768
cmp dword [ebx + 0x20], 2
mov ecx, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], edx
jne 0x40c5ed
mov edx, eax
mov ecx, edi
call fcn.0040c2f0
mov ecx, edx
mov dword [ebp - 0x5c], ecx
jmp 0x40c765
or eax, edx
jne 0x40c5fb
movlpd qword [ebp - 0x48], xmm0
jmp 0x40c750
mov ecx, dword fs:[0x2c]
mov eax, dword [0x422878]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 4]
jle 0x40c6df
push 0x422878
call fcn.0040fdc8
add esp, 4
cmp dword [0x422878], 0xffffffff
jne 0x40c6dc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x84]
push 0x15
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
push 0x41319c
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x70], 0
call fcn.00408b20
mov byte [ebp - 4], 1
lea edx, [ebp - 0x84]
push dword [0x422834]
mov ecx, edi
push dword [0x422830]
call fcn.00402ee0
mov byte [ebp - 4], 0
add esp, 8
mov ecx, dword [ebp - 0x70]
mov dword [0x4229b0], eax
mov dword [0x4229b4], edx
cmp ecx, 0xf
jbe 0x40c6c8
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c6be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c6be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040fe5c
add esp, 8
push 0x422878
mov dword [ebp - 4], 0xffffffff
call fcn.0040fd77
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x4229b0]
or eax, dword [0x4229b4]
jne 0x40c713
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Failed_to_find_ExAllocatePool
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_____]
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
jmp 0x40c74a
push ecx
push edx
push dword [ebp - 0x34]
xorps xmm0, xmm0
lea edx, [ebp - 0x48]
sub esp, 0xc
movlpd qword [ebp - 0x48], xmm0
mov ecx, edi
call fcn.00407a90
add esp, 0x18
test al, al
jne 0x40c73e
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
jmp 0x40c74a
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], esi
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x6c], eax
or eax, ecx
mov dword [ebp - 0x68], ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
jne 0x40c7a4
mov edx, str.____Failed_to_allocate_remote_image_in_kernel
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_____]
push 0x8000
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40cdcd
mov edx, str.___Image_base_has_been_allocated_at_0x
call fcn.00405ed0
push dword [ebp - 0x3c]
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___void_const__]
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_____]
push dword [esi + 0x54]
push dword [ebp - 0x30]
push dword [ebp - 0x38]
call sub.VCRUNTIME140.dll_memcpy
movzx edx, word [esi + 0x14]
lea eax, [esi + 6]
xor edi, edi
mov dword [ebp - 0x44], eax
xor ecx, ecx
add esp, 0xc
add edx, 0x24
mov dword [ebp - 0x88], ecx
cmp di, word [eax]
mov edi, dword [ebp - 0x64]
jae 0x40c84e
mov eax, dword [ebp - 0x28]
add esi, edx
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
test dword [esi + 0x18], 0x80
ja 0x40c827
push dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
add eax, dword [ebp - 0x30]
add ecx, edi
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x88]
add esp, 0xc
mov eax, dword [ebp - 0x44]
inc ecx
add esi, 0x28
mov dword [ebp - 0x88], ecx
movzx eax, word [eax]
cmp ecx, eax
jl 0x40c801
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x3c]
mov edx, str.___Skipped_0x
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], ecx
sbb ecx, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x5c], ecx
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 0x401220
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::ios_base_____cdecl___class_std::ios_base___]
push dword [ebp - 0x4c]
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___unsigned_long_int_]
mov edx, str._bytes_of_PE_Header
mov ecx, eax
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_____]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [esi + 0x30]
mov eax, dword [ebp - 0x5c]
sbb eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x38]
push eax
push ecx
sub esp, 0xc
mov ecx, esp
call fcn.0040dba0
call fcn.0040cdf0
mov ecx, dword [ebp - 0x38]
add esp, 0xc
call fcn.0040ceb0
add esp, 8
test al, al
jne 0x40c8e3
mov edx, str.____Failed_to_fix_cookie
jmp 0x40cdb5
mov edx, dword [ebp - 0x38]
sub esp, 0xc
mov ecx, esp
call fcn.0040dd10
mov ecx, edi
call fcn.0040cf40
add esp, 0xc
test al, al
jne 0x40c923
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Failed_to_resolve_imports
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_____]
mov esi, dword [ebp - 0x54]
jmp 0x40ca0d
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
mov ecx, edi
push dword [ebp - 0x34]
mov edx, dword [ebp - 0x4c]
push dword [ebp - 0x28]
push dword [ebp - 0x30]
lea edx, [edx + eax]
call fcn.00402630
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
add esp, 0x10
test al, al
jne 0x40c953
mov edx, str.____Failed_to_write_local_image_to_remote_image
jmp 0x40c909
mov esi, dword [esi + 0x28]
xor eax, eax
add esi, dword [ebp - 0x3c]
mov edx, str.____Calling_DriverEntry_0x
mov dword [ebp - 0x64], esi
adc eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
call fcn.00405ed0
push esi
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___void_const__]
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_____]
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x24]
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push dword [ebp - 0x28]
push dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a880
add esp, 0x20
test al, al
jne 0x40c9b2
mov edx, str.____Callback_returns_false__failed_
jmp 0x40c9f5
cmp byte [ebx + 0x24], 0
mov dword [ebp - 0x4c], 0
je 0x40c9c7
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
jmp 0x40c9cd
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x20]
lea edx, [ebp - 0x4c]
push dword [ebp - 0x24]
push eax
push ecx
push dword [ebp - 0x44]
mov ecx, edi
push dword [ebp - 0x64]
call fcn.0040d260
add esp, 0x18
test al, al
jne 0x40cbac
mov edx, str.____Failed_to_call_driver_entry
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_____]
push 0x8000
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.___Freeing_memory
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_____]
mov eax, dword [ebx + 0x20]
mov ecx, edi
cmp eax, 1
jne 0x40cb78
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.00402a20
add esp, 0x10
test al, al
je 0x40cba2
push esi
push dword [ebp - 0x58]
mov ecx, edi
call fcn.00402bb0
add esp, 8
test al, al
je 0x40cba2
mov edx, dword [ebp - 0x58]
mov eax, edx
or eax, esi
jne 0x40ca88
xor al, al
jmp 0x40cb95
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x422890]
cmp eax, dword [ecx + 4]
jle 0x40cb39
push 0x422890
call fcn.0040fdc8
add esp, 4
cmp dword [0x422890], 0xffffffff
jne 0x40cb36
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x84]
push 0xa
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
push str.ExFreePool
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x70], 0
call fcn.00408b20
mov byte [ebp - 4], 5
lea edx, [ebp - 0x84]
push dword [0x422834]
mov ecx, edi
push dword [0x422830]
call fcn.00402ee0
add esp, 8
mov dword [0x422898], eax
lea ecx, [ebp - 0x84]
mov dword [0x42289c], edx
call fcn.00405a10
push 0x422890
mov dword [ebp - 4], 0xffffffff
call fcn.0040fd77
add esp, 4
mov edx, dword [ebp - 0x58]
mov eax, dword [0x422898]
or eax, dword [0x42289c]
jne 0x40cb67
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Failed_to_find_ExAllocatePool
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 al, al
jmp 0x40cb95
push esi
push edx
sub esp, 8
mov ecx, edi
call fcn.00407d10
add esp, 0x10
jmp 0x40cb95
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
cmp eax, 2
jne 0x40cb8d
mov edx, dword [ebp - 0x60]
call fcn.00402950
jmp 0x40cb92
call fcn.00402d40
add esp, 8
mov edx, str.___Memory_has_been_released
test al, al
jne 0x40cdb5
mov edx, str.____WARNING:_Failed_to_free_memory_
jmp 0x40cdb5
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x40cbbb
mov eax, dword [ebp - 0x4c]
mov dword [ecx], eax
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.___DriverEntry_returned_0x
call fcn.00405ed0
push 0x401220
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::ios_base_____cdecl___class_std::ios_base___]
push dword [ebp - 0x4c]
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___long_int_]
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_____]
cmp byte [ebx + 0x18], 0
je 0x40cd98
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.___Freeing_memory
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_____]
mov eax, dword [ebx + 0x20]
mov ecx, edi
cmp eax, 1
jne 0x40cd55
push esi
push dword [ebp - 0x58]
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.00402a20
add esp, 0x10
test al, al
je 0x40cd7b
push esi
push dword [ebp - 0x58]
mov ecx, edi
call fcn.00402bb0
add esp, 8
test al, al
je 0x40cd7b
mov edx, dword [ebp - 0x58]
mov eax, edx
or eax, esi
jne 0x40cc65
xor al, al
jmp 0x40cd72
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x422890]
cmp eax, dword [ecx + 4]
jle 0x40cd16
push 0x422890
call fcn.0040fdc8
add esp, 4
cmp dword [0x422890], 0xffffffff
jne 0x40cd13
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x84]
push 0xa
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
push str.ExFreePool
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x70], 0
call fcn.00408b20
mov byte [ebp - 4], 3
lea edx, [ebp - 0x84]
push dword [0x422834]
mov ecx, edi
push dword [0x422830]
call fcn.00402ee0
add esp, 8
mov dword [0x422898], eax
lea ecx, [ebp - 0x84]
mov dword [0x42289c], edx
call fcn.00405a10
push 0x422890
mov dword [ebp - 4], 0xffffffff
call fcn.0040fd77
add esp, 4
mov edx, dword [ebp - 0x58]
mov eax, dword [0x422898]
or eax, dword [0x42289c]
jne 0x40cd44
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.____Failed_to_find_ExAllocatePool
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 al, al
jmp 0x40cd72
push esi
push edx
sub esp, 8
mov ecx, edi
call fcn.00407d10
add esp, 0x10
jmp 0x40cd72
push dword [ebp - 0x28]
push dword [ebp - 0x30]
cmp eax, 2
jne 0x40cd6a
mov edx, dword [ebp - 0x60]
call fcn.00402950
jmp 0x40cd6f
call fcn.00402d40
add esp, 8
mov edx, str.___Memory_has_been_released
test al, al
jne 0x40cd80
mov edx, str.____WARNING:_Failed_to_free_memory_
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_____]
push 0x8000
push 0
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
jmp 0x40cdd1
mov edx, str.____Invalid_format_of_PE_image
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 eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fd39
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret