Function at 0x415620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x501fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x54eb90]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x54eb90]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [esp + 0x20], ebx
je 0x4158ec
cmp byte [ebx + 0x41], 0
je 0x4158ec
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4158df
push ecx
mov ecx, esp
call sym.QiyiInstaller.exe_protected:_void___thiscall_Singleton_class_CUISystem_::constructor_void_
lea ecx, [esp + 0x28]
call fcn.00408490
push 0
push 0
lea ecx, [esp + 0x2c]
call fcn.00402b60
push 0
push 8
lea ecx, [esp + 0x2c]
call fcn.00402830
test al, al
je 0x4156d2
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 0
call fcn.00402af0
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
push 8
lea ecx, [esp + 0x28]
call fcn.00402b20
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x24]
call fcn.00402af0
mov edi, eax
test edi, edi
je 0x415707
lea ecx, [esp + 0x24]
call fcn.00402af0
cmp eax, edi
ja 0x415707
lea ecx, [esp + 0x24]
call fcn.00402af0
add eax, dword [esp + 0x38]
cmp edi, eax
jbe 0x41570c
call fcn.004bdd0a
lea eax, [esp + 0x24]
cmp eax, 0xfffffffc
je 0x415729
mov ecx, eax
call fcn.00402af0
add eax, dword [esp + 0x38]
cmp edi, eax
jb 0x415729
call fcn.004bdd0a
lea ecx, [esp + 0x24]
call fcn.00402af0
mov esi, eax
test esi, esi
je 0x415756
lea ecx, [esp + 0x24]
call fcn.00402af0
cmp eax, esi
ja 0x415756
lea ecx, [esp + 0x24]
call fcn.00402af0
add eax, dword [esp + 0x38]
cmp esi, eax
jbe 0x41575b
call fcn.004bdd0a
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x415776
call fcn.00402af0
add eax, dword [esp + 0x38]
cmp esi, eax
jb 0x415776
call fcn.004bdd0a
lea ecx, [esp + 0x24]
call fcn.00435c90
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
add eax, edi
lea edi, [esp + 0x1c]
push edi
push eax
push esi
lea eax, [ebx + 0x44]
push eax
mov eax, dword [edx + 0x18]
call eax
sub eax, 0
je 0x4157b2
sub eax, 1
je 0x4157b6
sub eax, 2
lea ecx, [esp + 0x24]
jne 0x4158da
jmp 0x4158e7
mov byte [ebx + 0x41], 0
lea ecx, [esp + 0x24]
call fcn.00402af0
mov edi, eax
test edi, edi
je 0x4157e3
lea ecx, [esp + 0x24]
call fcn.00402af0
cmp eax, edi
ja 0x4157e3
lea ecx, [esp + 0x24]
call fcn.00402af0
add eax, dword [esp + 0x38]
cmp edi, eax
jbe 0x4157e8
call fcn.004bdd0a
lea ecx, [esp + 0x24]
cmp ecx, 0xfffffffc
je 0x415803
call fcn.00402af0
add eax, dword [esp + 0x38]
cmp edi, eax
jb 0x415803
call fcn.004bdd0a
mov esi, dword [esp + 0x1c]
sub esi, edi
je 0x41586e
lea ecx, [esp + 0x24]
call fcn.00402af0
mov edi, eax
test edi, edi
je 0x415838
lea ecx, [esp + 0x24]
call fcn.00402af0
cmp eax, edi
ja 0x415838
lea ecx, [esp + 0x24]
call fcn.00402af0
add eax, dword [esp + 0x38]
cmp edi, eax
jbe 0x41583d
call fcn.004bdd0a
lea edx, [esp + 0x24]
cmp edx, 0xfffffffc
je 0x41585a
mov ecx, edx
call fcn.00402af0
add eax, dword [esp + 0x38]
cmp edi, eax
jb 0x41585a
call fcn.004bdd0a
mov eax, dword [ebx + 0x4c]
push eax
push esi
push 1
push edi
call fcn.004c179d
add esp, 0x10
cmp esi, eax
jne 0x4158d6
cmp byte [ebx + 0x41], 0
je 0x4158e3
test esi, esi
jne 0x4156da
or ecx, 0xffffffff
sub ecx, dword [esp + 0x38]
cmp ecx, 8
ja 0x41588d
call fcn.004dd42a
mov edi, dword [esp + 0x38]
push 0
add edi, 8
push edi
lea ecx, [esp + 0x2c]
call fcn.00402830
test al, al
je 0x4156da
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
xor esi, esi
call fcn.00402af0
add eax, ebx
mov dword [eax], esi
push edi
lea ecx, [esp + 0x28]
mov dword [eax + 4], esi
call fcn.00402b20
mov ebx, dword [esp + 0x20]
jmp 0x4156da
lea ecx, [esp + 0x24]
call fcn.00402be0
xor al, al
jmp 0x4158ee
lea ecx, [esp + 0x24]
call fcn.00402be0
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004bd72f
mov esp, ebp
pop ebp
ret