Function at 0x10026500
Capabilities:
Check for time delay via gettickcount
Check os version
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10051888
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x18]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x10026567
test edi, edi
je 0x10026550
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 8
mov ecx, dword [esp + 0x34]
mov ebp, 8
cmp ecx, ebp
ja case.default.0x10026578
jmp dword [ecx*4 + 0x10026a2c]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
push eax
push str.Handle:_u_HTTP:_DownloadState_Connecting
push 1
push 0x10069158
call fcn.10017d90
mov dword [esi + 0x34], 6
jmp 0x10026a06
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
push eax
push str.Handle:_u_HTTP:_DownloadState_ConnectedToServer
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
cmp dword [esi + 0x34], 6
jne case.default.0x10026578
mov eax, dword [esi + 0x30]
push eax
mov ecx, 0x10069ab0
call fcn.10024040
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], edx
mov dword [esi + 0x34], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x3c]
push 0x10056560
lea ecx, [esi + 0x178]
mov dword [esi + 0x40], eax
call fcn.1001e650
jmp case.default.0x10026578
cmp dword [esi + 0x34], 6
jne case.default.0x10026578
jmp 0x100265d1
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
push eax
push str.Handle:_u_HTTP:_DownloadState_WaitComplete
jmp 0x100269fa
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
push eax
push str.Handle:_u_HTTP:_DownloadState_Complete
push 1
push 0x10069158
call fcn.10017d90
mov edx, dword [0x10069af0]
mov eax, dword [esi + 0x30]
xor ecx, ecx
add esp, 0x10
mov dword [esp + 0x34], ecx
test edx, edx
jne 0x10026665
xor eax, eax
jmp 0x10026674
lea ecx, [esp + 0x34]
push ecx
push eax
call edx
mov ecx, dword [esp + 0x3c]
add esp, 8
mov dword [esi + 0x14], eax
test ecx, ecx
je 0x100266aa
push ecx
lea ecx, [esi + 0xf0]
call fcn.1000b7a0
mov edx, dword [esp + 0x34]
mov eax, dword [esi]
push edx
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
push eax
push str.Handle:_u_HTTP:_szmsg:_s
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x14
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 0x34]
jne 0x1002694d
cmp eax, 1
je 0x10026919
cmp eax, 2
je 0x10026919
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x68], eax
cmp ecx, 0xffffffff
je 0x100266e2
sub eax, ecx
mov dword [esi + 0x68], eax
cmp dword [esi + 0x68], 0
je 0x1002673d
mov eax, dword [esi + 0x30]
push eax
mov ecx, 0x10069ab0
call fcn.10024060
mov ecx, dword [esi + 0x30]
push ecx
mov ecx, 0x10069ab0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
call fcn.10024080
mov ecx, dword [esi + 0x58]
sub ecx, eax
mov eax, dword [esi + 0x5c]
sbb eax, edx
push 0
mov dword [esi + 0x48], ecx
mov edx, dword [esi + 0x48]
push 0x3e8
mov ecx, eax
push ecx
push edx
mov dword [esi + 0x4c], eax
call fcn.1003acd0
mov ecx, dword [esi + 0x68]
push 0
push ecx
push edx
push eax
call fcn.1003b330
mov dword [esi + 0x60], eax
cmp dword [esi + 0xd0], ebp
lea edi, [esi + 0xb8]
jb 0x10026750
mov ecx, dword [edi + 4]
jmp 0x10026753
lea ecx, [edi + 4]
cmp dword [esi + 0xec], ebp
jb 0x10026763
mov eax, dword [esi + 0xd8]
jmp 0x10026769
lea eax, [esi + 0xd8]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 9
push ecx
push eax
call ebp
lea ecx, [esi + 0x178]
test eax, eax
je 0x10026925
push 0x10056550
mov dword [esi + 0x34], 1
call fcn.1001e650
cmp dword [esi + 0x10], 0
je 0x100268bd
cmp dword [0x10062318], 0
je 0x100268b7
mov eax, dword [esi + 0x84]
test eax, eax
je 0x10026830
sub esp, 0x1c
lea edx, [esi + 0x10c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.1000b510
sub esp, 0x1c
lea eax, [esi + 0x1f0]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x68], 1
call fcn.1000b510
mov ecx, dword [esi + 4]
push ecx
sub esp, 0x1c
lea edx, [esi + 0x70]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
mov byte [esp + 0x88], 2
call fcn.1000b510
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x94], esp
push edi
mov byte [esp + 0xa4], 3
call fcn.1000b510
push 1
mov ecx, 0x100695b0
mov byte [esp + 0xa4], 0
call fcn.1001f560
cmp dword [esi + 0xa0], 0
je 0x100268b7
sub esp, 0x1c
lea eax, [esi + 0x10c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.1000b510
sub esp, 0x1c
lea edx, [esi + 0x1f0]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0x68], 4
call fcn.1000b510
mov eax, dword [esi + 4]
push eax
sub esp, 0x1c
lea edx, [esi + 0x8c]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
mov byte [esp + 0x88], 5
call fcn.1000b510
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x88], esp
push edi
mov byte [esp + 0xa4], 6
call fcn.1000b510
push 2
mov ecx, 0x100695b0
mov byte [esp + 0xa4], 0
call fcn.1001f560
cmp dword [esi + 0x10], 0
jne 0x10026915
cmp dword [edi + 0x18], 8
jb 0x100268c8
mov eax, dword [edi + 4]
jmp 0x100268cb
lea eax, [edi + 4]
push eax
call fcn.1000a1a0
add esp, 4
test eax, eax
je 0x10026915
cmp dword [esi + 4], 0
je 0x10026915
cmp dword [edi + 0x18], 8
jb 0x100268e9
mov edi, dword [edi + 4]
jmp 0x100268ec
add edi, 4
push 4
push 0
push edi
call ebp
test eax, eax
jne 0x10026915
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
push eax
push str.Handle:_u_HTTP:__History::CheckStatus_MoveFileEx_Failed.
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
mov edi, dword [esp + 0x10]
mov ecx, esi
call fcn.100251a0
jmp case.default.0x10026578
push 0x10056554
mov dword [esi + 0x34], 2
mov dword [esi + 0x14], 0xfffffc17
call fcn.1001e650
mov edi, dword [esp + 0x10]
mov ecx, esi
call fcn.100251a0
jmp case.default.0x10026578
cmp eax, 5
je 0x10026957
cmp eax, 6
jne 0x10026919
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x68], eax
cmp ecx, 0xffffffff
je 0x10026970
sub eax, ecx
mov dword [esi + 0x68], eax
cmp dword [esi + 0x68], 0
je 0x100269cb
mov eax, dword [esi + 0x30]
push eax
mov ecx, 0x10069ab0
call fcn.10024060
mov ecx, dword [esi + 0x30]
push ecx
mov ecx, 0x10069ab0
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
call fcn.10024080
mov ecx, dword [esi + 0x58]
sub ecx, eax
mov eax, dword [esi + 0x5c]
sbb eax, edx
push 0
mov dword [esi + 0x48], ecx
mov edx, dword [esi + 0x48]
push 0x3e8
mov ecx, eax
push ecx
push edx
mov dword [esi + 0x4c], eax
call fcn.1003acd0
mov ecx, dword [esi + 0x68]
push 0
push ecx
push edx
push eax
call fcn.1003b330
mov dword [esi + 0x60], eax
push 0x10056554
lea ecx, [esi + 0x178]
mov dword [esi + 0x34], 2
call fcn.1001e650
mov ecx, esi
call fcn.100251a0
jmp case.default.0x10026578
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
push eax
push 0x100567f4
push 1
push 0x10069158
call fcn.10017d90
add esp, 0x10
test edi, edi
je 0x10026a14
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 8