Function at 0x4132e0
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5effd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
push str.._resconfig.ini
push 0
push str.noupdate
push 0x5cdd34
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x41332a
mov al, 1
jmp 0x4135a8
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x68]
call fcn.00427ee6
mov dword [ebp - 4], 0
push 0
push 0
push str.UpdateLauncher.dat
lea ecx, [ebp - 0x68]
call fcn.004283dd
test eax, eax
je 0x413535
lea edx, [ebp - 0x54]
push edx
call fcn.00413c80
lea ecx, [ebp - 0x18]
call fcn.004032f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.00413c10
push eax
lea ecx, [ebp - 0x54]
call fcn.00413b20
push eax
lea ecx, [ebp - 0x54]
call fcn.00413ac0
push eax
push str._04d__02d__02d
lea eax, [ebp - 0x18]
push eax
call fcn.00403050
add esp, 0x14
lea ecx, [ebp - 0x68]
call fcn.0042831b
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x14], 0
push 0
push 2
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00585c30
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414ffa
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x68]
call fcn.004285bf
push 0
push 2
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00585c30
push 0
push 2
push edx
push eax
call fcn.0055ced0
xor edx, edx
mov ecx, dword [ebp - 0x14]
mov word [ecx + eax], dx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404d70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004027f0
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040a900
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040e890
add esp, 8
mov byte [ebp - 0xd], al
lea ecx, [ebp - 0x34]
call fcn.00403170
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x413509
push 0
push 2
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00585c30
sub eax, 1
sbb edx, 0
push 0
push 2
push edx
push eax
call fcn.0055ced0
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax]
cmp edx, 0x33
jl 0x413509
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
push 2
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0055c4f8
add esp, 8
push str.launcherStartAfterFail
call fcn.0040d3d0
mov ecx, eax
call fcn.0040d320
mov byte [ebp - 0xe], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00403170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00427f16
mov al, byte [ebp - 0xe]
jmp 0x4135a8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], edx
push 2
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0055c4f8
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00403170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00403170
cmp dword [ebp - 0x24], 2
jne 0x413592
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + ecx]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404d70
lea ecx, [ebp - 0x20]
push ecx
push str.update
call fcn.0040a820
add esp, 8
movzx edx, al
test edx, edx
je 0x41358a
mov byte [ebp - 0xf], 1
lea ecx, [ebp - 0x20]
call fcn.00403170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00427f16
mov al, byte [ebp - 0xf]
jmp 0x4135a8
lea ecx, [ebp - 0x20]
call fcn.00403170
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00427f16
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret