Function at 0x407928
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
push esi
push edi
lea eax, [esp + 8]
mov esi, ecx
push 0x64
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.svc.nbd.dll_public:_static_class_Ref_class_Services::NBD::Client::Service____cdecl_Services::NBD::Client::Service::create_unsigned_int_]
mov edi, eax
pop ecx
pop ecx
mov edx, dword [edi]
test edx, edx
je 0x407963
mov ecx, dword [edx + 4]
add edx, 4
mov ecx, dword [ecx + 4]
add ecx, edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x40797b
mov eax, dword [ecx + 4]
add ecx, 4
add ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [edi]
lea ecx, [esp + 8]
mov dword [esi + 0x80], eax
call fcn.00405291
cmp dword [esi + 0x80], 0
je 0x407a58
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::level_void_]
cmp eax, 1
ja 0x407a4b
push dword [0x43ece0]
call dword [sym.imp.lib.syslog.dll_public:_static_bool___cdecl_SysLogFilter::state_unsigned_int_]
pop ecx
test al, al
je 0x407a4b
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.lib.syslog.dll_public:_static_class_Ref_class_SysLogStream____cdecl_SysLogStream::stdOutPrinter_void_]
pop ecx
push 1
lea edx, [esp + 0x1c]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax]
push dword [0x43ece0]
mov esi, dword [eax]
mov edi, dword [esi]
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::id_unsigned_int_]
pop ecx
push eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call dword [edi + 4]
push str.NBD_service_available
lea edx, [esp + 0x10]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x14]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x6c]
lea ecx, [esp + 8]
call fcn.00405291
lea ecx, [esp + 0xc]
call fcn.00405291
lea ecx, [esp + 0x14]
call fcn.00405291
lea ecx, [esp + 0x18]
call fcn.00405291
lea ecx, [esp + 0x1c]
call fcn.00405291
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x80], 0
jne 0x407b0a
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::level_void_]
cmp eax, 1
ja 0x407b0a
push dword [0x43ece0]
call dword [sym.imp.lib.syslog.dll_public:_static_bool___cdecl_SysLogFilter::state_unsigned_int_]
pop ecx
test al, al
je 0x407b0a
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.lib.syslog.dll_public:_static_class_Ref_class_SysLogStream____cdecl_SysLogStream::stdOutPrinter_void_]
pop ecx
push 1
lea edx, [esp + 0xc]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax]
push dword [0x43ece0]
mov esi, dword [eax]
mov edi, dword [esi]
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::id_unsigned_int_]
pop ecx
push eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call dword [edi + 4]
push str.NBD_service_not_available
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x14]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x6c]
lea ecx, [esp + 0x1c]
call fcn.00405291
lea ecx, [esp + 0x18]
call fcn.00405291
lea ecx, [esp + 0x14]
call fcn.00405291
lea ecx, [esp + 8]
call fcn.00405291
lea ecx, [esp + 0xc]
call fcn.00405291
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x4080e8
and dword [esp + 0x44], 0
lea eax, [esp + 0x44]
and dword [esp + 0x48], 0
and dword [esp + 0x4c], 0
push eax
call dword [sym.imp.svc.nbd.dll_public:_bool___thiscall_Services::NBD::Client::Service::importList_class_std::vector_enum_Services::NBD::Client::Types::ImportID__class_std::allocator_enum_Services::NBD::Client::Types::ImportID____]
test al, al
jne 0x407c10
call dword [sym.imp.system.dll_public:_static_unsigned_int___cdecl_Error::get_void_]
mov dword [esp + 0x1c], eax
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::level_void_]
cmp eax, 4
ja 0x4080df
push dword [0x43ece0]
call dword [sym.imp.lib.syslog.dll_public:_static_bool___cdecl_SysLogFilter::state_unsigned_int_]
pop ecx
test al, al
je 0x4080df
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.lib.syslog.dll_public:_static_class_Ref_class_SysLogStream____cdecl_SysLogStream::stdOutPrinter_void_]
pop ecx
push 4
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax]
push dword [0x43ece0]
mov esi, dword [eax]
mov edi, dword [esi]
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::id_unsigned_int_]
pop ecx
push eax
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edi + 4]
push dword [esp + 0x1c]
lea edx, [esp + 0xc]
push str.Failed_to_retrieve_list_of_imports__error:
mov ecx, dword [eax]
push edx
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, eax
lea ecx, [esp + 0x18]
call fcn.00401473
pop ecx
lea edx, [esp + 0x18]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x6c]
lea ecx, [esp + 0x18]
call fcn.00405291
lea ecx, [esp + 0x14]
call fcn.00405291
lea ecx, [esp + 8]
call fcn.00405291
lea ecx, [esp + 0xc]
call fcn.00405291
lea ecx, [esp + 0x10]
call fcn.00405291
lea ecx, [esp + 0x20]
call fcn.00405291
jmp 0x4080df
and dword [esp + 0x34], 0
push 0x38
call fcn.0042f8f4
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 8], ecx
cmp ecx, edx
je 0x407f8c
mov edi, dword [ecx]
lea eax, [esp + 0xa0]
mov ecx, dword [esi + 0x80]
push edi
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.svc.nbd.dll_public:_class_std::optional_struct_Services::NBD::Client::Types::ImportInfo____thiscall_Services::NBD::Client::Service::importInfo_enum_Services::NBD::Client::Types::ImportID_]
cmp byte [esp + 0xe0], 0
jne 0x407df8
call dword [sym.imp.system.dll_public:_static_unsigned_int___cdecl_Error::get_void_]
mov dword [esp + 0x54], eax
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::level_void_]
cmp eax, 4
ja 0x407d2c
push dword [0x43ece0]
call dword [sym.imp.lib.syslog.dll_public:_static_bool___cdecl_SysLogFilter::state_unsigned_int_]
pop ecx
test al, al
je 0x407d2c
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.lib.syslog.dll_public:_static_class_Ref_class_SysLogStream____cdecl_SysLogStream::stdOutPrinter_void_]
pop ecx
push 4
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax]
push dword [0x43ece0]
mov esi, dword [eax]
mov edi, dword [esi]
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::id_unsigned_int_]
pop ecx
push eax
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call dword [edi + 4]
push dword [esp + 0x20]
lea edx, [esp + 0x1c]
push str.Failed_to_retrieve_information_for_import
mov ecx, dword [eax]
push edx
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, eax
lea ecx, [esp + 0x20]
call fcn.00401473
pop ecx
lea ecx, [esp + 0x1c]
call fcn.00405291
lea ecx, [esp + 0x18]
call fcn.00405291
lea ecx, [esp + 0x14]
call fcn.00405291
lea ecx, [esp + 0xc]
call fcn.00405291
lea ecx, [esp + 0x50]
call fcn.00405291
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::level_void_]
cmp eax, 4
ja 0x407f63
push dword [0x43ece0]
call dword [sym.imp.lib.syslog.dll_public:_static_bool___cdecl_SysLogFilter::state_unsigned_int_]
pop ecx
test al, al
je 0x407f63
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.lib.syslog.dll_public:_static_class_Ref_class_SysLogStream____cdecl_SysLogStream::stdOutPrinter_void_]
pop ecx
push 4
lea edx, [esp + 0x28]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax]
push dword [0x43ece0]
mov esi, dword [eax]
mov edi, dword [esi]
call dword [sym.imp.lib.syslog.dll_public:_static_unsigned_int___cdecl_SysLogFilter::id_unsigned_int_]
pop ecx
push eax
lea eax, [esp + 0x68]
mov ecx, esi
push eax
call dword [edi + 4]
push dword [esp + 0x54]
lea edx, [esp + 0x64]
push str.__error:
mov ecx, dword [eax]
push edx
mov eax, dword [ecx + 4]
mov eax, dword [eax + 8]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edx, eax
lea ecx, [esp + 0x60]
call fcn.00401473
pop ecx
lea edx, [esp + 0x58]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x6c]
lea ecx, [esp + 0x58]
call fcn.00405291
lea ecx, [esp + 0x5c]
call fcn.00405291
lea ecx, [esp + 0x60]
call fcn.00405291
lea ecx, [esp + 0x64]
call fcn.00405291
lea ecx, [esp + 0x24]
call fcn.00405291
lea ecx, [esp + 0x28]
call fcn.00405291
jmp 0x407f63
xor eax, eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], eax
mov byte [esp + 0x84], al
lea eax, [esp + 0xa4]
push eax
call fcn.004052fc
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x78], ecx
push eax
lea ecx, [esp + 0x38]
call fcn.00413d4a
mov esi, dword [esp + 0x90]
cmp byte [esi + 0xd], 0
jne 0x407e7d
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.004143fb
test al, al
je 0x407e81
mov esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x30]
je 0x407eb2
mov eax, dword [esi + 0x30]
lea ecx, [esp + 0x68]
push ecx
cmp eax, dword [esi + 0x34]
je 0x407ea4
mov ecx, eax
call fcn.0040aae9
add dword [esi + 0x30], 0x20
jmp 0x407f4e
push eax
lea ecx, [esi + 0x2c]
call fcn.00413746
jmp 0x407f4e
xor ecx, ecx
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
push ecx
lea ecx, [esp + 0x40]
call fcn.00413746
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0xac]
lea ecx, [esp + 0xf4]
call fcn.004131e9
pop ecx
push eax
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x38]
call fcn.0041455d
lea ecx, [esp + 0x10c]
call fcn.0041315b
mov esi, dword [esp + 0x38]
test esi, esi
je 0x407f4e
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x407f30
lea ecx, [esi + 0x18]
call fcn.00405291
mov ecx, esi
call fcn.00405291
add esi, 0x20
cmp esi, edi
jne 0x407f16
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ecx, esi
sub edx, esi
and edx, 0xffffffe0
call fcn.004056ea
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x80]
call fcn.00405291
lea ecx, [esp + 0x68]
call fcn.00405291
lea ecx, [esp + 0xa0]
call fcn.00412cfc
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x10]
add ecx, 4
mov dword [esp + 8], ecx
cmp ecx, dword [esp + 0x2c]
jne 0x407c47
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp byte [eax + 0xd], 0
jne 0x4080d6
lea ecx, [esi + 0x60]
mov dword [esp + 0x24], ecx
lea edi, [eax + 0x10]
push 0x4c
mov dword [esp + 0x2c], edi
call fcn.0042f8f4
mov esi, eax
pop ecx
test esi, esi
je 0x407fef
push 0x4c
push 0
push esi
call fcn.0042ff56
pop ecx
pop ecx
mov ecx, esi
call fcn.004080ee
mov esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 8], esi
test esi, esi
je 0x407ff9
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
add ecx, 4
add ecx, esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x10], esi
jmp 0x407ff9
and dword [esp + 0x10], 0
and dword [esp + 8], 0
push 6
pop ecx
mov esi, edi
lea eax, [esp + 0x2c]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x8c]
call fcn.00405adc
mov ecx, dword [esp + 0x10]
push eax
add ecx, 0xc
call fcn.004052fc
lea ecx, [esp + 0x2c]
call fcn.00405291
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov esi, edx
push 6
pop ecx
lea edi, [eax + 0x10]
add edx, 0x1c
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x30]
mov dword [eax + 0x3c], 1
cmp esi, edx
je 0x408071
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 8]
push eax
call fcn.00412dcb
lea ecx, [esp + 8]
call fcn.00405291
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x4080b2
mov ecx, dword [eax + 4]
jmp 0x4080a4
cmp eax, dword [ecx + 8]
jne 0x4080aa
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x40809a
mov eax, ecx
mov dword [esp + 0xc], eax
jmp 0x4080cc
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jmp 0x4080c6
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
mov dword [esp + 0xc], eax
je 0x4080bc
cmp byte [eax + 0xd], 0
je 0x407fa3
lea ecx, [esp + 0x30]
call fcn.00412d1b
lea ecx, [esp + 0x44]
call fcn.00412d36
pop edi
pop esi
mov esp, ebp
pop ebp
ret