Function at 0x4206a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a765
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4640b4]
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 eax, ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
push ecx
mov dword [ebp - 0x6c], ebx
mov esi, esp
mov dword [ebp - 0x5c], esi
mov eax, dword [eax + 0x10]
sub eax, 0x10
mov dword [ebp - 0x7c], ecx
push eax
call fcn.00409c60
mov ecx, dword [ebp - 0x64]
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00420510
mov dword [edi], 1
xor esi, esi
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0x48]
test eax, eax
je 0x42074f
lea ecx, [ebp - 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x84], esi
cmp esi, 0xffffffff
jne 0x42074f
call fcn.004228a0
test eax, eax
jns 0x420749
xor esi, esi
jmp 0x42074f
mov esi, dword [ebp - 0x84]
lea ecx, [ebp - 0x98]
call sub.mfc140u.dll_CFile::CFile
push 0
push 0
push dword [edi + 0x40]
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0
call sub.mfc140u.dll_CFile::Open
test eax, eax
je 0x420790
lea ecx, [ebp - 0x98]
call sub.mfc140u.dll_CFile::GetLength
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x5c], eax
call sub.mfc140u.dll_CFile::Close
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
add ecx, 0x80000
cmp edx, ecx
jae 0x420b8e
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00409c60
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push 0x1c
mov byte [ebp - 4], 2
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 8
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x42086c
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00435060
mov edi, eax
mov edx, dword [edi]
mov byte [ebp - 4], 4
mov dword [ebp - 0x6c], 1
cmp dword [edx - 4], 1
jle 0x420817
push dword [edx - 0xc]
mov ecx, edi
call fcn.0040a080
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420830
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040e8d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 5
mov ebx, 3
mov ecx, esi
push eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::StringFormattable::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esi], vtable.gmg::SystemTools::StringFormattable.0
jmp 0x42086e
xor esi, esi
push dword [ebp - 0x60]
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 7
push esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.004221f0
mov ecx, dword [ebp - 0x74]
or edi, 0xffffffff
mov dword [ebp - 4], 8
cmp dword [ebp - 0x70], ecx
je 0x4208b8
mov eax, dword [ebp - 0x68]
mov dword [ecx], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x64]
mov dword [ecx + 4], eax
add dword [ebp - 0x74], 8
jmp 0x4208eb
lea eax, [ebp - 0x68]
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00421f40
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x4208eb
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4208eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4208eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 6
test bl, 2
je 0x42094d
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffd
mov dword [ebp - 0x6c], ebx
cmp edx, 8
jb 0x420939
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42092f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42092f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
test bl, 1
je 0x420979
mov edx, dword [ebp - 0x60]
and ebx, 0xfffffffe
mov dword [ebp - 0x6c], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420979
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x64
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 9
test esi, esi
je 0x420a07
push 0x2f
xor eax, eax
mov dword [ebp - 0x48], 0
push str.gmg.GMGSharedLegacy.SpotColorDB.DiskSpaceIsLow1
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0040e8d0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x28]
or ebx, 0x1c
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
push 2
call dword [sym.imp.SystemToolsCPP.dll___0LocalizableStatusMessage_SystemTools_gmg__QAE_W4Severity_StatusMessage_12_ABV__basic_string__WU__cha]
mov dword [esi], vtable.gmg::SystemTools::LocalizableStatusMessage.0
jmp 0x420a0e
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], 0xf
call dword [sym.imp.SystemToolsCPP.dll_public:_class_std::shared_ptr_class_gmg::SystemTools::StatusMessageCollector____thiscall_gmg::SystemTools::TaskFace::GetStatusMessageCollector_void_]
mov esi, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 0x10
push dword [ebp - 0x60]
mov dword [ecx], 0
push dword [ebp - 0x64]
mov dword [ecx + 4], 0
call fcn.004220d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x420a78
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x420a78
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x420a78
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xe
test bl, 0x10
je 0x420ad7
mov edx, dword [ebp - 0x14]
and ebx, 0xffffffef
cmp edx, 8
jb 0x420ac3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420ab9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420ab9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xd
test bl, 8
je 0x420b36
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x420b22
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420b18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420b18
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 2
test bl, 4
je 0x420b7e
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x420b7e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420b74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420b74
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.00422490
mov edx, dword [ebp - 0x5c]
jmp 0x420f36
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
add eax, esi
add ecx, 0x80000
add eax, ecx
cmp edx, eax
jae 0x420f53
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00409c60
add eax, 0x10
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push 0x1c
mov byte [ebp - 4], 0x12
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 8
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 0x13
test esi, esi
je 0x420c41
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00435060
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x6c], 0x20
cmp dword [ecx - 4], 1
jle 0x420c15
push dword [ecx - 0xc]
mov ecx, edi
call fcn.0040a080
mov ecx, dword [edi]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0040ea20
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0x15
mov ebx, 0x60
mov ecx, esi
push eax
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::StringFormattable::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esi], vtable.gmg::SystemTools::StringFormattable.0
jmp 0x420c43
xor esi, esi
push dword [ebp - 0x60]
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 0x17
push esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.004221f0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x78]
call fcn.00422bf0
mov esi, dword [ebp - 0x64]
or edi, 0xffffffff
test esi, esi
je 0x420ca0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x420ca0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x420ca0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0x16
test bl, 0x40
je 0x420d02
mov edx, dword [ebp - 0x44]
and ebx, 0xffffffbf
mov dword [ebp - 0x6c], ebx
cmp edx, 8
jb 0x420cee
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420ce4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420ce4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 0x12
test bl, 0x20
je 0x420d2e
mov edx, dword [ebp - 0x5c]
and ebx, 0xffffffdf
mov dword [ebp - 0x6c], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420d2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x64
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 0x19
test esi, esi
je 0x420da9
push str.gmg.GMGSharedLegacy.SpotColorDB.DiskSpaceIsLow2
lea ecx, [ebp - 0x58]
call fcn.0040ea20
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0x1c
push eax
lea eax, [ebp - 0x40]
or ebx, 0x380
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
push 2
call dword [sym.imp.SystemToolsCPP.dll___0LocalizableStatusMessage_SystemTools_gmg__QAE_W4Severity_StatusMessage_12_ABV__basic_string__WU__cha]
mov dword [esi], vtable.gmg::SystemTools::LocalizableStatusMessage.0
jmp 0x420db0
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], 0x1f
call dword [sym.imp.SystemToolsCPP.dll_public:_class_std::shared_ptr_class_gmg::SystemTools::StatusMessageCollector____thiscall_gmg::SystemTools::TaskFace::GetStatusMessageCollector_void_]
mov esi, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 0x20
mov dword [ecx], 0
mov dword [ecx + 4], 0
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
call fcn.004220d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x420e1a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x420e1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x420e1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0x1e
test ebx, 0x200
je 0x420e7f
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffdff
cmp edx, 8
jb 0x420e6b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420e61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420e61
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0x1d
test ebx, 0x100
je 0x420ee4
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffeff
cmp edx, 8
jb 0x420ed0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420ec6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420ec6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0x12
test bl, bl
jns 0x420f2b
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x420f2b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420f21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420f21
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.00422490
mov edx, dword [ebp - 0x60]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x420f4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x420f58
mov esi, 1
lea ecx, [ebp - 0x98]
call fcn.00445755
mov eax, esi
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.00445a43
mov esp, ebp
pop ebp
ret 8