Function at 0x404189
Capabilities:
Check for time delay via gettickcount
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12a0
call fcn.00430920
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebx + 0x26dc]
push esi
mov esi, ecx
mov dword [ebp - 0x127c], eax
mov eax, dword [eax]
push edi
mov edi, dword [eax + esi*4]
mov dword [ebp - 0x1288], esi
mov dword [ebp - 0x128c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x26d0]
xor ecx, ecx
mov dword [ebx + 0x26d4], eax
mov eax, dword [edi + 0x20]
mov dword [edi + 0x2c], ecx
cmp dword [eax + 4], 1
je 0x4046f6
cmp dword [edi + 0x1c], ecx
je 0x4041f2
push edi
call fcn.00405d3c
jmp 0x4041f4
xor eax, eax
mov dword [ebx + 0x26cc], eax
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x404207
mov dword [ecx + 0x2450], eax
cmp dword [ebx + 0x26cc], 0xc8
jne 0x4044ec
mov eax, edi
mov ecx, ebx
call fcn.0040699d
push ebx
mov esi, edi
call fcn.00405c46
push edi
mov ecx, ebx
call fcn.00406a06
push edi
mov esi, ebx
call fcn.00405d79
push ebx
mov eax, edi
call fcn.00405c01
mov edx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
cmp dword [ebx + 0x5d108], edx
jne 0x4044ec
cmp dword [ebx + 0x5d10c], esi
jne 0x4044ec
xor eax, eax
cmp dword [ebx + 0x2690], eax
je 0x404271
cmp dword [edi + 0x30], 1
sete al
jmp 0x404272
inc eax
test eax, eax
je 0x4044ec
mov eax, dword [ebx + 0x5d110]
mov ecx, dword [ebx + 0x5d114]
test eax, eax
jne 0x404292
test ecx, ecx
je 0x40436a
cmp eax, edx
jne 0x40429e
cmp ecx, esi
je 0x40436a
mov edi, dword [edi + 0x20]
test edi, edi
je 0x4042af
mov dword [edi + 0x244c], 1
mov eax, dword [ebp - 0x1288]
mov edi, ebx
call fcn.00405244
xor esi, esi
xor ecx, ecx
lea edx, [ebx + 0x270c]
mov eax, 0x90e0
cmp dword [edx], esi
je 0x4042dc
inc ecx
add edx, eax
cmp ecx, 0xa
jl 0x4042cb
jmp 0x404603
imul ecx, ecx, 0x90e0
lea edi, [ecx + ebx + 0x2700]
mov dword [ebp - 0x1280], edi
cmp edi, esi
je 0x404603
push eax
push esi
push edi
call fcn.00427d80
or dword [edi + 0x38], 0xffffffff
or dword [edi + 0x3c], 0xffffffff
add esp, 0xc
push esi
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xc], eax
cmp eax, esi
je 0x404603
push edi
mov ecx, ebx
call fcn.00406d0e
test eax, eax
je 0x404603
mov dword [edi + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 8], eax
mov eax, dword [edi + 0x20]
cmp dword [eax + 4], 1
je 0x404354
push ebx
call fcn.0040534c
test eax, eax
je 0x404603
mov esi, dword [ebp - 0x127c]
lea eax, [ebp - 0x1280]
call fcn.00406e70
jmp 0x404510
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x26fc], eax
xor eax, eax
cmp dword [edi + 0x1c], eax
je 0x404381
mov esi, edi
call fcn.00405def
test eax, eax
je 0x404439
xor eax, eax
mov dword [ebx + 0x247c], eax
mov dword [ebx + 0x26fc], eax
mov dword [ebx + 0x2690], 1
mov dword [edi + 0x30], eax
or eax, 0xffffffff
mov dword [ebx + 0x5d108], eax
mov dword [ebx + 0x5d10c], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
lea eax, [ebx + 0x5d128]
push eax
push 0x43e174
mov esi, 0x103
lea eax, [ebx + 0x5d330]
push esi
push eax
call fcn.00407223
push 0x208
lea eax, [ebx + 0x5d128]
push 0
push eax
call fcn.00427d80
add esp, 0x1c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00427d80
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebx + 0x5d128]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x43e0a0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40445b
cmp dword [eax + 0x2448], 0xffffffff
jne 0x40445b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 8]
mov ecx, dword [edi + 0x20]
mov dword [ecx + 0x2448], eax
push dword [edi + 0x1c]
mov eax, dword [ebx]
push 2
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x404603
mov eax, dword [ebx]
push 0
push 3
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x404603
mov edi, ebx
call fcn.00405e99
test eax, eax
je 0x4045f6
mov eax, dword [ebx]
xor esi, esi
push esi
push 4
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x404603
cmp dword [ebx + 0x26fc], esi
je 0x404a5b
mov eax, dword [ebx + 0x5d108]
cmp eax, dword [ebx + 0x5d118]
jne 0x404788
mov eax, dword [ebx + 0x5d10c]
cmp eax, dword [ebx + 0x5d11c]
jne 0x404788
mov eax, dword [ebp - 0x1288]
call fcn.00405244
mov dword [ebx + 0x5d100], 7
jmp 0x404510
xor esi, esi
cmp dword [ebx + 0x2690], esi
je 0x404518
mov dword [edi + 0x28], esi
push 1
push dword [ebp - 0x1288]
mov ecx, ebx
call fcn.004056e0
test eax, eax
je 0x4045f6
xor eax, eax
inc eax
jmp 0x404605
mov eax, dword [ebx + 0x26cc]
cmp eax, 0x12e
jne 0x4046a4
xor eax, eax
push 0x1046
mov word [ebp - 0x1258], ax
lea eax, [ebp - 0x1256]
push esi
push eax
call fcn.00427d80
mov edi, dword [edi + 0x1c]
add esp, 0xc
cmp edi, esi
je 0x4045f6
and dword [ebp - 0x1280], esi
lea eax, [ebp - 0x1280]
push eax
lea eax, [ebp - 0x1284]
push eax
lea eax, [ebp - 0x1258]
push eax
push 0x21
push edi
mov dword [ebp - 0x1284], 0x1047
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4045f6
lea eax, [ebp - 0x1258]
push 0
push eax
mov eax, dword [ebp - 0x128c]
mov esi, dword [eax + 0x20]
call fcn.00402fdc
pop ecx
pop ecx
test eax, eax
je 0x4045f6
mov eax, dword [ebp - 0x128c]
xor esi, esi
cmp dword [eax + 0x24], esi
jne 0x4045dd
push 0x1048
lea edi, [ebx + 0x5f5c8]
push esi
push edi
call fcn.00427d80
add esp, 0xc
lea eax, [ebp - 0x1258]
push eax
push 0x43e174
push 0x823
push edi
call fcn.00407204
add esp, 0x10
xor ecx, ecx
lea edx, [ebx + 0x270c]
mov eax, 0x90e0
cmp dword [edx], esi
je 0x404613
inc ecx
add edx, eax
cmp ecx, 0xa
jl 0x4045ea
mov eax, dword [ebp - 0x1288]
mov edi, ebx
call fcn.00405244
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042396b
leave
ret
imul ecx, ecx, 0x90e0
lea edi, [ecx + ebx + 0x2700]
mov dword [ebp - 0x1280], edi
cmp edi, esi
je 0x4045f6
push eax
xor esi, esi
push esi
push edi
call fcn.00427d80
or dword [edi + 0x38], 0xffffffff
or dword [edi + 0x3c], 0xffffffff
add esp, 0xc
push esi
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xc], eax
cmp eax, esi
je 0x4045f6
push edi
mov ecx, ebx
call fcn.00406d0e
test eax, eax
je 0x4045f6
and dword [edi + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 8], eax
mov eax, dword [edi + 0x20]
cmp dword [eax + 4], 1
je 0x404681
push ebx
call fcn.0040534c
test eax, eax
je 0x4045f6
mov esi, dword [ebp - 0x127c]
lea eax, [ebp - 0x1280]
call fcn.00406e70
mov eax, dword [ebp - 0x1288]
mov edi, ebx
call fcn.00405244
jmp 0x404510
cmp eax, 0x194
jne 0x4044f6
xor eax, eax
inc eax
mov dword [ebx + 0x2470], eax
mov edi, dword [edi + 0x20]
cmp edi, esi
je 0x4046c5
mov dword [edi + 0x244c], eax
mov eax, dword [ebp - 0x1288]
mov edi, ebx
call fcn.00405244
xor esi, esi
xor ecx, ecx
lea edx, [ebx + 0x270c]
mov eax, 0x90e0
cmp dword [edx], esi
je 0x4042dc
inc ecx
add edx, eax
cmp ecx, 0xa
jl 0x4046e1
jmp 0x404603
cmp dword [edi], ecx
jne 0x404751
mov eax, dword [edi + 4]
cmp eax, ecx
je 0x404751
push ebx
mov esi, edi
mov dword [edi + 0x1c], eax
call fcn.00405c46
mov eax, dword [ebx + 0x5d108]
cmp eax, dword [edi + 0x38]
jne 0x404748
mov eax, dword [ebx + 0x5d10c]
cmp eax, dword [edi + 0x3c]
jne 0x404748
xor eax, eax
cmp dword [ebx + 0x2690], eax
je 0x404735
cmp dword [edi + 0x30], 1
sete al
jmp 0x404736
inc eax
test eax, eax
je 0x404748
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x26fc], eax
jmp 0x404439
and dword [edi + 0x28], 0
jmp 0x4044f9
push 0x43e1d4
lea eax, [edi + 0x806c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40477c
and dword [ebx + 0x26fc], 0
and dword [edi + 0x30], 0
mov dword [ebx + 0x26d8], 0x8000000
and dword [edi + 0x28], 0
push 1
push esi
jmp 0x404501
mov edi, dword [ebp - 0x128c]
push 4
lea eax, [ebp - 0x129c]
push eax
push 6
push dword [edi + 0x1c]
mov dword [ebp - 0x129c], 0x4e20
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [edi + 0x8040], esi
mov edx, dword [ebx + 0x26f0]
sub edx, dword [ebx + 0x26ec]
xor ecx, ecx
sar edx, 2
cmp edx, esi
jbe 0x4047ee
mov eax, dword [ebx + 0x26ec]
mov dword [ebp - 0x127c], eax
mov esi, dword [ebp - 0x127c]
mov esi, dword [esi]
cmp dword [esi], 0
je 0x404848
add dword [ebp - 0x127c], 4
inc ecx
cmp ecx, edx
jb 0x4047d3
xor esi, esi
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x1278]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x5cfc0]
mov dword [ebp - 0x127c], esi
mov dword [ebp - 0x1284], eax
mov edi, dword [ebp - 0x1284]
push 0x20
pop ecx
lea esi, [ebp - 0x1278]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x404827
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ecx
je 0x404864
inc dword [ebp - 0x127c]
add dword [ebp - 0x1284], 0x20
cmp dword [ebp - 0x127c], 0xa
jb 0x40480d
jmp 0x404692
mov eax, dword [eax + ecx*4]
xor esi, esi
inc esi
mov dword [eax], esi
mov eax, dword [ebx + 0x26ec]
mov eax, dword [eax + ecx*4]
mov dword [edi + 0x8040], eax
jmp 0x4049ea
mov esi, dword [ebp - 0x127c]
cmp esi, 0xffffffff
je 0x404692
or dword [ebp - 0x1280], 0xffffffff
mov dword [ebp - 0x1298], ecx
mov dword [ebp - 0x1294], ecx
mov dword [ebp - 0x127c], ecx
cmp edx, ecx
jbe 0x404692
mov eax, dword [ebx + 0x26ec]
mov dword [ebp - 0x1284], eax
mov eax, dword [ebp - 0x1284]
mov edi, dword [eax]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
sbb eax, dword [edi + 0x1c]
sub ecx, dword [edi + 8]
sbb eax, dword [edi + 0xc]
add ecx, 1
adc eax, 0
cmp eax, dword [ebp - 0x1294]
jl 0x4048ea
jg 0x4048d2
cmp ecx, dword [ebp - 0x1298]
jbe 0x4048ea
mov dword [ebp - 0x1294], eax
mov eax, dword [ebp - 0x127c]
mov dword [ebp - 0x1298], ecx
mov dword [ebp - 0x1280], eax
inc dword [ebp - 0x127c]
add dword [ebp - 0x1284], 4
cmp dword [ebp - 0x127c], edx
jb 0x4048a0
cmp dword [ebp - 0x1280], 0xffffffff
je 0x404692
cmp dword [ebp - 0x1294], 0
jl 0x404692
jg 0x40492b
cmp dword [ebp - 0x1298], 0x40000
jbe 0x404692
lea eax, [esi + 0x2e7e]
shl eax, 5
add eax, ebx
mov dword [eax], 1
mov edx, dword [ebx + 0x26ec]
mov dword [ebp - 0x1284], eax
mov eax, dword [ebp - 0x1280]
shl eax, 2
mov edi, dword [eax + edx]
mov edx, dword [edi + 0x10]
push 0xffffffffffffffff
shl esi, 5
add esi, ebx
mov dword [esi + 0x5cfd0], edx
mov edx, dword [edi + 0x14]
push 0xfffffffffffffffe
push dword [ebp - 0x1294]
mov dword [esi + 0x5cfd4], edx
mov ecx, dword [ebx + 0x26ec]
push dword [ebp - 0x1298]
mov edi, dword [eax + ecx]
mov dword [ebp - 0x1280], eax
call fcn.00430240
add dword [edi + 0x10], eax
adc dword [edi + 0x14], edx
mov eax, dword [ebx + 0x26ec]
mov edx, dword [ebp - 0x1280]
mov eax, dword [edx + eax]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov edi, dword [ebp - 0x1284]
add edx, 1
adc eax, 0
mov dword [esi + 0x5cfcc], eax
mov dword [esi + 0x5cfc8], edx
lea eax, [ebp - 0x1280]
lea esi, [ebx + 0x26ec]
mov dword [ebp - 0x1280], edi
call fcn.00406e70
mov eax, dword [ebp - 0x128c]
xor esi, esi
mov dword [eax + 0x8040], edi
inc esi
mov edi, eax
mov eax, dword [edi + 0x8040]
cmp dword [eax + 8], 0
jne 0x404a08
cmp dword [eax + 0xc], 0
jne 0x404a08
mov dword [eax + 4], esi
mov dword [edi + 0x28], 8
jmp 0x404a1e
push 0
push dword [ebp - 0x1288]
mov ecx, ebx
mov dword [edi + 0x28], 4
call fcn.004056e0
cmp dword [ebx + 0x2690], 0
jne 0x404a45
cmp dword [ebx + 0x2468], esi
jbe 0x404a45
push 4
mov ecx, ebx
call fcn.0040383a
test eax, eax
je 0x404a45
inc esi
cmp esi, dword [ebx + 0x2468]
jb 0x404a2f
mov eax, dword [ebx]
push 0
push 5
mov ecx, ebx
call dword [eax + 4]
neg eax
sbb eax, eax
neg eax
jmp 0x404605
mov eax, dword [ebx]
push esi
push 5
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x404603
mov eax, dword [ebp - 0x128c]
mov dword [eax + 0x28], 8
jmp 0x404510