Function at 0x402420
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45da67
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x47ea94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x26c]
push 0
push 0
push 0
push 0
push 0
push str.QMReportMgr::CReportManager::Initialize
call fcn.00407b80
mov dword [ebp - 4], 0
test edi, edi
je 0x40298e
cmp dword [edi + 0x74], 0
jne 0x40298e
lea eax, [edi + 0x5c]
mov dword [ebp - 0x270], 1
push eax
mov dword [ebp - 0x274], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00403290
test eax, eax
je 0x4024cf
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [ebp - 0x274]
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x402990
mov ebx, 1
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
mov byte [ebp - 4], 2
cmp dword [esi + 0x10], 0
jne 0x40271f
push 0
push 0
push 0
push 0
push 0
push str.QMReportMgr::CReportManager::GetDefaultDRPath
lea ecx, [ebp - 0x268]
call fcn.00407b80
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x21c]
call fcn.00401d70
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push str.dr.dll
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4025a3
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402587
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x40263d
mov eax, dword [0x480c5c]
test eax, eax
jne 0x4025c2
push str.QMGetInstallDir
call fcn.00409780
add esp, 4
mov dword [0x480c5c], eax
test eax, eax
je 0x4025d0
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call eax
push str.dr.dll
lea eax, [ebp - 0x21c]
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
test eax, eax
je 0x40262e
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402615
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x40263d
xor eax, eax
push eax
mov word [ebp - 0x234], ax
push 0x470b9c
lea ecx, [ebp - 0x234]
call fcn.00405f80
lea ecx, [ebp - 0x268]
call fcn.00407aa0
push 0
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
call fcn.00408900
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
call fcn.00405cc0
mov edx, dword [ebp - 0x250]
cmp edx, 0x10
jb 0x4026b5
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4026ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4026ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045be8d
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
cmp edx, 8
jb 0x4027e0
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402710
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402710
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045be8d
add esp, 8
jmp 0x4027e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x402729
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4027e0
cmp dword [esi + 0x14], 8
mov ebx, esi
jb 0x402742
mov ebx, dword [esi]
mov eax, dword [0x480c40]
test eax, eax
jne 0x402761
push str.QMSafeCheckPe
call fcn.00409780
add esp, 4
mov dword [0x480c40], eax
test eax, eax
je 0x4027c9
push 0x104
push ebx
call eax
test eax, eax
je 0x4027c9
push 0
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.00408900
add esp, 4
lea ecx, [ebp - 0x24c]
push eax
call fcn.00405cc0
mov edx, dword [ebp - 0x250]
cmp edx, 0x10
jb 0x4027db
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4027bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4027bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045be8d
add esp, 8
jmp 0x4027db
push 0
push 0x470b98
lea ecx, [ebp - 0x24c]
call fcn.00406100
mov ebx, 1
cmp dword [ebp - 0x238], 0x10
lea esi, [ebp - 0x24c]
push 0
cmovae esi, dword [ebp - 0x24c]
lea ecx, [ebp - 0x268]
push 0
push 0
push 0
push 0
push 0x472a70
call fcn.00407b80
cmp dword [0x480978], 0
jne 0x4028b2
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x480978], eax
test eax, eax
je 0x4028f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Init
push eax
call esi
push str.CreateIReportClient
push dword [0x480978]
mov dword [0x480974], eax
call esi
push str.ReleaseIReportClient
push dword [0x480978]
mov dword [0x480968], eax
call esi
push str.GetGuid
push dword [0x480978]
mov dword [0x48096c], eax
call esi
push str.UnInit
push dword [0x480978]
mov dword [0x48097c], eax
call esi
cmp dword [0x480974], 0
mov dword [0x480970], eax
je 0x4028db
cmp dword [0x480968], 0
je 0x4028db
cmp dword [0x48096c], 0
je 0x4028db
cmp dword [0x48097c], 0
je 0x4028db
test eax, eax
je 0x4028db
lea ecx, [ebp - 0x268]
call fcn.00407aa0
mov esi, dword [ebp + 0xc]
test esi, esi
setne al
movzx eax, al
push eax
call dword [0x480974]
mov dword [edi + 0x48], esi
mov dword [edi + 0x3c], 1
jmp 0x4028fe
push dword [0x480978]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x480978], 0
lea ecx, [ebp - 0x268]
call fcn.00407aa0
xor ebx, ebx
call fcn.00403d40
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call fcn.00403ca0
mov ecx, edi
mov dword [edi + 0x18], eax
call fcn.004030b0
mov ecx, edi
call fcn.004045f0
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [ebp - 0x238]
cmp edx, 0x10
jb 0x402965
mov ecx, dword [ebp - 0x24c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40295b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40295b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0045be8d
add esp, 8
push dword [ebp - 0x274]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x402990
xor ebx, ebx
lea ecx, [ebp - 0x26c]
call fcn.00407aa0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be1b
mov esp, ebp
pop ebp
ret 8