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.0040eae0
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 0x410360
lea eax, [ebp - 0x1fd0]
push eax
call dword [0x414628]
cmp dword [ebp + 0xc], 0
jne 0x404767
push 0x4103cc
push 0x848
call fcn.00402db0
add esp, 8
push eax
push 0x3fc
mov ecx, dword [0x418a58]
push ecx
call fcn.004091a0
add esp, 0xc
mov dword [ebp - 0x19b0], 0
mov dword [ebp - 0xb34], 0
push 0
push 0
push 0xf0
push 0x3fa
mov edx, dword [0x418a58]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00408b40
add esp, 0x10
cmp eax, 1
jne 0x4048b2
push 0x200
lea eax, [ebp - 0xf68]
push eax
push 0x3eb
mov ecx, dword [0x418a58]
push ecx
call fcn.00409250
add esp, 0x10
push 0x200
lea edx, [ebp - 0x620]
push edx
push 0x3ea
mov eax, dword [0x418a58]
push eax
call fcn.00409250
add esp, 0x10
push 0x410360
lea ecx, [ebp - 0xa20]
push ecx
call dword [0x414628]
lea edx, [ebp - 0xf68]
push edx
push 0x410680
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 0x4102f0
lea edx, [ebp - 0xa20]
push edx
push 3
push 0x410678
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x418a50], eax
cmp dword [0x418a50], 0
jne 0x4048b0
mov dword [0x41b398], 0xffffffff
call fcn.00409910
push 0x30
push 0x4103cc
push 0x845
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x847
call fcn.00402db0
add esp, 8
push eax
mov eax, dword [0x418a58]
push eax
call dword [0x414658]
mov ecx, dword [0x418a84]
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 0x410678
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x418a50], eax
cmp dword [0x418a50], 0
jne 0x40492d
mov dword [0x41b398], 0xffffffff
call fcn.00409910
push 0x30
push 0x4103cc
push 0x845
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x847
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
mov eax, dword [0x418a84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
mov dword [0x41b398], 3
push 0x410674
push 0x419acc
call fcn.0040b8d0
add esp, 8
test eax, eax
jne 0x404959
mov dword [ebp - 0x210], 0x50
jmp 0x404963
mov dword [ebp - 0x210], 0x1bb
cmp dword [0x41b364], 1
jne 0x4049a5
mov dword [0x41b398], 0xffffffff
push 1
mov ecx, dword [0x418a7c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40498e
call fcn.00409910
mov edx, dword [0x418a84]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x405d44
mov dword [0x41b398], 2
movzx eax, word [0x4196bc]
test eax, eax
jne 0x4049ee
cmp dword [0x41b394], 2
jne 0x4049d5
push 0x4198c4
push 0x4196bc
call dword [0x414628]
jmp 0x4049ee
cmp dword [0x41b394], 3
jne 0x4049ee
push 0x4190a4
push 0x4196bc
call dword [0x414628]
push 0x418e9c
lea ecx, [ebp - 0x2210]
push ecx
call dword [0x414628]
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.0040a220
add esp, 0xc
test eax, eax
jne 0x404a37
mov dword [0x41b38c], 0
jmp 0x404a3c
call fcn.0040a3c0
cmp dword [0x41b38c], 0
je 0x404ad5
push 0x618
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0x1994], eax
mov ecx, dword [ebp - 0x1994]
mov word [ecx], 0
mov edx, dword [0x41b38c]
push edx
call fcn.0040bbd0
add esp, 4
push eax
lea eax, [ebp - 0xb58]
push eax
mov ecx, dword [0x41b38c]
push ecx
call fcn.0040ba30
add esp, 0xc
push 0x410670
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 0x41064c
mov ecx, dword [ebp - 0x1994]
push ecx
call fcn.004071f0
add esp, 8
jmp 0x404af3
push 0x208
call fcn.0040df6d
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 [0x414630]
mov dword [ebp - 0xb68], eax
push 0
push 0
push 0xf0
push 0x3e9
mov edx, dword [0x418a58]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00408b40
add esp, 0x10
cmp eax, 1
jne 0x404d41
mov al, byte [0x4105f2]
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.0040df6d
add esp, 4
mov dword [ebp - 0x19b0], eax
push 0x208
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0xb34], eax
push 0x104
mov ecx, dword [ebp - 0x19b0]
push ecx
push 0x3ec
mov edx, dword [0x418a58]
push edx
call fcn.00409250
add esp, 0x10
push 0x104
mov eax, dword [ebp - 0xb34]
push eax
push 0x3ed
mov ecx, dword [0x418a58]
push ecx
call fcn.00409250
add esp, 0x10
push 0x104
mov edx, dword [ebp - 0x19b0]
push edx
call dword [0x414630]
add eax, 1
push eax
mov eax, dword [ebp - 0x19b0]
push eax
lea ecx, [ebp - 0x2730]
push ecx
call fcn.0040bc20
add esp, 0x10
push 0x104
mov edx, dword [ebp - 0xb34]
push edx
call dword [0x414630]
add eax, 1
push eax
mov eax, dword [ebp - 0xb34]
push eax
lea ecx, [ebp - 0x2318]
push ecx
call fcn.0040bc20
add esp, 0x10
push 0x4105f0
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.0040a930
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.0040bc80
add esp, 0xc
cmp dword [ebp - 0x1994], 0
jne 0x404cd2
push 0x208
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0x1994], eax
mov ecx, dword [ebp - 0x1994]
mov word [ecx], 0
push 0x4105b8
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 0x41064c
mov edx, dword [ebp - 0x1994]
push edx
call fcn.004071f0
add esp, 8
mov eax, dword [ebp - 0x1994]
push eax
call dword [0x414630]
mov dword [ebp - 0xb68], eax
mov ecx, dword [ebp - 0x19b0]
push ecx
call fcn.0040df81
add esp, 4
mov edx, dword [ebp - 0xb34]
push edx
call fcn.0040df81
add esp, 4
push 0x418c94
lea eax, [ebp - 0x208]
push eax
call dword [0x414628]
push 0x418e9c
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 0x41af48
mov ecx, dword [0x418a50]
push ecx
call fcn.0040a4d0
add esp, 0x18
mov dword [0x418a4c], eax
cmp dword [0x418a4c], 0
jne 0x404df8
mov dword [0x41b398], 0xffffffff
call fcn.00409910
push 0x30
push 0x4103cc
push 0x845
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x847
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
mov eax, dword [0x418a84]
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.0040df81
add esp, 4
mov dword [ebp - 0x1994], 0
mov dword [0x41b398], 4
mov dword [ebp - 0x19ac], 0x208
push 0
lea edx, [ebp - 0x19ac]
push edx
push 0x41a930
push 0xb
mov eax, dword [0x418a4c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x41a930
call fcn.0040a0b0
add esp, 4
test eax, eax
jne 0x404ef0
push 0x30
push 0x4103cc
push 0x837
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x86f
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x418a58]
push ecx
call dword [0x414658]
mov dword [0x41b38c], 0
mov edx, dword [0x418a50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
push 0
call fcn.00406a60
add esp, 4
mov dword [0x418a44], 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 [0x418a64], 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 [0x418a4c]
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 [0x41b38c], 0
je 0x404fc5
push 0x30
push 0x4103cc
push 0x837
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x844
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
mov dword [0x41b38c], 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 [0x418a4c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x1fd0]
push ecx
call dword [0x414630]
push eax
push 0x418e9c
push 0x418c94
push 0x418a8c
push 0x419acc
lea edx, [ebp - 0x1fd0]
push edx
call fcn.00408320
add esp, 0x18
test eax, eax
jne 0x405089
mov dword [0x41b398], 0xffffffff
mov eax, dword [0x418a50]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [0x418a4c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00409910
mov dword [0x418a50], 0
mov dword [0x418a4c], 0
mov edx, dword [0x418a84]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0x418e9c
push 0x419af4
call dword [0x414628]
push str..xds
push 0x419af4
call fcn.004071f0
add esp, 8
push 0x418e9c
push 0x3ef
mov eax, dword [0x418a58]
push eax
call fcn.004091a0
add esp, 0xc
push 0x418a8c
push 0x4192ac
call dword [0x414628]
push 0x418c94
push 0x4194b4
call dword [0x414628]
mov ecx, dword [0x418a50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
push 0
call fcn.00406680
add esp, 4
push 0x418e9c
call fcn.00407350
add esp, 4
test eax, eax
je 0x4051bc
mov dword [0x41b398], 0xffffffff
mov edx, dword [0x418a50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x418a4c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00409910
mov dword [0x418a50], 0
mov dword [0x418a4c], 0
push 0x34
push 0x4103cc
push 0x837
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x838
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x418a58]
push ecx
call dword [0x414658]
cmp eax, 7
jne 0x4051bc
mov edx, dword [0x418a60]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x418a60], 0
mov eax, dword [0x418a84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
mov ecx, dword [0x418a64]
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 [0x418a64], eax
cmp dword [0x418a64], 0
jne 0x40527b
mov dword [0x41b398], 0xffffffff
mov eax, dword [0x418a50]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [0x418a4c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00409910
mov dword [0x418a50], 0
mov dword [0x418a4c], 0
push 0
push 0x4103cc
push 0x834
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x85f
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
mov eax, dword [0x418a84]
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 [0x41b398], 0xffffffff
call fcn.00409910
push 0x30
push 0x4103cc
push 0x841
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x847
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
mov eax, dword [0x418a84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0x410360
lea ecx, [ebp - 0x1788]
push ecx
call dword [0x414628]
mov dword [0x41b398], 0xffffffff
call fcn.00409910
lea edx, [ebp - 0x1fd0]
push edx
push 0x4105b4
push 0x4103cc
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 0x4103cc
push 0x843
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
mov eax, dword [0x418a84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
mov dword [0x41b398], 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 [0x418a4c]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x4105b0
lea edx, [ebp - 0x1ff8]
push edx
call fcn.0040b8d0
add esp, 8
test eax, eax
jne 0x405481
mov dword [0x41b398], 0xffffffff
mov eax, dword [0x418a50]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [0x418a4c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00409910
mov dword [0x418a50], 0
mov dword [0x418a4c], 0
push 0x30
push 0x4103cc
push 0x841
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x842
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
mov eax, dword [0x418a84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0x4102f0
lea ecx, [ebp - 0x1ff8]
push ecx
call fcn.0040b8d0
add esp, 8
test eax, eax
jne 0x4054a5
mov dword [0x41b388], 0
jmp 0x4054de
cmp dword [0x41b38c], 0
je 0x4054ca
lea edx, [ebp - 0x1ff8]
push edx
call fcn.0040b950
add esp, 4
add eax, dword [0x41b38c]
mov dword [0x41b388], eax
jmp 0x4054de
lea eax, [ebp - 0x1ff8]
push eax
call fcn.0040b950
add esp, 4
mov dword [0x41b388], eax
mov ecx, dword [0x41b388]
sub ecx, dword [0x41b38c]
push ecx
push 0x4196bc
call fcn.00409b00
add esp, 8
test eax, eax
jne 0x4055de
mov dword [0x41b398], 0xffffffff
mov edx, dword [0x418a50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x418a4c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00409910
mov dword [0x418a50], 0
mov dword [0x418a4c], 0
call fcn.00407f30
mov word [0x4196bc], 0
mov dword [0x41b38c], 0
mov ecx, dword [0x418a58]
push ecx
call fcn.00409d80
add esp, 4
cmp dword [0x41b394], 1
jne 0x4055a3
push 0x30
push 0x4103cc
push 0x834
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x86a
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
jmp 0x4055c7
mov dword [0x41b394], 1
push 0
push 0x3f4
push 0x111
mov eax, dword [0x418a58]
push eax
call fcn.00408b40
add esp, 0x10
mov ecx, dword [0x418a84]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
mov dword [0x41b398], 6
mov dword [ebp - 0x1bcc], 1
push 0x4103cc
push 0x840
call fcn.00402db0
add esp, 8
push eax
push 0x3fc
mov edx, dword [0x418a58]
push edx
call fcn.004091a0
add esp, 0xc
mov dword [0x41b398], 7
cmp dword [0x41b38c], 0
jne 0x4057e2
movzx eax, word [0x4196bc]
test eax, eax
je 0x40567f
push 0x410360
lea ecx, [ebp - 0x1990]
push ecx
call dword [0x414628]
push 0x418e9c
push 0x41b358
push 0x4196bc
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 [0x41b394], 2
jne 0x40569c
push 0x4198c4
lea eax, [ebp - 0x1990]
push eax
call dword [0x414628]
jmp 0x4056b7
mov ecx, 3
test ecx, ecx
je 0x4056b7
push 0x4190a4
lea edx, [ebp - 0x1990]
push edx
call dword [0x414628]
push 0x41b358
lea eax, [ebp - 0x1990]
push eax
call fcn.004071f0
add esp, 8
push 0x418e9c
lea ecx, [ebp - 0x1990]
push ecx
call dword [0x414628]
push str..xds
lea edx, [ebp - 0x1990]
push edx
call fcn.004071f0
add esp, 8
call fcn.0040a3c0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1990]
push eax
call fcn.00409480
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 [0x41b398], 0xffffffff
mov edx, dword [0x418a50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [0x418a4c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
call fcn.00409910
mov dword [0x418a50], 0
mov dword [0x418a4c], 0
call fcn.00407f30
mov word [0x4196bc], 0
mov dword [0x41b38c], 0
push 0x30
push 0x4103cc
push 0x834
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x86c
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x418a58]
push ecx
call dword [0x414658]
mov edx, dword [0x418a84]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 0x10
jmp 0x405d44
push 0x418e9c
lea eax, [ebp - 0x2940]
push eax
call dword [0x414628]
push str..xds
lea ecx, [ebp - 0x2940]
push ecx
call dword [0x414620]
push 1
push 1
lea edx, [ebp - 0x2940]
push edx
call fcn.0040a220
add esp, 0xc
mov eax, dword [0x41b3b4]
shl eax, 0xf
push eax
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0x19a8], eax
mov ecx, dword [0x41b3b4]
shl ecx, 0xf
push ecx
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0x20c], eax
push 0x2000
call fcn.0040df6d
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 [0x418a7c], eax
mov edx, dword [0x41b38c]
mov dword [ebp - 0x19a0], edx
mov eax, dword [ebp - 0x19a0]
cmp eax, dword [0x41b388]
jb 0x4058a2
cmp dword [0x41b388], 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 [0x41b388], 0
je 0x40590d
mov eax, dword [0x41b3b4]
shl eax, 0xf
add eax, dword [ebp - 0x19a0]
cmp eax, dword [0x41b388]
jb 0x40590d
push 0x3f3
mov ecx, dword [0x418a58]
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.00408b20
add esp, 8
mov eax, dword [ebp - 0x19a0]
mov dword [0x41b390], 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 [0x41b3b4]
shl edx, 0xf
cmp dword [ebp - 0xb30], edx
jge 0x405b80
mov eax, dword [0x41b390]
cmp eax, dword [0x41b388]
jb 0x405969
cmp dword [0x41b388], 0
jne 0x405b80
mov ecx, dword [ebp - 0x294c]
sub ecx, 0x1388
cmp ecx, dword [ebp - 0x2944]
jae 0x405b80
mov edx, dword [0x41b390]
mov dword [0x41b398], edx
mov eax, dword [0x41b3b4]
shl eax, 0xf
sub eax, dword [ebp - 0xb30]
cmp eax, 0x2000
jle 0x4059ae
mov dword [ebp - 0x2958], 0x2000
jmp 0x4059c3
mov ecx, dword [0x41b3b4]
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 [0x418a4c]
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 [0x41b390]
mov dword [0x41b388], eax
cmp dword [ebp - 0x1bcc], 0
je 0x405a19
cmp dword [ebp - 0xb5c], 0
jne 0x405a31
mov ecx, dword [0x41b388]
cmp ecx, dword [0x41b390]
je 0x405a31
push 0
call fcn.00406680
add esp, 4
cmp dword [0x41b364], 1
jne 0x405a9f
cmp dword [0x41b388], 0
je 0x405a51
mov edx, dword [0x41b38c]
cmp edx, dword [0x41b388]
jae 0x405a9f
mov eax, dword [0x418a50]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
mov ecx, dword [0x418a4c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
mov dword [0x41b364], 0
mov edx, dword [0x418a84]
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 [0x418a4c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a4c], 0
mov ecx, dword [0x418a50]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
mov edx, dword [0x418a84]
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 [0x41b390]
add eax, dword [ebp - 0x1bcc]
mov dword [0x41b390], eax
mov ecx, dword [0x41b390]
push ecx
call fcn.0040bbd0
add esp, 4
push eax
lea edx, [ebp - 0xb28]
push edx
mov eax, dword [0x41b390]
push eax
call fcn.0040bb50
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.0040eb20
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 [0x418a80]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405bae
mov eax, dword [0x418a84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x41b364], 1
jmp 0x405c6f
push 1
push 0
mov ecx, dword [ebp - 0xb30]
push ecx
mov edx, dword [ebp - 0x2948]
push edx
call fcn.0040adb0
add esp, 0x10
cmp dword [ebp - 0x218], 1
jne 0x405bdd
mov dword [ebp - 0x218], 2
jmp 0x405be7
mov dword [ebp - 0x218], 1
call fcn.0040ac20
mov eax, dword [ebp - 0x294c]
sub eax, 0x1388
cmp eax, dword [ebp - 0x2944]
jae 0x405c0b
push 0
call fcn.0040ab60
add esp, 4
jmp 0x405c15
push 1
call fcn.0040ab60
add esp, 4
cmp dword [ebp - 0x218], 1
jne 0x405c3f
mov ecx, dword [0x41b3b4]
shl ecx, 0xf
push ecx
mov edx, dword [ebp - 0x19a8]
push edx
call fcn.0040df95
add esp, 8
mov dword [ebp - 0x19a8], eax
jmp 0x405c5d
mov eax, dword [0x41b3b4]
shl eax, 0xf
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.0040df95
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 [0x41b364], 1
jne 0x405cdc
push 0x1388
mov eax, dword [0x418a7c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405c8f
jmp 0x405c78
mov dword [0x41b398], 0xffffffff
mov ecx, dword [0x41b38c]
push ecx
call fcn.00406a60
add esp, 4
mov edx, dword [0x418a50]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [0x418a50], 0
mov dword [0x41b364], 0
mov eax, dword [0x418a84]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x405d44
jmp 0x405887
mov dword [0x41b378], 0
push 0
mov ecx, dword [0x418a6c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x1388
mov edx, dword [0x418a7c]
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.0040df81
add esp, 4
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.0040df81
add esp, 4
mov edx, dword [ebp - 0x1ffc]
push edx
call fcn.0040df81
add esp, 4
call fcn.00405e30
pop edi
mov esp, ebp
pop ebp
ret