Function at 0x1010945
Capabilities:
Delete file
Identify system language via api

Disassembly:
push 0x50
mov eax, 0x1019919
call fcn.0100191d
mov edi, ecx
xor ebx, ebx
push 0x101d054
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x1c], ebx
call fcn.010030f5
lea ecx, [edi + 0x50]
mov esi, 0x1003b58
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x5c], ecx
call fcn.01003625
lea ecx, [edi + 0x54]
push esi
mov dword [ebp - 0x58], ecx
call fcn.01003625
lea ecx, [edi + 0x58]
mov eax, dword [ecx]
cmp dword [eax - 0xc], ebx
mov dword [ebp - 0x4c], ecx
jle 0x10109ae
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x4c]
push esi
call fcn.01003625
lea eax, [ebp - 0x18]
push eax
push 0x1010e8c
push 1
push ebx
push 0x1010e9c
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1010ab6
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 3
push 0x80000002
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [ebp - 0x50], eax
jl 0x1010c01
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0100e7e2
xor esi, esi
cmp dword [ebp - 0x48], ebx
jbe 0x1010a64
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x38]
push edx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x44]
movzx edx, word [edx + esi*4]
push edx
push eax
call dword [ecx + 0x20]
cmp eax, ebx
mov dword [ebp - 0x50], eax
jge 0x1010a4e
inc esi
cmp esi, dword [ebp - 0x48]
jae 0x1010a64
jmp 0x1010a1a
push dword [ebp - 0x34]
mov ecx, edi
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.01010585
cmp dword [ebp - 0x50], ebx
jge 0x1010c01
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push eax
push dword [ebp - 0x18]
call dword [esi + 0x20]
test eax, eax
jl 0x1010c01
push dword [ebp - 0x34]
mov ecx, edi
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
call fcn.01010585
jmp 0x1010c01
push ebx
lea eax, [ebp - 0x54]
push eax
push 0x1010e6c
push 0x1010e10
mov esi, 0x80000002
push esi
call fcn.0100e252
test eax, eax
je 0x1010c01
cmp dword [ebp - 0x54], ebx
setne al
cmp al, bl
je 0x1010c01
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
movzx eax, ax
push eax
lea eax, [ebp - 0x14]
push 0x1010d98
push eax
call fcn.0100d733
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x14]
push esi
call edi
test eax, eax
je 0x1010b67
push ebx
lea eax, [ebp - 0x40]
push eax
push 0x1010d64
push 0x1010e10
push esi
call fcn.0100e166
test eax, eax
je 0x1010c01
push dword [ebp - 0x40]
lea eax, [ebp - 0x14]
push 0x1010cf0
push eax
call fcn.0100d733
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x14]
push esi
call edi
test eax, eax
jne 0x1010c01
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x1010cd8
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push esi
call fcn.0100e166
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x1010bac
push dword [ebp - 0x20]
call edi
cmp eax, 0x28
jle 0x1010ba1
mov eax, dword [ebp - 0x20]
mov word [eax + 0x4e], bx
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x5c]
call fcn.010037df
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x1010cc4
push dword [ebp - 0x14]
push esi
call fcn.0100e166
test eax, eax
je 0x1010bdf
push dword [ebp - 0x24]
call edi
cmp eax, 0x37
jle 0x1010bd4
mov eax, dword [ebp - 0x24]
mov word [eax + 0x6c], bx
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x58]
call fcn.010037df
push ebx
lea eax, [ebp - 0x3c]
push eax
push 0x1010cb4
push dword [ebp - 0x14]
push esi
call fcn.0100e166
test eax, eax
je 0x1010c01
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
call fcn.010037df
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jg 0x1010c1f
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jg 0x1010c1f
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jle 0x1010c23
mov byte [ebp - 0xd], 1
cmp dword [ebp - 0x20], ebx
je 0x1010c31
push dword [ebp - 0x20]
call fcn.0100390d
pop ecx
cmp dword [ebp - 0x24], ebx
je 0x1010c3f
push dword [ebp - 0x24]
call fcn.0100390d
pop ecx
cmp dword [ebp - 0x3c], ebx
je 0x1010c4d
push dword [ebp - 0x3c]
call fcn.0100390d
pop ecx
cmp dword [ebp - 0x40], ebx
je 0x1010c5b
push dword [ebp - 0x40]
call fcn.0100390d
pop ecx
cmp dword [ebp - 0x44], ebx
je 0x1010c69
push dword [ebp - 0x44]
call fcn.0100390d
pop ecx
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x1010c79
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x28]
push eax
call fcn.0100e2d8
lea eax, [ebp - 0x2c]
push eax
call fcn.0100e2d8
lea eax, [ebp - 0x30]
push eax
call fcn.0100e2d8
lea eax, [ebp - 0x34]
push eax
call fcn.01003772
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.01001c53
mov al, byte [ebp - 0xd]
call fcn.01002618
ret