Function at 0x402e00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407855
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x90], esp
push str.CURRENT
call fcn.004050e0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x94], esp
push str.Version
call fcn.004050e0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push str..config.ini
call fcn.004050e0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.004023c0
add esp, 0x30
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x8c], esp
push 0x409430
call fcn.004050e0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x94], esp
push str.Version
call fcn.004050e0
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push str..config.ini
call fcn.004050e0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.004023c0
add esp, 0x30
mov byte [ebp - 4], 6
lea eax, [ebp - 0x70]
mov ecx, esp
push eax
call fcn.004051f0
lea ecx, [ebp - 0x58]
call fcn.00402710
mov ecx, esp
mov byte [ebp - 4], 7
push str.temp
call fcn.004050e0
lea ecx, [ebp - 0x40]
call fcn.00402cb0
add esp, 0x18
mov byte [ebp - 4], 8
mov eax, 0x7fffffff
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 0x12
jb 0x4031de
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0x12
cmovae eax, dword [ebp - 0x40]
push str.UpdateCalcium.exe
push ecx
push eax
push ecx
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x28]
call fcn.004062c0
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
mov dword [ebp - 0x8c], esp
mov ecx, esp
push eax
call fcn.004051f0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x94], esp
push str.UpdateTool
call fcn.004050e0
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x90], esp
push str.Version
call fcn.004050e0
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
push str..config.ini
call fcn.004050e0
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.004023c0
add esp, 0x48
mov byte [ebp - 4], 9
call fcn.00401fc0
add esp, 0x30
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
je 0x403002
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push eax
push str.Update_Failed__cannot_Download_Update_Tools
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40302e
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 5
cmovae ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
push str.__reinstall
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x403062
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403058
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031b4
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4030a8
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40309e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031b4
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x4030ee
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4030e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031b4
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x403134
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40312a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031b4
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp ecx, 0x10
jb 0x403179
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40316f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4031b4
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp ecx, 0x10
jb 0x4031c4
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4031ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4031ba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406642
mov esp, ebp
pop ebp
ret
call fcn.00401630
int3