Function at 0x410520
Capabilities:
Copy file
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522e06
mov eax, dword fs:[0]
push eax
mov eax, 0x18c8
call fcn.004e14c0
mov eax, dword [0x574464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea ecx, [ebp - 0x1050]
call fcn.00410b00
push 0x208
lea eax, [ebp - 0xe48]
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea edx, [ebp - 0x218]
call fcn.0043a480
push str..exe
push str.TibetanTranslator_uninst_worker
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0xe48]
push 0x104
push eax
call fcn.00504984
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.0049d9d0
add esp, 0x24
lea ecx, [ebp - 0xc40]
call fcn.00410a50
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea edx, [ebp - 0x218]
call fcn.0043a480
push str..exe
push str.TibetanTranslator_inst
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.00504984
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xa38]
add esp, 0x18
push 0
push eax
lea eax, [ebp - 0xc40]
push eax
call edi
push 0
lea eax, [ebp - 0xe48]
push eax
lea eax, [ebp - 0x1050]
push eax
call edi
push 0x208
push 0
test eax, eax
je 0x4108ab
lea eax, [ebp - 0x1460]
push eax
call fcn.0049d9d0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1460]
add esp, 0xc
push 0x104
push eax
push 0
call esi
push 0x104
lea eax, [ebp - 0x628]
push eax
push 0
call esi
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea eax, [ebp - 0x1258]
push 0x208
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea edx, [ebp - 0x1258]
call fcn.0043a480
push str..exe
push str.TibetanTranslator_un_asa
lea eax, [ebp - 0x1258]
push eax
push 0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00504984
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0049d9d0
add esp, 0x24
lea edx, [ebp - 0x420]
call fcn.0043a480
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1460]
push eax
call edi
test eax, eax
je 0x410a33
push str._instdir
lea ecx, [ebp - 0x18b8]
call fcn.00405cd0
mov dword [ebp - 4], 0
mov esi, 0x579a18
cmp dword [0x579a2c], 8
mov ecx, eax
push 1
cmovae esi, dword [0x579a18]
push 0x55e870
call fcn.004055e0
cmp word [ebp - 0x628], 0
mov edi, eax
jne 0x4107a5
xor ecx, ecx
jmp 0x4107bf
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4107b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
call fcn.004055e0
push 2
push 0x55e874
mov ecx, eax
call fcn.004055e0
cmp word [esi], 0
mov edi, eax
jne 0x4107e8
xor ecx, ecx
jmp 0x4107ff
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4107f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004055e0
xor ecx, ecx
mov dword [ebp - 0x1874], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x1888], cx
lea ecx, [ebp - 0x1888]
push eax
mov dword [ebp - 0x1878], 0
call fcn.00405820
mov eax, dword [ebp - 0x18a4]
cmp eax, 8
jb 0x410852
inc eax
lea ecx, [ebp - 0x18b8]
push eax
push dword [ebp - 0x18b8]
call fcn.00405d30
cmp dword [ebp - 0x1874], 8
lea ecx, [ebp - 0x420]
push 1
push ecx
lea eax, [ebp - 0x1888]
cmovae eax, dword [ebp - 0x1888]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x55e0f4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x1874]
cmp eax, 8
jb 0x410a33
inc eax
lea ecx, [ebp - 0x1888]
push eax
push dword [ebp - 0x1888]
call fcn.00405d30
jmp 0x410a33
lea eax, [ebp - 0x1668]
push eax
call fcn.0049d9d0
add esp, 0xc
lea eax, [ebp - 0x1668]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.0049d9d0
add esp, 0xc
lea edx, [ebp - 0x420]
call fcn.0043a480
push str..exe
push str.TibetanTranslator_un_asa
lea eax, [ebp - 0x420]
push eax
push 0
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00504984
push 0x208
lea eax, [ebp - 0x1870]
push 0
push eax
call fcn.0049d9d0
add esp, 0x24
lea edx, [ebp - 0x1870]
call fcn.0043a480
push 1
push 0x55e118
push 0x55e87c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
je 0x41096a
push 0xffffffffffffffff
call fcn.00504dee
push 0
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x1668]
push eax
call edi
test eax, eax
je 0x410a33
push str._instdir
lea ecx, [ebp - 0x18d0]
call fcn.00405cd0
push 0x55e870
push str.Test
push 0x55e870
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00405710
mov ecx, eax
call fcn.00405710
mov ecx, eax
call fcn.00405710
xor ecx, ecx
mov dword [ebp - 0x188c], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x18a0], cx
lea ecx, [ebp - 0x18a0]
push eax
mov dword [ebp - 0x1890], 0
call fcn.00405820
lea ecx, [ebp - 0x18d0]
call fcn.00405e00
cmp dword [ebp - 0x188c], 8
lea ecx, [ebp - 0x1870]
push 1
push ecx
lea eax, [ebp - 0x18a0]
cmovae eax, dword [ebp - 0x18a0]
push eax
lea eax, [ebp - 0x830]
push eax
push 0x55e0f4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x18a0]
call fcn.00405e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e06c8
mov esp, ebp
pop ebp
ret