Function at 0x40c170
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create process on windows
Set file attributes

Disassembly:
push 0x298
mov eax, 0x52d6c7
call fcn.00512375
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xa10], ebx
jne 0x40d82a
mov eax, dword [ebp + 8]
dec eax
je 0x40d4aa
dec eax
je 0x40cd57
dec eax
je 0x40c846
dec eax
jne 0x40d82a
push ecx
lea esi, [edi + 0x9fc]
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
call fcn.00401668
mov dword [ebp - 4], 0x75
mov ecx, dword [0x59159c]
or dword [ebp - 4], 0xffffffff
call fcn.00409522
mov ecx, eax
mov dword [ebp - 0x234], ecx
cmp ecx, ebx
je 0x40d82a
call fcn.0040e524
test eax, eax
je 0x40c218
mov ecx, dword [ebp - 0x234]
call fcn.0040e44a
fstp dword [ebp - 0x238]
fld dword [ebp - 0x238]
push ecx
lea ecx, [edi + 0xc8]
fstp dword [esp]
call fcn.00403cc5
mov ecx, dword [ebp - 0x234]
call fcn.0040e52d
test eax, eax
je 0x40d82a
push dword [ebp - 0x234]
mov ecx, edi
call fcn.00409cd9
test eax, eax
jne 0x40c404
mov ecx, dword [ebp - 0x234]
call fcn.0040e624
cmp eax, 1
jne 0x40c286
push 0x542b54
push 0x542100
mov ecx, esi
call fcn.00409615
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
call fcn.00401668
mov dword [ebp - 4], 0x76
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x234]
jmp 0x40ce2a
mov ecx, dword [ebp - 0x234]
call fcn.0040e624
cmp eax, 2
jne 0x40c2bf
push str..doc
push 0x542b54
mov ecx, esi
call fcn.00409615
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
call fcn.00401668
mov dword [ebp - 4], 0x77
jmp 0x40c277
mov ecx, dword [ebp - 0x234]
call fcn.0040e624
cmp eax, 3
jne 0x40c404
push 1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x542100
push str..doc
mov ecx, esi
call fcn.00409615
call fcn.00414e89
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040131c
mov dword [ebp - 4], 0x79
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x268]
push eax
call fcn.0040e767
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0x7a
mov ecx, dword [0x591720]
push 0x10
lea eax, [ebp - 0x29c]
push eax
call fcn.0040efeb
mov byte [ebp - 4], 0x7b
mov eax, dword [eax]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x230], eax
call fcn.0040e5ef
push eax
mov eax, dword [ebp - 0x244]
push dword [eax]
lea eax, [ebp - 0x23c]
push dword [esi]
push dword [ebp - 0x230]
push eax
call fcn.00401b9f
add esp, 0x14
mov byte [ebp - 4], 0x7a
mov ecx, dword [ebp - 0x29c]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x79
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x7e
mov byte [ebp - 4], 0x79
call fcn.00402f79
pop ecx
mov ecx, dword [0x591720]
push 0xf
lea eax, [ebp - 0x2a4]
push eax
call fcn.0040efeb
mov byte [ebp - 4], 0x7f
mov eax, dword [eax]
mov esi, dword [ebp - 0x23c]
push ebx
push eax
push esi
mov ecx, edi
call fcn.0041e1dc
mov byte [ebp - 4], 0x79
mov ecx, dword [ebp - 0x2a4]
add ecx, 0xfffffff0
call fcn.004010d2
mov ecx, edi
call fcn.0040909e
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
jmp 0x40d825
mov ecx, dword [0x591728]
push ebx
add ecx, 0x1a0
call fcn.00422873
mov ecx, dword [0x591728]
push ebx
add ecx, 0x288
call fcn.00422873
fld1
push ecx
fstp dword [esp]
lea ecx, [edi + 0xc8]
call fcn.00403cc5
push dword [ebp - 0x234]
mov ecx, dword [0x59159c]
call fcn.00409929
mov ecx, dword [0x591720]
push 7
lea eax, [ebp - 0x270]
push eax
call fcn.0040efeb
mov dword [ebp - 4], 0x82
mov ecx, dword [0x591728]
push dword [eax]
add ecx, 0x214
call fcn.004227a8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x270]
add ecx, 0xfffffff0
call fcn.004010d2
push dword [0x591580]
lea ecx, [ebp - 0x240]
call fcn.00401668
mov dword [ebp - 4], 0x84
lea eax, [ebp - 0x240]
push eax
mov esi, 0x59176c
lea eax, [ebp - 0x254]
push esi
push eax
call fcn.00401bb3
add esp, 0xc
mov byte [ebp - 4], 0x85
push 0x80
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, ebx
jne 0x40c53a
call fcn.00414e89
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040131c
mov byte [ebp - 4], 0x87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x23c]
push str.SetFileAttributes_strFolder_FILE_ATTRIBUTE_NORMAL__error:_u
push eax
call fcn.00401b9f
pop ecx
pop ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x88
mov byte [ebp - 4], 0x87
call fcn.00402f79
pop ecx
mov byte [ebp - 4], 0x85
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp - 0x254]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x8a
mov byte [ebp - 4], 0x85
call fcn.00412dc7
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
push eax
call fcn.004013da
pop ecx
add eax, 0x10
pop ecx
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0x8c
push ebx
push str..exe
lea ecx, [ebp - 0x244]
call fcn.00409331
push eax
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x244]
call fcn.0040980d
mov byte [ebp - 4], 0x8d
push eax
lea ecx, [ebp - 0x244]
call fcn.00408848
mov byte [ebp - 4], 0x8c
mov ecx, dword [ebp - 0x298]
add ecx, 0xfffffff0
call fcn.004010d2
mov ebx, str._Data
push ebx
call fcn.00512590
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x244]
call fcn.00401a1d
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x8f
push dword [ebp - 0x238]
call fcn.0041352a
add esp, 0x10
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x591788
lea eax, [ebp - 0x258]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x90
push 0x5917a4
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.00401bb3
add esp, 0x18
mov byte [ebp - 4], 0x91
push dword [ebp - 0x248]
mov ecx, edi
push dword [ebp - 0x258]
call fcn.0040a6a1
push 5
mov ecx, dword [0x591720]
lea eax, [ebp - 0x278]
push eax
call fcn.0040efeb
mov byte [ebp - 4], 0x92
mov ecx, dword [0x591728]
push dword [eax]
add ecx, 0x214
call fcn.004227a8
mov byte [ebp - 4], 0x91
mov ecx, dword [ebp - 0x278]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp - 0x258]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x94
mov byte [ebp - 4], 0x91
call fcn.00412dc7
mov dword [esp], 0x591790
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x95
push 0x59178c
lea eax, [ebp - 0x24c]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x96
add esp, 0x14
lea eax, [ebp - 0x24c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x97
mov byte [ebp - 4], 0x96
call fcn.00412dc7
lea eax, [ebp - 0x24c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x98
push ecx
lea eax, [ebp - 0x260]
mov ecx, esp
mov dword [ebp - 0x23c], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x99
mov byte [ebp - 4], 0x96
call fcn.00412e89
mov eax, dword [0x591580]
pop ecx
pop ecx
add eax, 4
push eax
lea ecx, [ebp - 0x264]
call fcn.00401668
mov byte [ebp - 4], 0x9a
push 0x542af0
lea ecx, [ebp - 0x250]
call fcn.00401d42
mov byte [ebp - 4], 0x9b
mov eax, dword [ebp - 0x264]
push dword [eax - 0xc]
lea ecx, [ebp - 0x250]
push eax
call fcn.00401a1d
mov ecx, dword [0x591728]
push dword [ebp - 0x250]
add ecx, 0x370
call fcn.004227a8
mov ecx, edi
call fcn.0040c0c4
mov byte [ebp - 4], 0x9a
mov ecx, dword [ebp - 0x250]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x96
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x95
mov ecx, dword [ebp - 0x24c]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x91
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x90
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x8f
mov ecx, dword [ebp - 0x258]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x8c
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x85
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x84
mov ecx, dword [ebp - 0x254]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x240]
jmp 0x40d822
push ecx
lea eax, [edi + 0x9f4]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov dword [ebp - 4], 0x51
mov ecx, dword [0x59159c]
or dword [ebp - 4], 0xffffffff
call fcn.00409522
mov esi, eax
cmp esi, ebx
je 0x40d82a
mov ecx, esi
call fcn.0040e524
test eax, eax
je 0x40c8a8
mov ecx, esi
call fcn.0040e44a
fstp dword [ebp - 0x230]
fld dword [ebp - 0x230]
push ecx
lea ecx, [edi + 0xc8]
fstp dword [esp]
call fcn.00403cc5
mov ecx, esi
call fcn.0040e52d
test eax, eax
je 0x40d82a
push esi
mov ecx, edi
call fcn.00409cd9
fld1
lea ecx, [edi + 0xc8]
push ecx
fstp dword [esp]
call fcn.00403cc5
mov ecx, dword [0x59159c]
push esi
call fcn.00409929
mov ecx, dword [0x591580]
call fcn.00401ccb
mov eax, dword [0x591580]
add eax, 4
push eax
lea ecx, [ebp - 0x258]
call fcn.00401668
mov dword [ebp - 4], 0x52
mov ecx, dword [0x591720]
push 0xc
lea eax, [ebp - 0x23c]
push eax
call fcn.0040efeb
mov byte [ebp - 4], 0x53
mov eax, dword [ebp - 0x258]
push dword [eax - 0xc]
lea ecx, [ebp - 0x23c]
push eax
call fcn.00401a1d
mov ecx, dword [0x591728]
push dword [ebp - 0x23c]
add ecx, 0x370
call fcn.004227a8
push 1
mov ecx, edi
call fcn.0040a3ea
test al, al
je 0x40caa7
push 0x542ae0
lea ecx, [ebp - 0x248]
call fcn.00401d42
mov byte [ebp - 4], 0x54
push ecx
lea eax, [ebp - 0x248]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x55
mov byte [ebp - 4], 0x54
call fcn.00402f79
pop ecx
mov ecx, dword [0x591720]
push 5
lea eax, [ebp - 0x290]
push eax
call fcn.0040efeb
mov byte [ebp - 4], 0x56
mov ecx, dword [0x591728]
push dword [eax]
add ecx, 0x1a0
call fcn.004227a8
mov byte [ebp - 4], 0x54
mov ecx, dword [ebp - 0x290]
add ecx, 0xfffffff0
call fcn.004010d2
fld1
push ecx
fstp dword [esp]
lea ecx, [edi + 0xc8]
call fcn.00403cc5
push 0x591790
mov esi, 0x59176c
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x58
push 0x59178c
lea eax, [ebp - 0x240]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x59
add esp, 0x14
lea eax, [ebp - 0x240]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x5a
mov byte [ebp - 4], 0x59
call fcn.00412dc7
lea eax, [ebp - 0x240]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x5b
push ecx
lea eax, [ebp - 0x238]
mov ecx, esp
mov dword [ebp - 0x260], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x5c
mov byte [ebp - 4], 0x59
call fcn.00412e89
pop ecx
pop ecx
mov ecx, edi
call fcn.0040c0c4
mov byte [ebp - 4], 0x58
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x54
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x53
mov ecx, dword [ebp - 0x248]
jmp 0x40cd38
push 0x542ad0
lea ecx, [ebp - 0x254]
call fcn.00401d42
mov byte [ebp - 4], 0x60
push ecx
lea eax, [ebp - 0x254]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x61
mov byte [ebp - 4], 0x60
call fcn.00402f79
mov ecx, esp
mov dword [ebp - 0x230], esp
mov esi, 0x5917a8
push esi
call fcn.00401668
mov byte [ebp - 4], 0x62
mov byte [ebp - 4], 0x60
call fcn.004123fd
pop ecx
cmp eax, ebx
je 0x40cb70
mov ecx, dword [0x591720]
push 9
lea eax, [ebp - 0x280]
push eax
call fcn.0040efeb
mov byte [ebp - 4], 0x63
mov eax, dword [eax]
push 4
push 0x53f451
push eax
mov ecx, edi
call fcn.0041e1dc
cmp eax, 6
sete byte [ebp - 0x259]
mov byte [ebp - 4], 0x60
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.004010d2
cmp byte [ebp - 0x259], bl
je 0x40cc9d
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
call fcn.00401668
mov byte [ebp - 4], 0x65
mov byte [ebp - 4], 0x60
call fcn.00412532
pop ecx
push 0x591790
lea eax, [ebp - 0x238]
push 0x59176c
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x69
add esp, 8
lea eax, [ebp - 0x238]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x6a
lea eax, [ebp - 0x210]
push eax
push str.FileName
push str.VERSION
mov byte [ebp - 4], 0x69
call fcn.004123bc
lea eax, [ebp - 0x210]
push eax
call fcn.00512590
add esp, 0x14
test eax, eax
je 0x40ccd7
lea eax, [ebp - 0x210]
push eax
call fcn.00512590
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x591788
call fcn.004016fe
mov ecx, dword [0x591580]
lea eax, [ebp - 0x2a0]
push eax
call fcn.0040a06c
mov byte [ebp - 4], 0x6b
push eax
lea ecx, [edi + 0x9fc]
call fcn.00408848
mov byte [ebp - 4], 0x69
mov ecx, dword [ebp - 0x2a0]
add ecx, 0xfffffff0
call fcn.004010d2
mov eax, dword [0x591788]
push dword [eax - 0xc]
lea ecx, [edi + 0x9fc]
push eax
call fcn.00401a1d
push str.m_gameZip
lea ecx, [ebp - 0x240]
call fcn.00401d42
mov byte [ebp - 4], 0x6d
mov esi, dword [edi + 0x9fc]
push dword [esi - 0xc]
lea ecx, [ebp - 0x240]
push esi
call fcn.00401a1d
push ecx
lea eax, [ebp - 0x240]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x6e
mov byte [ebp - 4], 0x6d
call fcn.00402f79
pop ecx
mov byte [ebp - 4], 0x69
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x40ccf8
mov ecx, edi
call fcn.0040909e
mov byte [ebp - 4], 0x53
mov ecx, dword [ebp - 0x254]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x52
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x258]
jmp 0x40d822
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push str.FileName__empty
call fcn.00401d42
mov byte [ebp - 4], 0x70
mov byte [ebp - 4], 0x69
call fcn.00402f79
pop ecx
fld dword [0x54296c]
push ecx
lea ecx, [edi + 0xc8]
fstp dword [esp]
mov byte [0x591761], bl
call fcn.00403cc5
push 4
mov ecx, edi
call fcn.0040a3cc
mov byte [ebp - 4], 0x60
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x53
mov ecx, dword [ebp - 0x254]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x52
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x40ccc8
push ecx
lea esi, [edi + 0x9f0]
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
call fcn.00401668
mov dword [ebp - 4], 0x17
mov ecx, dword [0x59159c]
or dword [ebp - 4], 0xffffffff
call fcn.00409522
mov ecx, eax
mov dword [ebp - 0x234], ecx
cmp ecx, ebx
je 0x40d82a
call fcn.0040e524
test eax, eax
je 0x40cdc1
mov ecx, dword [ebp - 0x234]
call fcn.0040e44a
fstp dword [ebp - 0x230]
fld dword [ebp - 0x230]
push ecx
lea ecx, [edi + 0xc8]
fstp dword [esp]
call fcn.00403cc5
mov ecx, dword [ebp - 0x234]
call fcn.0040e52d
test eax, eax
je 0x40d82a
push dword [ebp - 0x234]
mov ecx, edi
call fcn.00409cd9
test eax, eax
jne 0x40cf88
mov ecx, dword [ebp - 0x234]
call fcn.0040e624
cmp eax, 1
jne 0x40ce34
push 0x542b54
push str..exe
mov ecx, esi
call fcn.00409615
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
call fcn.00401668
mov dword [ebp - 4], 0x18
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x234]
call fcn.0040eda5
jmp 0x40d82a
mov ecx, dword [ebp - 0x234]
call fcn.0040e624
cmp eax, 2
jne 0x40ce6d
push str..doc
push 0x542b54
mov ecx, esi
call fcn.00409615
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push esi
call fcn.00401668
mov dword [ebp - 4], 0x19
jmp 0x40ce20
mov ecx, dword [ebp - 0x234]
call fcn.0040e624
cmp eax, 3
jne 0x40cf88
push 1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
push str..exe
push str..doc
mov ecx, esi
call fcn.00409615
call fcn.00414e89
push eax
lea ecx, [ebp - 0x238]
call fcn.0040131c
mov dword [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x26c]
push eax
call fcn.0040e767
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [0x591720]
push 0x10
lea eax, [ebp - 0x288]
push eax
call fcn.0040efeb
mov byte [ebp - 4], 0x1d
mov eax, dword [eax]
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x248], eax
call fcn.0040e5ef
push eax
mov eax, dword [ebp - 0x230]
push dword [eax]
lea eax, [ebp - 0x238]
push dword [esi]
push dword [ebp - 0x248]
push eax
call fcn.00401b9f
add esp, 0x14
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x288]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.004010d2
mov ecx, dword [0x591720]
push 0xf
lea eax, [ebp - 0x274]
push eax
call fcn.0040efeb
mov byte [ebp - 4], 0x20
mov eax, dword [eax]
mov esi, dword [ebp - 0x238]
push ebx
push eax
push esi
mov ecx, edi
call fcn.0041e1dc
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x274]
add ecx, 0xfffffff0
call fcn.004010d2
mov ecx, edi
call fcn.0040909e
jmp 0x40c3f8
call fcn.00414e89
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040131c
mov dword [ebp - 4], 0x24
push dword [esi]
lea eax, [ebp - 0x24c]
push str._s_IsDownloadEnd
push eax
call fcn.00401b9f
pop ecx
pop ecx
lea eax, [ebp - 0x24c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x25
mov byte [ebp - 4], 0x24
call fcn.00402f79
fld1
lea ecx, [edi + 0xc8]
fstp dword [esp]
call fcn.00403cc5
push dword [ebp - 0x234]
mov ecx, dword [0x59159c]
call fcn.00409929
push 0x59179c
mov esi, 0x59176c
lea eax, [ebp - 0x240]
push esi
push eax
mov byte [0x58b551], 1
call fcn.00401bb3
mov byte [ebp - 4], 0x26
push 0x591798
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.00401bb3
add esp, 0x18
mov byte [ebp - 4], 0x27
push dword [ebp - 0x23c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d065
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x28
mov byte [ebp - 4], 0x27
call fcn.00412dc7
pop ecx
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x29
push ecx
lea eax, [ebp - 0x240]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x2a
mov byte [ebp - 4], 0x27
call fcn.00412e89
push 0x591794
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x2b
push 0x5917ac
lea eax, [ebp - 0x250]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 0x2c
add esp, 0x1c
lea eax, [ebp - 0x244]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x2d
mov byte [ebp - 4], 0x2c
call fcn.00412dc7
lea eax, [ebp - 0x244]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x2e
push ecx
lea eax, [ebp - 0x250]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x2f
mov byte [ebp - 4], 0x2c
call fcn.00412e89
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d2d8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
push ecx
lea eax, [ebp - 0x244]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x30
push ecx
lea eax, [ebp - 0x250]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x31
mov byte [ebp - 4], 0x2c
call fcn.00412e89
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d2d8
push 0x64
call esi
push ecx
lea eax, [ebp - 0x244]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x32
push ecx
lea eax, [ebp - 0x250]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x33
mov byte [ebp - 4], 0x2c
call fcn.00413037
pop ecx
pop ecx
cmp eax, ebx
jne 0x40d2d8
mov ecx, dword [0x591720]
push ebx
lea eax, [ebp - 0x28c]
push eax
call fcn.0040efeb
mov esi, eax
mov byte [ebp - 4], 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00412a81
mov byte [ebp - 4], 0x35
push 0x542a98
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00403093
mov byte [ebp - 4], 0x36
push esi
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00401bb3
add esp, 0x20
mov byte [ebp - 4], 0x38
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x3a
mov ecx, dword [ebp - 0x284]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x3c
mov ecx, dword [ebp - 0x28c]
add ecx, 0xfffffff0
call fcn.004010d2
push ebx
push ebx
push dword [ebp - 0x238]
mov ecx, edi
call fcn.0041e1dc
mov ecx, edi
call fcn.0040909e
mov byte [ebp - 4], 0x2c
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x2b
mov ecx, dword [ebp - 0x250]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x27
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x26
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24c]
jmp 0x40d822
call fcn.00402067
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00402275
pop ecx
pop ecx
mov byte [ebp - 4], 0x44
cmp dword [eax + 0x14], 0x10
jb 0x40d2f8
mov eax, dword [eax]
push eax
push dword [ebp - 0x244]
call fcn.004127f3
pop ecx
pop ecx
mov byte [ebp - 4], 0x2c
push ebx
push 1
lea ecx, [ebp - 0x22c]
call fcn.00401536
mov ecx, edi
call fcn.0040909e
call fcn.00414e89
push eax
lea ecx, [ebp - 0x234]
call fcn.0040131c
mov byte [ebp - 4], 0x46
mov eax, dword [edi + 0x180]
cmp dword [eax - 0xc], ebx
je 0x40d36d
mov esi, str.GameUrl
push esi
call fcn.00512590
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004016fe
mov eax, dword [edi + 0x180]
push dword [eax - 0xc]
lea ecx, [ebp - 0x234]
push eax
call fcn.00401a1d
push dword [0x58b44c]
lea ecx, [ebp - 0x234]
call fcn.00401c30
inc dword [edi + 0xa14]
call fcn.00414e89
push eax
lea ecx, [ebp - 0x238]
call fcn.0040131c
mov byte [ebp - 4], 0x48
push dword [edi + 0xa14]
lea eax, [ebp - 0x238]
push dword [0x58b450]
push str._s_d
push eax
call fcn.00401b9f
mov esi, dword [ebp - 0x238]
add esp, 0x10
push dword [esi - 0xc]
lea ecx, [ebp - 0x234]
push esi
call fcn.00401a1d
push dword [ebp - 0x234]
lea eax, [ebp - 0x24c]
push dword [ebp - 0x244]
push str.ShellExecute__s__s
push eax
call fcn.00401b9f
add esp, 0xc
lea eax, [ebp - 0x24c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x49
mov byte [ebp - 4], 0x48
call fcn.00402f79
pop ecx
push 1
push ebx
push dword [ebp - 0x234]
push dword [ebp - 0x244]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [edi + 0x180]
cmp dword [eax - 0xc], ebx
je 0x40d43f
push 1
mov ecx, edi
call fcn.004287e6
mov byte [ebp - 4], 0x46
lea ecx, [esi - 0x10]
call fcn.004010d2
mov byte [ebp - 4], 0x2c
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x2b
mov ecx, dword [ebp - 0x250]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x27
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x26
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x40d2c9
push ecx
lea eax, [edi + 0x9e8]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov dword [ebp - 4], ebx
mov ecx, dword [0x59159c]
or dword [ebp - 4], 0xffffffff
call fcn.00409522
mov esi, eax
cmp esi, ebx
je 0x40d82a
mov ecx, esi
call fcn.0040e524
test eax, eax
je 0x40d508
mov ecx, esi
call fcn.0040e44a
fstp dword [ebp - 0x230]
fld dword [ebp - 0x230]
push ecx
lea ecx, [edi + 0xc8]
fstp dword [esp]
call fcn.00403cc5
mov ecx, esi
call fcn.0040e52d
test eax, eax
je 0x40d82a
push esi
mov ecx, edi
call fcn.00409cd9
fld1
lea ecx, [edi + 0xc8]
push ecx
fstp dword [esp]
call fcn.00403cc5
mov ecx, dword [0x59159c]
push esi
call fcn.00409929
push ebx
mov ecx, edi
call fcn.0040a3ea
test al, al
jne 0x40d70c
cmp byte [0x591855], bl
jne 0x40d70c
push 0x59179c
lea eax, [ebp - 0x248]
push 0x59176c
push eax
call fcn.00401bb3
mov dword [ebp - 4], 0xb
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00512ea0
add esp, 0x14
lea eax, [ebp - 0x248]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x114]
push eax
push str.FileName
push str.VERSION
mov byte [ebp - 4], 0xb
call fcn.004123bc
lea eax, [ebp - 0x114]
push eax
call fcn.00512590
add esp, 0x14
test eax, eax
je 0x40d67f
mov ecx, dword [0x591580]
lea eax, [ebp - 0x294]
push eax
call fcn.00409fc1
mov byte [ebp - 4], 0xd
push eax
lea ecx, [edi + 0x9f0]
call fcn.00408848
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x294]
add ecx, 0xfffffff0
call fcn.004010d2
lea eax, [ebp - 0x114]
push eax
lea ecx, [edi + 0x9f0]
call fcn.00401c30
push str.m_launchExe
lea ecx, [ebp - 0x240]
call fcn.00401d42
mov byte [ebp - 4], 0xf
mov ebx, dword [edi + 0x9f0]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x240]
push ebx
call fcn.00401a1d
push ecx
lea eax, [ebp - 0x240]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xf
call fcn.00402f79
pop ecx
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x40d6a0
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
push str.Launch.ini_FileName__empty
call fcn.00401d42
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0xb
call fcn.00402f79
pop ecx
fld dword [0x54296c]
push ecx
lea ecx, [edi + 0xc8]
fstp dword [esp]
call fcn.00403cc5
push 0x542a54
lea ecx, [ebp - 0x238]
call fcn.00401d42
mov byte [ebp - 4], 0x13
push ecx
lea eax, [ebp - 0x238]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x13
call fcn.00402f79
pop ecx
push 2
mov ecx, edi
call fcn.0040a3cc
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x40d818
push 0x542a40
lea ecx, [ebp - 0x248]
call fcn.00401d42
mov dword [ebp - 4], 1
push ecx
lea eax, [ebp - 0x248]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
call fcn.00402f79
mov dword [esp], 0x59179c
mov esi, 0x59176c
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 3
push 0x591798
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.00401bb3
add esp, 0x18
mov byte [ebp - 4], 4
push dword [ebp - 0x23c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40d7ae
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
call fcn.00412dc7
pop ecx
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x230], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 6
push ecx
lea eax, [ebp - 0x238]
mov ecx, esp
mov dword [ebp - 0x260], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 7
mov byte [ebp - 4], 4
call fcn.00412e89
pop ecx
pop ecx
push 3
mov ecx, edi
call fcn.0040a3cc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.005123f8
ret 4