Function at 0x49d2b0
Capabilities:
Check if file exists
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552b7d
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e8], ecx
lea eax, [ebp - 0x2e4]
push eax
call fcn.004ab980
mov ecx, eax
call fcn.004abd30
mov dword [ebp - 4], 0
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x36c], esp
lea edx, [ebp - 0x2e4]
push edx
call fcn.00471bc0
mov dword [ebp - 0x358], eax
lea eax, [ebp - 0x2cc]
push eax
call fcn.004804c0
add esp, 0x20
mov dword [ebp - 0x360], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2cc]
push ecx
mov ecx, dword [ebp - 0x2e8]
call fcn.004a0a00
movzx edx, al
test edx, edx
jne 0x49d372
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2cc]
call fcn.0046d580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e4]
call fcn.00471d30
jmp 0x49d8c2
xor eax, eax
mov word [ebp - 0x298], ax
push 0x206
push 0
lea ecx, [ebp - 0x296]
push ecx
call fcn.004c62d0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x298]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.___dirsize___.x.ini
lea ecx, [ebp - 0x298]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov word [ebp - 0x90], dx
push 0x7e
push 0
lea eax, [ebp - 0x8e]
push eax
call fcn.004c62d0
add esp, 0xc
lea ecx, [ebp - 0x298]
push ecx
push 0x40
lea edx, [ebp - 0x90]
push edx
push 0x583d6c
push 0x583d70
push str.size
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x90]
push eax
call fcn.004c4dd0
add esp, 4
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp - 0x300]
mov dword [ebp - 0x2f8], ecx
cvtsi2sd xmm0, dword [ebp - 0x2f8]
mov edx, dword [ebp - 0x2f8]
shr edx, 0x1f
addsd xmm0, qword [edx*8 + 0x586290]
divsd xmm0, qword [0x586258]
movsd qword [ebp - 0x350], xmm0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00494a30
add esp, 4
fstp qword [ebp - 0x318]
movsd xmm0, qword [ebp - 0x318]
divsd xmm0, qword [0x586248]
movsd qword [ebp - 0x318], xmm0
movsd xmm0, qword [ebp - 0x318]
comisd xmm0, xmmword [0x586228]
jb 0x49d537
cmp dword [ebp - 0x300], 0
jb 0x49d537
movsd xmm0, qword [ebp - 0x350]
comisd xmm0, xmmword [ebp - 0x318]
jbe 0x49d537
push 4
lea ecx, [ebp - 0x29c]
call sym.xIns.exe_public:_void___thiscall_ReceiverImpl_int__struct_DuiLib::ContextMenuParam_::__autoclassinit2_unsigned_int_
push 0x583d8c
lea ecx, [ebp - 0x29c]
call fcn.0049a9a0
mov byte [ebp - 4], 2
sub esp, 8
movsd xmm0, qword [ebp - 0x350]
movsd qword [esp], xmm0
push 0x583d90
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00499ec0
add esp, 0x10
push 0
push 0x583dc4
lea ecx, [ebp - 0x29c]
call fcn.0046eeb0
push eax
mov ecx, dword [ebp - 0x2e8]
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x2e8]
mov byte [edx + 0x39d], 1
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [eax + 0x3b8]
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x3b8]
mov edx, dword [eax + 0x3c]
call edx
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x2ac], 0
xor eax, eax
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], eax
lea ecx, [ebp - 0x2ac]
push ecx
mov ecx, dword [ebp - 0x2e8]
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x49d782
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x310], edx
mov eax, dword [ebp - 0x2a8]
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x308], ecx
mov edx, dword [ebp - 0x2a0]
mov dword [ebp - 0x304], edx
mov eax, dword [ebp - 0x304]
sub eax, dword [ebp - 0x348]
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0x2e8]
add ecx, 0x3b4
push ecx
lea ecx, [ebp - 0x2f4]
call fcn.004a4b90
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2f0]
push edx
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x368]
call fcn.0046ee80
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0xfffffff6
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x354], esp
lea edx, [ebp - 0x368]
push edx
call fcn.0049b670
mov dword [ebp - 0x344], eax
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x35c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2e9]
call fcn.0049d1b0
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x328]
mov dword [ecx], edx
mov eax, dword [ebp - 0x324]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x320]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x31c]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x338]
mov dword [ecx], edx
mov eax, dword [ebp - 0x334]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x330]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x32c]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x310]
mov dword [ecx], edx
mov eax, dword [ebp - 0x30c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x308]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x304]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x2ac]
mov dword [ecx], edx
mov eax, dword [ebp - 0x2a8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x2a4]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x2a0]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x2e8]
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2e8]
mov ecx, dword [ecx + 0x374]
call fcn.00480e70
mov byte [ebp - 4], 1
push fcn.00480d20
push 1
push 4
lea edx, [ebp - 0x2f4]
push edx
call fcn.004c467b
lea ecx, [ebp - 0x2cc]
call fcn.0046d5c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49d7ac
lea ecx, [ebp - 0x2cc]
call fcn.0046d5c0
push eax
call fcn.00493190
add esp, 4
push 2
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [eax + 0x3a4]
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x3a4]
mov edx, dword [eax + 0x1cc]
call edx
mov ecx, dword [ebp - 0x2e8]
call fcn.004a0860
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x2fc], 0xfa0
mov eax, dword [ebp - 0x2fc]
imul eax, dword [ebp - 0x340]
mov ecx, dword [ebp - 0x2e8]
mov dword [ecx + 0x37c], eax
mov edx, dword [ebp - 0x2e8]
cmp dword [edx + 0x37c], 0
jne 0x49d823
mov eax, dword [ebp - 0x2e8]
mov dword [eax + 0x37c], 0x3e8
push 0
mov ecx, dword [ebp - 0x2fc]
push ecx
push 0x12d
mov ecx, dword [ebp - 0x2e8]
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1e
push 0x12e
mov ecx, dword [ebp - 0x2e8]
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x33c], edx
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x2ea]
push ecx
lea ecx, [ebp - 0x2b4]
call fcn.004a4c50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2b4]
call fcn.004ab5e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.004ab650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2cc]
call fcn.0046d580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e4]
call fcn.00471d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret