Function at 0x411770
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e45b0
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x519074]
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 ecx, dword [ecx + 0x3cc]
push str.ck_W
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [0x520490]
push 0x500e2c
sub esp, 0x10
mov dword [ebp - 0x224], 0
mov eax, esp
mov dword [ebp - 0x220], 0
movq xmm0, qword [ebp - 0x224]
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00435a10
cmp dword [0x5202e8], 0xffffffff
jne 0x4118f8
push 0x500e64
lea ecx, [ebp - 0x24c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 4
mov dword [ebp - 4], 0
call fcn.004760bd
add esp, 4
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x41184c
push 0
push eax
push 0x7ea
push dword [0x520110]
call esi
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov ecx, dword [0x520490]
sub esp, 0x14
mov eax, esp
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
movq xmm0, qword [ebp - 0x224]
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.00435c00
push 0x500ea0
lea ecx, [ebp - 0x24c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 4
mov dword [ebp - 4], 2
call fcn.004760bd
add esp, 4
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
test eax, eax
je 0x4118e5
push 0x40
push eax
push 0x7eb
push dword [0x520110]
call esi
lea ecx, [ebp - 0x24c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
xor al, al
jmp 0x411cd7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00499430
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x254]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov dword [ebp - 4], 4
call fcn.0040d7d0
lea ecx, [ebp - 0x254]
test al, al
je 0x411950
push str.VciUpdateVCI32.bin
jmp 0x411955
push str.VciUpdatemcu.bin
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__]
push 0x500f30
push dword [ebp - 0x254]
call fcn.004b6cbe
mov edi, eax
add esp, 8
test edi, edi
jne 0x411af8
push eax
lea ecx, [ebp - 0x254]
call dword [sym.imp.utilities.dll_public:_wchar_t____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::GetBuffer_int_]
mov edx, eax
mov dword [ebp - 0x220], edi
mov ecx, edx
mov dword [ebp - 0x21c], 7
xor eax, eax
mov word [ebp - 0x230], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4119a5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00455070
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.00458850
push eax
sub esp, 8
mov byte [ebp - 4], 6
mov eax, esp
mov dword [eax], 0x500f38
mov dword [eax + 4], 0x4d
mov ecx, dword [0x520490]
call fcn.00420a20
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x411a36
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411a2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411cf3
push edx
push ecx
call fcn.00476085
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
cmp edx, 8
jb 0x411a95
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411a8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411cf8
push edx
push ecx
call fcn.00476085
add esp, 8
push 0x500f88
lea ecx, [ebp - 0x24c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 4
mov byte [ebp - 4], 7
call fcn.004760bd
add esp, 4
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 8
push ecx
mov ecx, eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
test eax, eax
je 0x411ae5
push 0x30
push eax
push 0x7eb
push dword [0x520110]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x24c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
xor bl, bl
jmp 0x411cc9
push 2
push 0
push edi
call fcn.004b9c96
push edi
call fcn.004ba2be
push 0
push 0
push edi
mov dword [0x520104], eax
call fcn.004b9c96
mov ebx, dword [0x520104]
push ebx
call fcn.00476077
mov esi, eax
add esp, 0x20
test esi, esi
je 0x411b3a
push ebx
push 0
push esi
call fcn.00499430
add esp, 0xc
jmp 0x411b3c
xor esi, esi
mov eax, dword [0x52012c]
mov dword [0x52012c], esi
test eax, eax
je 0x411b5a
push eax
call fcn.00476080
mov esi, dword [0x52012c]
add esp, 4
test esi, esi
jne 0x411caf
push esi
lea ecx, [ebp - 0x254]
call dword [sym.imp.utilities.dll_public:_wchar_t____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::GetBuffer_int_]
push eax
lea ecx, [ebp - 0x230]
call fcn.00415c80
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x248]
call fcn.00458850
push eax
sub esp, 8
mov byte [ebp - 4], 0xa
mov eax, esp
mov dword [eax], str.OnUpdateVci
mov dword [eax + 4], 0x2e
mov ecx, dword [0x520490]
call fcn.00420a20
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x411bf0
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x411be6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411cfd
push edx
push ecx
call fcn.00476085
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
cmp edx, 8
jb 0x411c4f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411c45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411d02
push edx
push ecx
call fcn.00476085
add esp, 8
push 0x501008
lea ecx, [ebp - 0x250]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 4
mov byte [ebp - 4], 0xb
call fcn.004760bd
add esp, 4
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
test eax, eax
je 0x411c9f
push 0x30
push eax
push 0x7eb
push dword [0x520110]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp - 0x250]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
xor bl, bl
jmp 0x411cc9
push edi
push dword [0x520104]
push 1
push esi
call fcn.004ba4b2
push edi
call fcn.004b7102
add esp, 0x14
mov bl, 1
lea ecx, [ebp - 0x254]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov al, bl
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.00476066
mov esp, ebp
pop ebp
ret
call fcn.004a3cba
call fcn.004a3cba
call fcn.004a3cba
call fcn.004a3cba
int3