Function at 0x40ff50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x597bce
mov eax, dword fs:[0]
push eax
sub esp, 0xa18
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0xa10], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0xa2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa3c]
mov esi, edx
mov edi, ecx
test esi, esi
je 0x410145
mov ebx, dword [ebp + 4]
xor eax, eax
test ebx, ebx
je 0x41046e
push 0x3e
push eax
lea ecx, [esp + 0x1ee]
push ecx
mov word [esp + 0x1f0], ax
call fcn.004fe380
xor eax, eax
add esp, 0xc
push 0x7ff
push eax
lea edx, [esp + 0x22d]
push edx
mov byte [esp + 0x1d0], 0
mov dword [esp + 0x1d1], eax
mov dword [esp + 0x1d5], eax
mov dword [esp + 0x1d9], eax
mov dword [esp + 0x1dd], eax
mov dword [esp + 0x1e1], eax
mov dword [esp + 0x1e5], eax
mov dword [esp + 0x1e9], eax
mov word [esp + 0x1ed], ax
mov byte [esp + 0x1ef], al
mov byte [esp + 0x230], al
call fcn.004fe380
add esp, 0xc
lea eax, [esp + 0x144]
push 3
mov dword [esp + 0x144], eax
push ebx
lea eax, [esp + 0x148]
call fcn.004106a0
lea ecx, [esp + 0x14]
mov dword [esp + 0xa34], 0
push ecx
mov ecx, dword [esp + 0x144]
call fcn.004104a0
mov byte [esp + 0xa34], 2
mov eax, dword [esp + 0x140]
lea edx, [esp + 0x144]
cmp eax, edx
je 0x410089
push eax
call fcn.004f6d01
add esp, 4
lea eax, [esp + 0x40]
push 3
mov dword [esp + 0x40], eax
push edi
lea eax, [esp + 0x44]
call fcn.004106a0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa34], 3
push ecx
mov ecx, dword [esp + 0x40]
call fcn.004104a0
mov byte [esp + 0xa34], 5
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
je 0x4100d0
push eax
call fcn.004f6d01
add esp, 4
mov eax, dword [ebp + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x20
lea ecx, [esp + 0x1ec]
push ecx
push 0
push 0x5d8ea0
push edi
call ebx
test eax, eax
jne 0x41014c
mov byte [esp + 0xa34], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41011a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xa34], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410145
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41046e
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x410168
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00410620
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push 0x20
lea eax, [esp + 0x1cc]
push eax
push 0
push str.Name
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4101a2
lea eax, [esp + 0x18]
call fcn.004b8a70
lea eax, [esp + 0x14]
call fcn.004b8a70
xor eax, eax
jmp 0x41046e
mov edx, dword [ebp + 4]
push edx
push 0x20
lea eax, [esi + 0x480]
push eax
push 0
push str.Description
push edi
call ebx
mov ecx, dword [ebp + 4]
push ecx
push 0x800
lea edx, [esi + 0x4c0]
push edx
push 0
push str.ImageUrl
push edi
call ebx
mov eax, dword [ebp + 4]
push eax
push 0x800
lea ecx, [esi + 0x14c0]
push ecx
push 0
push str.VendorImageUrl
push edi
call ebx
mov edx, dword [ebp + 4]
push edx
push 0x28
lea eax, [esi + 0x34c0]
push eax
push 0
push str.GUID
push edi
call ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x410220
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00410620
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push 0x800
lea eax, [esp + 0x22c]
push eax
push 0
push str.PDown
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 4]
push edx
push 0x104
lea eax, [esi + 0x3b28]
push eax
push 0
push str.InstallPath
push edi
mov dword [esp + 0x4c], eax
call ebx
mov ecx, dword [ebp + 4]
push ecx
push 5
lea eax, [esi + 0x3db0]
push eax
push 0
push str.FileExt
push edi
mov dword [esp + 0x44], eax
call ebx
mov edx, dword [ebp + 4]
push edx
push 0x104
lea eax, [esi + 0x3dba]
push eax
push 0
push str.Param
push edi
call ebx
mov ecx, dword [ebp + 4]
push ecx
push 0x104
lea eax, [esi + 0x3d30]
push eax
push 0
push 0x5d8f44
push edi
mov dword [esp + 0x50], eax
call ebx
mov edx, dword [ebp + 4]
push edx
push 0x104
lea eax, [esi + 0x3920]
push eax
push 0
push str.Pack
push edi
mov dword [esp + 0x48], eax
call ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c8]
call fcn.004104a0
mov byte [esp + 0xa34], 6
mov edx, dword [esp + 0x28]
push 0xfde9
lea ecx, [esp + 0x44]
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ecx
call fcn.00410760
lea eax, [esp + 0x20]
mov byte [esp + 0xa34], 7
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004066b0
mov byte [esp + 0xa34], 9
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x3c]
cmp eax, ecx
je 0x410336
push eax
call fcn.004f6d01
add esp, 4
mov edx, dword [esp + 0x20]
push 0x20
push edx
lea edi, [esi + 0x440]
push edi
call fcn.004f8077
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x228]
call fcn.004104a0
mov byte [esp + 0xa34], 0xa
mov edx, dword [esp + 0x24]
push 0xfde9
lea ecx, [esp + 0x44]
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ecx
call fcn.00410760
lea eax, [esp + 0x1c]
mov byte [esp + 0xa34], 0xb
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004066b0
mov byte [esp + 0xa34], 0xd
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x4103b3
push eax
call fcn.004f6d01
add esp, 4
mov edx, dword [esp + 0x1c]
push 0x800
push edx
add esi, 0x24c0
push esi
call fcn.004f8077
add esp, 0xc
lea eax, [esp + 0x1e4]
push eax
push str._Uid_s_
call fcn.0049d036
push edi
push str._phone_name_s_
call fcn.0049d036
push esi
push str._download_url_s_
call fcn.0049d036
mov ecx, dword [esp + 0x4c]
push ecx
push str._install_path_s_
call fcn.0049d036
mov edx, dword [esp + 0x4c]
push edx
push str._install_file_type_s_
call fcn.0049d036
mov eax, dword [esp + 0x60]
push eax
push str._driver_file_md5_s_
call fcn.0049d036
mov ecx, dword [esp + 0x60]
push ecx
push str._driver_file_package_s_
call fcn.0049d036
add esp, 0x38
lea ecx, [esp + 0x1c]
call fcn.00406760
lea eax, [esp + 0x24]
call fcn.004b8a70
lea ecx, [esp + 0x20]
call fcn.00406760
lea eax, [esp + 0x28]
call fcn.004b8a70
lea eax, [esp + 0x18]
call fcn.004b8a70
lea eax, [esp + 0x14]
call fcn.004b8a70
mov eax, 1
mov ecx, dword [esp + 0xa2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.004f673f
add esp, 0xa24
ret 4