Function at 0x10007552
Capabilities:
Download url
Query environment variable
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0xca0]
sub esp, 0xd20
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp + 0xc9c], eax
mov eax, dword [ebp + 0xcac]
push ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xcb0]
push esi
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xcb4]
mov ebx, 0x103
push ebx
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x995]
push 0
push eax
mov byte [ebp + 0x994], 0
call fcn.10016180
push ebx
lea eax, [ebp + 0xb99]
push 0
push eax
mov byte [ebp + 0xb98], 0
call fcn.10016180
lea edi, [ebp + 0x994]
call fcn.100011d6
mov eax, edi
push eax
push str._sfavicon.ico
lea esi, [ebx + 1]
lea eax, [ebp + 0xb98]
push esi
push eax
call fcn.10016a82
add esp, 0x28
call fcn.10001441
xor edi, edi
push edi
push edi
lea eax, [ebp + 0xb98]
push eax
push str.http:_122.152.181.145_favicon.ico
push edi
call sub.urlmon.dll_URLDownloadToFileA
push ebx
lea eax, [ebp + 0x891]
push edi
push eax
mov byte [ebp + 0x890], 0
call fcn.10016180
mov ebx, 0x3ff
push ebx
lea eax, [ebp + 0x391]
push edi
push eax
mov byte [ebp + 0x390], 0
call fcn.10016180
push ebx
lea eax, [ebp - 0x6f]
push edi
push eax
mov byte [ebp - 0x70], 0
call fcn.10016180
call fcn.100014b5
push eax
lea eax, [ebp + 0x890]
push esi
push eax
call fcn.10018f00
add esp, 0x30
lea ebx, [esi - 4]
push ebx
lea eax, [ebp + 0x790]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.2Game_
lea eax, [ebp + 0x890]
push esi
push eax
call fcn.10018f68
lea eax, [ebp + 0x790]
push eax
push 0x10031304
lea eax, [ebp + 0xa98]
push ebx
push eax
call fcn.10016a82
mov esi, 0x1003131c
lea eax, [ebp + 0xa98]
push esi
push eax
call fcn.10016fa6
add esp, 0x24
mov dword [ebp - 0x7c], eax
cmp eax, edi
je 0x100077dd
push eax
push str._DEFAULT__n
call fcn.10019013
xor ebx, ebx
pop ecx
pop ecx
mov edi, 0x3fffffff
cmp dword [ebp - 0x74], ebx
je 0x100076f2
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, edi
jg 0x100076f2
lea ebx, [eax + eax]
mov eax, ebx
call fcn.100278d0
mov esi, esp
push 3
push ebx
push dword [ebp - 0x74]
call fcn.10012224
mov ebx, eax
cmp dword [ebp - 0x78], 0
je 0x10007706
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, edi
jle 0x1000770a
xor eax, eax
jmp 0x10007723
lea esi, [eax + eax]
mov eax, esi
call fcn.100278d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x78]
mov esi, eax
call fcn.10012224
push ebx
push eax
push str.BASEURL_s_rebate_s_n
mov ebx, 0x400
lea eax, [ebp + 0x390]
push ebx
push eax
call fcn.10016a82
push dword [ebp - 0x7c]
lea eax, [ebp + 0x390]
push eax
call fcn.10019013
push dword [ebp - 0x7c]
push str._InternetShortcut__n
call fcn.10019013
xor esi, esi
add esp, 0x24
cmp dword [ebp - 0x74], esi
je 0x10007770
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, edi
jle 0x10007775
mov dword [ebp - 0x74], esi
jmp 0x10007791
lea esi, [eax + eax]
mov eax, esi
call fcn.100278d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x74]
mov esi, eax
call fcn.10012224
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x78], 0
je 0x100077a5
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, edi
jle 0x100077a9
xor eax, eax
jmp 0x100077c2
lea esi, [eax + eax]
mov eax, esi
call fcn.100278d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x78]
mov esi, eax
call fcn.10012224
push dword [ebp - 0x74]
jmp 0x10007932
lea eax, [esi + esi]
call fcn.100278d0
mov eax, esp
push 3
push esi
push ebx
jmp 0x100079c8
push ebx
lea eax, [ebp + 0xa98]
push edi
push eax
call fcn.10016180
lea eax, [ebp + 0x790]
push eax
push str._sDesktopGoldZone.url
lea eax, [ebp + 0xa98]
push ebx
push eax
call fcn.10016a82
lea eax, [ebp + 0xa98]
push esi
push eax
call fcn.10016fa6
add esp, 0x24
mov dword [ebp - 0x7c], eax
cmp eax, edi
je 0x1000799f
push eax
push str._DEFAULT__n
call fcn.10019013
xor ebx, ebx
pop ecx
pop ecx
mov edi, 0x3fffffff
cmp dword [ebp - 0x74], ebx
je 0x1000785f
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, edi
jg 0x1000785f
lea ebx, [eax + eax]
mov eax, ebx
call fcn.100278d0
mov esi, esp
push 3
push ebx
push dword [ebp - 0x74]
call fcn.10012224
mov ebx, eax
cmp dword [ebp - 0x78], 0
je 0x10007873
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, edi
jle 0x10007877
xor eax, eax
jmp 0x10007890
lea esi, [eax + eax]
mov eax, esi
call fcn.100278d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x78]
mov esi, eax
call fcn.10012224
push ebx
push eax
push str.BASEURL_s_rebate_s_n
mov ebx, 0x400
lea eax, [ebp + 0x390]
push ebx
push eax
call fcn.10016a82
push dword [ebp - 0x7c]
lea eax, [ebp + 0x390]
push eax
call fcn.10019013
push dword [ebp - 0x7c]
push str._InternetShortcut__n
call fcn.10019013
xor esi, esi
add esp, 0x24
cmp dword [ebp - 0x74], esi
je 0x100078dd
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, edi
jle 0x100078e2
mov dword [ebp - 0x74], esi
jmp 0x100078fe
lea esi, [eax + eax]
mov eax, esi
call fcn.100278d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x74]
mov esi, eax
call fcn.10012224
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x78], 0
je 0x10007912
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, edi
jle 0x10007916
xor eax, eax
jmp 0x1000792f
lea esi, [eax + eax]
mov eax, esi
call fcn.100278d0
mov eax, esp
push 3
push esi
push dword [ebp - 0x78]
mov esi, eax
call fcn.10012224
push dword [ebp - 0x74]
push eax
push str.URL_s_rebate_s_n
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.10016a82
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.10019013
push esi
push str.IconFile
call fcn.10019013
lea eax, [ebp + 0xb98]
push esi
push eax
call fcn.10019013
push esi
push 0x10031378
call fcn.10019013
push esi
push str.IconIndex0_n
call fcn.10019013
push esi
call fcn.10017034
add esp, 0x40
mov ebx, 0x1003138c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, edi
jle 0x100077ca
jmp 0x100079b6
mov esi, 0x1002efcc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x100079ba
xor eax, eax
jmp 0x100079cf
lea eax, [ebx + ebx]
call fcn.100278d0
mov eax, esp
push 3
push ebx
push esi
mov esi, eax
call fcn.1001113d
push 2
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [ebp - 0x80]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc9c]
xor ecx, ebp
call fcn.10016165
add ebp, 0xca0
leave
ret 0x10