Function at 0x4120d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x576a28
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d2020]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28c]
xor eax, eax
mov dword [esp + 0x284], eax
lea edi, [esp + 0x18]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
call fcn.004126f0
mov eax, edi
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, str.cfgdatacomponentconfig.ini
mov dword [esp + 0x28c], 1
call fcn.00404150
add esp, 8
mov byte [esp + 0x284], 2
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
call esi
cmp eax, 0xffffffff
je 0x41216e
test al, 0x10
je 0x4122ae
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x14]
call fcn.004126f0
lea edi, [esp + 0x18]
mov byte [esp + 0x284], 3
call fcn.004042f0
mov byte [esp + 0x284], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4121b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.cfgdatacomponentconfig.ini
call fcn.00404150
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x284], 4
call fcn.004042f0
mov byte [esp + 0x284], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412204
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call esi
cmp eax, 0xffffffff
je 0x412218
test al, 0x10
je 0x4122ae
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x14]
call fcn.004126f0
lea edi, [esp + 0x18]
mov byte [esp + 0x284], 5
call fcn.004042f0
mov byte [esp + 0x284], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41225e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.cfgdatacomponentconfig.ini
call fcn.00404150
add esp, 8
lea edi, [esp + 0x1c]
mov byte [esp + 0x284], 6
call fcn.004042f0
mov byte [esp + 0x284], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5c4718
push str.cvyyyl_
lea edi, [esp + 0x3c]
call fcn.004075b0
add esp, 8
mov byte [esp + 0x284], 7
cmp dword [eax + 0x18], 8
jb 0x4122d7
mov ecx, dword [eax + 4]
jmp 0x4122da
lea ecx, [eax + 4]
lea edx, [esp + 0x28]
push edx
call fcn.00401bd0
lea ecx, [esp + 0x34]
mov byte [esp + 0x284], 9
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x1c]
push eax
push 0x5c3a38
push str.reg_name
lea ecx, [esp + 0x30]
push ecx
call fcn.004125f0
mov bl, 0xa
mov byte [esp + 0x284], bl
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x30]
push edx
call fcn.00407d80
mov eax, dword [0x5dcd6c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5dcd6c
call edx
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x2c], 1
je 0x412448
xor ecx, ecx
cmp ecx, str.uninstallreg
je 0x412448
cmp word [eax], cx
je 0x412448
xor esi, esi
mov dword [esp + 0x20], esi
lea edx, [esp + 0x14]
push edx
push 0x20219
xor edi, edi
push edi
push eax
mov byte [esp + 0x294], 0xb
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4123b0
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x24]
call fcn.004389d0
cmp eax, edi
mov esi, dword [esp + 0x20]
je 0x4123c5
cmp esi, edi
mov byte [esp + 0x284], bl
je 0x412448
push esi
jmp 0x412442
push 0x208
lea ecx, [esp + 0x72]
push edi
push ecx
mov word [esp + 0x78], di
call fcn.0044ea7c
add esp, 0xc
push str.uninstallreg
lea edx, [esp + 0x24]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x74]
mov dword [esp + 0x1c], 0x104
call fcn.00438950
lea esi, [esp + 0x20]
call fcn.00438930
lea eax, [esp + 0x6c]
mov word [esp + 0x274], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412416
sub eax, edx
sar eax, 1
je 0x412432
lea edx, [esp + 0x6c]
mov edi, ebp
call fcn.00401ff0
mov byte [esp + 0x284], bl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x412448
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp]
cmp dword [eax - 0xc], 0
jne 0x41251e
push 0x5c4764
push str.__RF__I_KOBqzqhjqgSHEap
lea edi, [esp + 0x58]
call fcn.004075b0
add esp, 8
mov byte [esp + 0x284], 0xc
cmp dword [eax + 0x18], 8
jb 0x41247e
mov edx, dword [eax + 4]
jmp 0x412481
lea edx, [eax + 4]
test edx, edx
jne 0x412489
xor eax, eax
jmp 0x41249f
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412490
sub eax, esi
sar eax, 1
mov ebx, eax
push edx
mov eax, ebp
call fcn.00402030
mov bl, 0xa
lea ecx, [esp + 0x50]
mov byte [esp + 0x284], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 1
push 0x5c3a94
push ebp
call fcn.00407d80
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ecx
push edx
push str.uninstall_key
lea eax, [esp + 0x20]
push eax
call fcn.004125f0
mov byte [esp + 0x284], 0xd
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push ebp
call fcn.00407d80
mov byte [esp + 0x284], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41251e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x284], 9
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412546
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x284], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41256e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x284], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412596
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x284], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4125be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.0044e502
add esp, 0x274
ret 4