Function at 0x406820
Capabilities:
Delete file
Initialize winhttp library
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x465271
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.0045d660
mov eax, dword [0x47a060]
xor eax, esp
mov dword [esp + 0x1018], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a060]
xor eax, esp
push eax
lea eax, [esp + 0x1030]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1040]
xor ebp, ebp
push 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call fcn.0044f07d
add esp, 4
cmp eax, ebp
je 0x4068a1
mov edi, eax
mov dword [eax], vtable.CHTTPClientWTPCtrl.0
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebp
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], ebp
mov dword [eax + 4], ebp
mov dword [esp + 0x14], edi
jmp 0x4068a7
mov dword [esp + 0x14], ebp
mov edi, ebp
push 0x1000
call fcn.0044f136
add esp, 4
push ebp
push ebp
push ebp
push ebp
push 0x46cabc
mov dword [edi + 0x14], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp eax, ebp
mov dword [edi + 8], eax
je 0x4068d4
mov dword [edi + 4], 1
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x44], esp
push ebp
mov ebx, 7
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0x469acc
mov word [esi + 4], bp
call fcn.00401070
sub esp, 0x1c
mov dword [esp + 0x1070], ebp
mov esi, esp
mov dword [esp + 0x5c], esp
push ebp
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push 0x469acc
mov word [esi + 4], bp
call fcn.00401070
push 0x50
sub esp, 0x1c
mov byte [esp + 0x1090], 1
mov esi, esp
mov dword [esp + 0x78], esp
push 0x15
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push str.download.kuluking.com
mov word [esi + 4], bp
call fcn.00401070
mov ecx, edi
mov dword [esp + 0x1090], 0xffffffff
call fcn.0040ea80
cmp eax, ebp
je 0x406ba5
mov edi, dword [esp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
add edi, 0x3c
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x14], ebp
push ebp
mov eax, edi
mov word [ecx + 4], bp
call fcn.00401110
sub esp, 0x1c
mov dword [esp + 0x1070], 2
mov esi, esp
mov dword [esp + 0x5c], esp
push 0x28
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebp
push str.software_ClientInstall_InstallScript.XML
mov word [esi + 4], bp
call fcn.00401070
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x1074], 0xffffffff
call fcn.0040ed80
cmp eax, ebp
je 0x406ba1
push 0xffe
lea edx, [esp + 0x32]
push ebp
push edx
mov word [esp + 0x38], bp
call fcn.00452a60
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x4069ed
mov eax, dword [edi + 4]
jmp 0x4069f0
lea eax, [edi + 4]
push eax
push 0x800
lea eax, [esp + 0x34]
push eax
push 0x469acc
push str.Version
push str.InstallConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406a17
mov ebx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea esi, [ebx + 0x74]
call fcn.00401070
push 0x1000
lea edx, [esp + 0x30]
push ebp
push edx
call fcn.00452a60
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x406a56
mov eax, dword [edi + 4]
jmp 0x406a59
lea eax, [edi + 4]
push eax
push 0x800
lea eax, [esp + 0x34]
push eax
push 0x469acc
push str.Package
push str.InstallConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406a80
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea esi, [ebx + 0x90]
call fcn.00401070
push 0x1000
lea edx, [esp + 0x30]
push ebp
push edx
call fcn.00452a60
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x406abe
mov eax, dword [edi + 4]
jmp 0x406ac1
lea eax, [edi + 4]
push eax
push 0x800
lea eax, [esp + 0x34]
push eax
push 0x469acc
push str.PackageMD5
push str.InstallConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
jmp 0x406af0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x406af0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea esi, [ebx + 0xac]
call fcn.00401070
push 0x1000
lea edx, [esp + 0x30]
push ebp
push edx
call fcn.00452a60
mov esi, 8
add esp, 0xc
cmp dword [edi + 0x18], esi
jb 0x406b32
mov eax, dword [edi + 4]
jmp 0x406b35
lea eax, [edi + 4]
push eax
push 0x800
lea eax, [esp + 0x34]
push eax
push 0x469acc
push str.PackageSize
push str.InstallConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub esp, 0x1c
lea edx, [esp + 0x48]
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.00401da0
call fcn.0040d5d0
push 0x1000
lea ecx, [esp + 0x4c]
push ebp
push ecx
mov dword [ebx + 0xc8], eax
call fcn.00452a60
add esp, 0x28
cmp dword [edi + 0x18], esi
jb 0x406b8f
mov edi, dword [edi + 4]
jmp 0x406b92
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
cmp eax, ebp
mov dword [edi + 4], ebp
je 0x406bb9
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [edi + 8], ebp
mov eax, dword [edi + 0x14]
cmp eax, ebp
je 0x406bcc
push eax
call fcn.0044f1f9
add esp, 4
mov dword [edi + 0x14], ebp
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1030]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.0044eeec
add esp, 0x1028
ret 4