Function at 0x40e060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539f08
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi], vtable.CIns.0
mov dword [ebp - 4], 3
call fcn.00418988
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e0b4
push 0x80004005
call fcn.00408450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov bl, 4
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x170]
test ecx, ecx
jne 0x40e0d6
xor eax, eax
jmp 0x40e0ef
mov eax, ecx
lea edi, [eax + 2]
jmp 0x40e0e0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40e0e0
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00408080
mov edi, dword [ebp - 0x10]
cmp dword [edi - 0xc], 6
jge 0x40e133
mov eax, dword [esi + 0x170]
push eax
call fcn.00416559
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e274
mov ecx, dword [eax]
push eax
jmp 0x40e26d
push str.installInfo
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0040fce0
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00407da0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x10]
mov edx, dword [edi - 0xc]
test edx, edx
jns 0x40e18b
push 0x80070057
call fcn.00408450
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x40e1a8
push edx
lea ecx, [ebp - 0x10]
call fcn.004083b0
mov edi, dword [ebp - 0x10]
push 0x568450
push edi
call fcn.00515459
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40e1fa
mov edx, dword [edi - 0xc]
test edx, edx
jns 0x40e1cd
push 0x80070057
call fcn.00408450
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x40e1ea
push edx
lea ecx, [ebp - 0x10]
call fcn.004083b0
mov edi, dword [ebp - 0x10]
push 0x568458
push edi
call fcn.00515459
add esp, 8
mov ebx, eax
mov ecx, dword [esi + 0x170]
mov edx, str.KongChong
add ecx, 0x500
jmp 0x40e210
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
test ax, ax
jne 0x40e210
push 0
push 0
push ebx
call fcn.005154fa
mov ecx, dword [esi + 0x170]
push ebx
push 1
push 0x900
push ecx
call fcn.005156cd
push ebx
call fcn.005157b4
mov eax, dword [esi + 0x170]
push eax
call fcn.00416559
add edi, 0xfffffff0
add esp, 0x24
mov byte [ebp - 4], 3
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40e274
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x16c]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e29a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x168]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e2c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 0
mov dword [ecx], vtable.CGradientProgressCtrl.0
call fcn.00419072
lea ecx, [esi + 0xac]
mov dword [ebp - 4], 7
call fcn.004277be
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 6
mov dword [ecx], vtable.CBrush.0
call fcn.00408540
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00426d1d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret