Function at 0x4046c0
Capabilities:
Check for time delay via gettickcount
Check http status code
Create http request
Create thread
Read data from internet
Receive data
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2958
call fcn.0040e4a0
push edi
mov dword [ebp - 0x1994], 0
mov dword [ebp - 0x1bc8], 0
mov dword [ebp - 0x1bc4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0xb60], 1
mov dword [ebp - 0xb5c], 1
mov dword [ebp - 0x19ac], 4
mov dword [ebp - 0x19a0], 0
push 0x40f360
lea eax, [ebp - 0x1fd0]
push eax
call dword [0x4121f4]
cmp dword [ebp + 0xc], 0
jne 0x404767
push 0x40f3cc
push 0x848
call fcn.00402db0
add esp, 8
push eax
push 0x3fc
mov ecx, dword [0x416618]
push ecx
call fcn.00409170
add esp, 0xc
mov dword [ebp - 0x19b0], 0
mov dword [ebp - 0xb34], 0
push 0
push 0
push 0xf0
push 0x3fa
mov edx, dword [0x416618]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00408b10
add esp, 0x10
cmp eax, 1
jne 0x4048b2
push 0x200
lea eax, [ebp - 0xf68]
push eax
push 0x3eb
mov ecx, dword [0x416618]
push ecx
call fcn.00409220
add esp, 0x10
push 0x200
lea edx, [ebp - 0x620]
push edx
push 0x3ea
mov eax, dword [0x416618]
push eax
call fcn.00409220
add esp, 0x10
push 0x40f360
lea ecx, [ebp - 0xa20]
push ecx
call dword [0x4121f4]
lea edx, [ebp - 0xf68]
push edx
push 0x40f680
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0xa20]
push ecx
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push 0
push 0x40f2f0
lea edx, [ebp - 0xa20]
push edx
push 3
push 0x40f678
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x416610], eax
cmp dword [0x416610], 0
jne 0x4048b0
mov dword [0x418f58], 0xffffffff
call fcn.004098e0
push 0x30
push 0x40f3cc
push 0x845
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x847
call fcn.00402db0
add esp, 8
push eax
mov eax, dword [0x416618]
push eax
call dword [0x412224]
mov ecx, dword [0x416644]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
jmp 0x40492d
push 0
push 0
push 0
push 0
push 0x40f678
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x416610], eax
cmp dword [0x416610], 0
jne 0x40492d
mov dword [0x418f58], 0xffffffff
call fcn.004098e0
push 0x30
push 0x40f3cc
push 0x845
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x847
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
mov dword [0x418f58], 3
push 0x40f674
push 0x41768c
call fcn.0040b990
add esp, 8
test eax, eax
jne 0x404959
mov dword [ebp - 0x210], 0x50
jmp 0x404963
mov dword [ebp - 0x210], 0x1bb
cmp dword [0x418f24], 1
jne 0x4049a5
mov dword [0x418f58], 0xffffffff
push 1
mov ecx, dword [0x41663c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40498e
call fcn.004098e0
mov edx, dword [0x416644]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x405d44
mov dword [0x418f58], 2
movzx eax, word [0x41727c]
test eax, eax
jne 0x4049ee
cmp dword [0x418f54], 2
jne 0x4049d5
push 0x417484
push 0x41727c
call dword [0x4121f4]
jmp 0x4049ee
cmp dword [0x418f54], 3
jne 0x4049ee
push 0x416c64
push 0x41727c
call dword [0x4121f4]
push 0x416a5c
lea ecx, [ebp - 0x2210]
push ecx
call dword [0x4121f4]
push str..xds
lea edx, [ebp - 0x2210]
push edx
call fcn.004071f0
add esp, 8
push 0
push 0
lea eax, [ebp - 0x2210]
push eax
call fcn.0040a1f0
add esp, 0xc
test eax, eax
jne 0x404a37
mov dword [0x418f4c], 0
jmp 0x404a3c
call fcn.0040a390
cmp dword [0x418f4c], 0
je 0x404ad5
push 0x618
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x1994], eax
mov ecx, dword [ebp - 0x1994]
mov word [ecx], 0
mov edx, dword [0x418f4c]
push edx
call fcn.0040bc90
add esp, 4
push eax
lea eax, [ebp - 0xb58]
push eax
mov ecx, dword [0x418f4c]
push ecx
call fcn.0040baf0
add esp, 0xc
push 0x40f670
lea edx, [ebp - 0xb58]
push edx
push str.Range:_bytes
mov eax, dword [ebp - 0x1994]
push eax
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push 0x40f64c
mov ecx, dword [ebp - 0x1994]
push ecx
call fcn.004071f0
add esp, 8
jmp 0x404af3
push 0x208
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x1994], eax
mov edx, dword [ebp - 0x1994]
mov word [edx], 0
push str.Accept_Encoding:_identity_q1.0___q0__r_n
mov eax, dword [ebp - 0x1994]
push eax
call fcn.004071f0
add esp, 8
mov ecx, dword [ebp - 0x1994]
push ecx
call dword [0x4121fc]
mov dword [ebp - 0xb68], eax
push 0
push 0
push 0xf0
push 0x3e9
mov edx, dword [0x416618]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00408b10
add esp, 0x10
cmp eax, 1
jne 0x404d41
mov al, byte [0x40f5f2]
mov byte [ebp - 0x2730], al
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x272f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x231c], 0x104
push 0x208
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x19b0], eax
push 0x208
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0xb34], eax
push 0x104
mov ecx, dword [ebp - 0x19b0]
push ecx
push 0x3ec
mov edx, dword [0x416618]
push edx
call fcn.00409220
add esp, 0x10
push 0x104
mov eax, dword [ebp - 0xb34]
push eax
push 0x3ed
mov ecx, dword [0x416618]
push ecx
call fcn.00409220
add esp, 0x10
push 0x104
mov edx, dword [ebp - 0x19b0]
push edx
call dword [0x4121fc]
add eax, 1
push eax
mov eax, dword [ebp - 0x19b0]
push eax
lea ecx, [ebp - 0x2730]
push ecx
call fcn.0040bce0
add esp, 0x10
push 0x104
mov edx, dword [ebp - 0xb34]
push edx
call dword [0x4121fc]
add eax, 1
push eax
mov eax, dword [ebp - 0xb34]
push eax
lea ecx, [ebp - 0x2318]
push ecx
call fcn.0040bce0
add esp, 0x10
push 0x40f5f0
lea edx, [ebp - 0x2730]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x2318]
push eax
lea ecx, [ebp - 0x2730]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x231c]
push edx
lea eax, [ebp - 0x2318]
push eax
lea ecx, [ebp - 0x2730]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x2730]
push edx
call fcn.0040a900
add esp, 0x10
mov eax, dword [ebp - 0x231c]
mov byte [ebp + eax - 0x2318], 0
mov ecx, dword [ebp - 0x231c]
add ecx, 1
push ecx
lea edx, [ebp - 0x2318]
push edx
lea eax, [ebp - 0x2528]
push eax
call fcn.0040bd40
add esp, 0xc
cmp dword [ebp - 0x1994], 0
jne 0x404cd2
push 0x208
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x1994], eax
mov ecx, dword [ebp - 0x1994]
mov word [ecx], 0
push 0x40f5b8
mov edx, dword [ebp - 0x1994]
push edx
call fcn.004071f0
add esp, 8
lea eax, [ebp - 0x2528]
push eax
mov ecx, dword [ebp - 0x1994]
push ecx
call fcn.004071f0
add esp, 8
push 0x40f64c
mov edx, dword [ebp - 0x1994]
push edx
call fcn.004071f0
add esp, 8
mov eax, dword [ebp - 0x1994]
push eax
call dword [0x4121fc]
mov dword [ebp - 0xb68], eax
mov ecx, dword [ebp - 0x19b0]
push ecx
call fcn.0040dd7e
add esp, 4
mov edx, dword [ebp - 0xb34]
push edx
call fcn.0040dd7e
add esp, 4
push 0x416854
lea eax, [ebp - 0x208]
push eax
call dword [0x4121f4]
push 0x416a5c
lea ecx, [ebp - 0x208]
push ecx
call fcn.004071f0
add esp, 8
push 0
push 0x80400000
mov edx, dword [ebp - 0xb68]
push edx
mov eax, dword [ebp - 0x1994]
push eax
push 0x418b08
mov ecx, dword [0x416610]
push ecx
call fcn.0040a4a0
add esp, 0x18
mov dword [0x41660c], eax
cmp dword [0x41660c], 0
jne 0x404df8
mov dword [0x418f58], 0xffffffff
call fcn.004098e0
push 0x30
push 0x40f3cc
push 0x845
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x847
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
cmp dword [ebp - 0x1994], 0
je 0x404e1a
mov ecx, dword [ebp - 0x1994]
push ecx
call fcn.0040dd7e
add esp, 4
mov dword [ebp - 0x1994], 0
mov dword [0x418f58], 4
mov dword [ebp - 0x19ac], 0x208
push 0
lea edx, [ebp - 0x19ac]
push edx
push 0x4184f0
push 0xb
mov eax, dword [0x41660c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x4184f0
call fcn.0040a080
add esp, 4
test eax, eax
jne 0x404ef0
push 0x30
push 0x40f3cc
push 0x837
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x86f
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x416618]
push ecx
call dword [0x412224]
mov dword [0x418f4c], 0
mov edx, dword [0x416610]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x416610], 0
push 0
call fcn.00406a60
add esp, 4
mov dword [0x416604], 0
lea eax, [ebp - 0x1998]
push eax
push 0
push 0
push 0x4064e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x416624], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov dword [ebp - 0xb64], 0x100
mov dword [ebp - 0x19ac], 4
mov dword [ebp - 0xb38], 0
push 0
lea ecx, [ebp - 0x19ac]
push ecx
lea edx, [ebp - 0x199c]
push edx
push 0x20000013
mov eax, dword [0x41660c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x199c]
mov dword [ebp - 0x2954], ecx
mov edx, dword [ebp - 0x2954]
sub edx, 0xc8
mov dword [ebp - 0x2954], edx
cmp dword [ebp - 0x2954], 0xcf
ja case.0x404f6a.1
mov eax, dword [ebp - 0x2954]
movzx ecx, byte [eax + 0x405d59]
jmp dword [ecx*4 + 0x405d49]
cmp dword [ebp - 0x199c], 0xc8
jne 0x404fc5
cmp dword [0x418f4c], 0
je 0x404fc5
push 0x30
push 0x40f3cc
push 0x837
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x844
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
mov dword [0x418f4c], 0
jmp 0x405393
mov dword [ebp - 0xb64], 0x100
mov dword [ebp - 0xb38], 0
lea eax, [ebp - 0xb38]
push eax
lea ecx, [ebp - 0xb64]
push ecx
lea edx, [ebp - 0x1fd0]
push edx
push 0x21
mov eax, dword [0x41660c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x1fd0]
push ecx
call dword [0x4121fc]
push eax
push 0x416a5c
push 0x416854
push 0x41664c
push 0x41768c
lea edx, [ebp - 0x1fd0]
push edx
call fcn.004082f0
add esp, 0x18
test eax, eax
jne 0x405089
mov dword [0x418f58], 0xffffffff
mov eax, dword [0x416610]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [0x41660c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.004098e0
mov dword [0x416610], 0
mov dword [0x41660c], 0
mov edx, dword [0x416644]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0x416a5c
push 0x4176b4
call dword [0x4121f4]
push str..xds
push 0x4176b4
call fcn.004071f0
add esp, 8
push 0x416a5c
push 0x3ef
mov eax, dword [0x416618]
push eax
call fcn.00409170
add esp, 0xc
push 0x41664c
push 0x416e6c
call dword [0x4121f4]
push 0x416854
push 0x417074
call dword [0x4121f4]
mov ecx, dword [0x416610]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x416610], 0
push 0
call fcn.00406680
add esp, 4
push 0x416a5c
call fcn.00407350
add esp, 4
test eax, eax
je 0x4051bc
mov dword [0x418f58], 0xffffffff
mov edx, dword [0x416610]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x41660c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.004098e0
mov dword [0x416610], 0
mov dword [0x41660c], 0
push 0x34
push 0x40f3cc
push 0x837
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x838
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x416618]
push ecx
call dword [0x412224]
cmp eax, 7
jne 0x4051bc
mov edx, dword [0x416620]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x416620], 0
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
mov ecx, dword [0x416624]
mov dword [ebp - 0x214], ecx
lea edx, [ebp - 0x1998]
push edx
push 0
push 0
push 0x4064e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x416624], eax
cmp dword [0x416624], 0
jne 0x40527b
mov dword [0x418f58], 0xffffffff
mov eax, dword [0x416610]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [0x41660c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.004098e0
mov dword [0x416610], 0
mov dword [0x41660c], 0
push 0
push 0x40f3cc
push 0x834
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x85f
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 0x214], 0
jmp 0x405393
mov dword [0x418f58], 0xffffffff
call fcn.004098e0
push 0x30
push 0x40f3cc
push 0x841
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x847
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0x40f360
lea ecx, [ebp - 0x1788]
push ecx
call dword [0x4121f4]
mov dword [0x418f58], 0xffffffff
call fcn.004098e0
lea edx, [ebp - 0x1fd0]
push edx
push 0x40f5b4
push 0x40f3cc
push 0x841
call fcn.00402db0
add esp, 8
push eax
lea eax, [ebp - 0x1788]
push eax
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push 0x30
lea ecx, [ebp - 0x1788]
push ecx
push 0x40f3cc
push 0x843
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
mov dword [0x418f58], 5
mov dword [ebp - 0xb64], 0x14
mov dword [ebp - 0xb38], 0
mov word [ebp - 0x1ff8], 0
lea ecx, [ebp - 0xb38]
push ecx
lea edx, [ebp - 0xb64]
push edx
lea eax, [ebp - 0x1ff8]
push eax
push 5
mov ecx, dword [0x41660c]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x40f5b0
lea edx, [ebp - 0x1ff8]
push edx
call fcn.0040b990
add esp, 8
test eax, eax
jne 0x405481
mov dword [0x418f58], 0xffffffff
mov eax, dword [0x416610]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [0x41660c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.004098e0
mov dword [0x416610], 0
mov dword [0x41660c], 0
push 0x30
push 0x40f3cc
push 0x841
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x842
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0x40f2f0
lea ecx, [ebp - 0x1ff8]
push ecx
call fcn.0040b990
add esp, 8
test eax, eax
jne 0x4054a5
mov dword [0x418f48], 0
jmp 0x4054de
cmp dword [0x418f4c], 0
je 0x4054ca
lea edx, [ebp - 0x1ff8]
push edx
call fcn.0040ba10
add esp, 4
add eax, dword [0x418f4c]
mov dword [0x418f48], eax
jmp 0x4054de
lea eax, [ebp - 0x1ff8]
push eax
call fcn.0040ba10
add esp, 4
mov dword [0x418f48], eax
mov ecx, dword [0x418f48]
sub ecx, dword [0x418f4c]
push ecx
push 0x41727c
call fcn.00409ad0
add esp, 8
test eax, eax
jne 0x4055de
mov dword [0x418f58], 0xffffffff
mov edx, dword [0x416610]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x41660c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.004098e0
mov dword [0x416610], 0
mov dword [0x41660c], 0
call fcn.00407f00
mov word [0x41727c], 0
mov dword [0x418f4c], 0
mov ecx, dword [0x416618]
push ecx
call fcn.00409d50
add esp, 4
cmp dword [0x418f54], 1
jne 0x4055a3
push 0x30
push 0x40f3cc
push 0x834
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x86a
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
jmp 0x4055c7
mov dword [0x418f54], 1
push 0
push 0x3f4
push 0x111
mov eax, dword [0x416618]
push eax
call fcn.00408b10
add esp, 0x10
mov ecx, dword [0x416644]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
mov dword [0x418f58], 6
mov dword [ebp - 0x1bcc], 1
push 0x40f3cc
push 0x840
call fcn.00402db0
add esp, 8
push eax
push 0x3fc
mov edx, dword [0x416618]
push edx
call fcn.00409170
add esp, 0xc
mov dword [0x418f58], 7
cmp dword [0x418f4c], 0
jne 0x4057e2
movzx eax, word [0x41727c]
test eax, eax
je 0x40567f
push 0x40f360
lea ecx, [ebp - 0x1990]
push ecx
call dword [0x4121f4]
push 0x416a5c
push 0x418f18
push 0x41727c
lea edx, [ebp - 0x1990]
push edx
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
push eax
call fcn.004071f0
add esp, 8
jmp 0x4056dd
cmp dword [0x418f54], 2
jne 0x40569c
push 0x417484
lea eax, [ebp - 0x1990]
push eax
call dword [0x4121f4]
jmp 0x4056b7
mov ecx, 3
test ecx, ecx
je 0x4056b7
push 0x416c64
lea edx, [ebp - 0x1990]
push edx
call dword [0x4121f4]
push 0x418f18
lea eax, [ebp - 0x1990]
push eax
call fcn.004071f0
add esp, 8
push 0x416a5c
lea ecx, [ebp - 0x1990]
push ecx
call dword [0x4121f4]
push str..xds
lea edx, [ebp - 0x1990]
push edx
call fcn.004071f0
add esp, 8
call fcn.0040a390
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1990]
push eax
call fcn.00409450
add esp, 0x1c
mov dword [ebp - 0xb2c], eax
cmp dword [ebp - 0xb2c], 0xffffffff
je 0x405742
mov ecx, dword [ebp - 0xb2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xb2c], 0
jmp 0x4057e2
mov dword [0x418f58], 0xffffffff
mov edx, dword [0x416610]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x41660c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.004098e0
mov dword [0x416610], 0
mov dword [0x41660c], 0
call fcn.00407f00
mov word [0x41727c], 0
mov dword [0x418f4c], 0
push 0x30
push 0x40f3cc
push 0x834
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x86c
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x416618]
push ecx
call dword [0x412224]
mov edx, dword [0x416644]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0x416a5c
lea eax, [ebp - 0x2940]
push eax
call dword [0x4121f4]
push str..xds
lea ecx, [ebp - 0x2940]
push ecx
call dword [0x4121ec]
push 1
push 1
lea edx, [ebp - 0x2940]
push edx
call fcn.0040a1f0
add esp, 0xc
mov eax, dword [0x418f74]
shl eax, 0xf
push eax
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x19a8], eax
mov ecx, dword [0x418f74]
shl ecx, 0xf
push ecx
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x20c], eax
push 0x2000
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x1ffc], eax
mov dword [ebp - 0x218], 1
push str.xDM_Event
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x41663c], eax
mov edx, dword [0x418f4c]
mov dword [ebp - 0x19a0], edx
mov eax, dword [ebp - 0x19a0]
cmp eax, dword [0x418f48]
jb 0x4058a2
cmp dword [0x418f48], 0
jne 0x405ce1
cmp dword [ebp - 0x218], 1
jne 0x4058b9
mov ecx, dword [ebp - 0x19a8]
mov dword [ebp - 0x2948], ecx
jmp 0x4058c5
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x2948], edx
cmp dword [0x418f48], 0
je 0x40590d
mov eax, dword [0x418f74]
shl eax, 0xf
add eax, dword [ebp - 0x19a0]
cmp eax, dword [0x418f48]
jb 0x40590d
push 0x3f3
mov ecx, dword [0x416618]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x2950], eax
push 0
mov edx, dword [ebp - 0x2950]
push edx
call fcn.00408af0
add esp, 8
mov eax, dword [ebp - 0x19a0]
mov dword [0x418f50], eax
mov dword [ebp - 0xb30], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x294c], eax
mov ecx, dword [ebp - 0x294c]
mov dword [ebp - 0x2944], ecx
mov edx, dword [0x418f74]
shl edx, 0xf
cmp dword [ebp - 0xb30], edx
jge 0x405b80
mov eax, dword [0x418f50]
cmp eax, dword [0x418f48]
jb 0x405969
cmp dword [0x418f48], 0
jne 0x405b80
mov ecx, dword [ebp - 0x294c]
sub ecx, 0x1388
cmp ecx, dword [ebp - 0x2944]
jae 0x405b80
mov edx, dword [0x418f50]
mov dword [0x418f58], edx
mov eax, dword [0x418f74]
shl eax, 0xf
sub eax, dword [ebp - 0xb30]
cmp eax, 0x2000
jle 0x4059ae
mov dword [ebp - 0x2958], 0x2000
jmp 0x4059c3
mov ecx, dword [0x418f74]
shl ecx, 0xf
sub ecx, dword [ebp - 0xb30]
mov dword [ebp - 0x2958], ecx
lea edx, [ebp - 0x1bcc]
push edx
mov eax, dword [ebp - 0x2958]
push eax
mov ecx, dword [ebp - 0x1ffc]
push ecx
mov edx, dword [0x41660c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0xb5c], eax
cmp dword [ebp - 0xb5c], 0
je 0x405a07
cmp dword [ebp - 0x1bcc], 0
jne 0x405a07
mov eax, dword [0x418f50]
mov dword [0x418f48], eax
cmp dword [ebp - 0x1bcc], 0
je 0x405a19
cmp dword [ebp - 0xb5c], 0
jne 0x405a31
mov ecx, dword [0x418f48]
cmp ecx, dword [0x418f50]
je 0x405a31
push 0
call fcn.00406680
add esp, 4
cmp dword [0x418f24], 1
jne 0x405a9f
cmp dword [0x418f48], 0
je 0x405a51
mov edx, dword [0x418f4c]
cmp edx, dword [0x418f48]
jae 0x405a9f
mov eax, dword [0x416610]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x416610], 0
mov ecx, dword [0x41660c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x416610], 0
mov dword [0x418f24], 0
mov edx, dword [0x416644]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x405d44
cmp dword [ebp - 0x1bcc], 0
jne 0x405b05
cmp dword [ebp - 0xb5c], 0
jne 0x405b05
mov eax, dword [0x41660c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x41660c], 0
mov ecx, dword [0x416610]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x416610], 0
mov edx, dword [0x416644]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp + 0xc], 0
je 0x405afb
mov eax, 4
jmp 0x405d44
mov eax, 2
jmp 0x405d44
mov eax, dword [0x418f50]
add eax, dword [ebp - 0x1bcc]
mov dword [0x418f50], eax
mov ecx, dword [0x418f50]
push ecx
call fcn.0040bc90
add esp, 4
push eax
lea edx, [ebp - 0xb28]
push edx
mov eax, dword [0x418f50]
push eax
call fcn.0040bc10
add esp, 0xc
mov ecx, dword [ebp - 0x1bcc]
push ecx
mov edx, dword [ebp - 0x1ffc]
push edx
mov eax, dword [ebp - 0x2948]
add eax, dword [ebp - 0xb30]
push eax
call fcn.0040e4e0
add esp, 0xc
mov ecx, dword [ebp - 0xb30]
add ecx, dword [ebp - 0x1bcc]
mov dword [ebp - 0xb30], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x294c], eax
jmp 0x40593a
push 1
mov edx, dword [0x416640]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405bae
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x418f24], 1
jmp 0x405c6f
push 1
push 0
mov ecx, dword [ebp - 0xb30]
push ecx
mov edx, dword [ebp - 0x2948]
push edx
call fcn.0040ad80
add esp, 0x10
cmp dword [ebp - 0x218], 1
jne 0x405bdd
mov dword [ebp - 0x218], 2
jmp 0x405be7
mov dword [ebp - 0x218], 1
call fcn.0040abf0
mov eax, dword [ebp - 0x294c]
sub eax, 0x1388
cmp eax, dword [ebp - 0x2944]
jae 0x405c0b
push 0
call fcn.0040ab30
add esp, 4
jmp 0x405c15
push 1
call fcn.0040ab30
add esp, 4
cmp dword [ebp - 0x218], 1
jne 0x405c3f
mov ecx, dword [0x418f74]
shl ecx, 0xf
push ecx
mov edx, dword [ebp - 0x19a8]
push edx
call fcn.0040dd92
add esp, 8
mov dword [ebp - 0x19a8], eax
jmp 0x405c5d
mov eax, dword [0x418f74]
shl eax, 0xf
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.0040dd92
add esp, 8
mov dword [ebp - 0x20c], eax
mov edx, dword [ebp - 0x19a0]
add edx, dword [ebp - 0xb30]
mov dword [ebp - 0x19a0], edx
cmp dword [0x418f24], 1
jne 0x405cdc
push 0x1388
mov eax, dword [0x41663c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405c8f
jmp 0x405c78
mov dword [0x418f58], 0xffffffff
mov ecx, dword [0x418f4c]
push ecx
call fcn.00406a60
add esp, 4
mov edx, dword [0x416610]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x416610], 0
mov dword [0x418f24], 0
mov eax, dword [0x416644]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x405d44
jmp 0x405887
mov dword [0x418f38], 0
push 0
mov ecx, dword [0x41662c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x1388
mov edx, dword [0x41663c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405d12
jmp 0x405cfa
mov eax, dword [ebp - 0x19a8]
push eax
call fcn.0040dd7e
add esp, 4
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.0040dd7e
add esp, 4
mov edx, dword [ebp - 0x1ffc]
push edx
call fcn.0040dd7e
add esp, 4
call fcn.00405e30
pop edi
mov esp, ebp
pop ebp
ret