Function at 0x412140
Capabilities:
Check for time delay via gettickcount
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x497160
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x4b994c
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], esi
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x34], 1
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x34], 2
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x3c]
cmp edx, esi
mov byte [esp + 0x34], 3
jne 0x4121e8
xor eax, eax
jmp 0x4121ff
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4121f0
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x24]
call fcn.00401f30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._cid_d
lea edi, [esp + 0x2c]
call fcn.004039d0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 0xc]
add esp, 8
push eax
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.00401ff0
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
push esi
push ebx
push str.KHelper::DownloadFileAndDecompressCrc_url:_ws_file:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 0xc
test ebp, ebp
je 0x41227f
mov eax, ebp
lea edx, [eax + 2]
jmp 0x412260
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412260
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x18]
call fcn.00401f30
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4122d8
push 0
push esi
call fcn.004602c8
add esp, 8
test eax, eax
jne 0x4122d8
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.004107f0
add esp, 8
test eax, eax
je 0x4122d8
mov eax, dword [esp + 0x1c]
push eax
push 0x4a0f30
lea edi, [esp + 0x20]
call fcn.004039d0
mov ecx, edi
push ecx
lea eax, [esp + 0x20]
call fcn.00416c30
add esp, 0xc
test al, al
je 0x4122d8
xor esi, esi
jmp 0x41240f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
xor ebp, ebp
jmp 0x4122ee
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebp, 3
jge 0x41233d
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
push edi
push edx
push ebx
call fcn.00410d30
add esp, 0xc
test eax, eax
jne 0x412384
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00403080
mov ecx, dword [esp + 0x40]
push esi
call fcn.00410950
add esp, 4
test eax, eax
jne 0x41238b
lea esi, [eax + 4]
jmp 0x4123d7
cmp ebp, 5
jge 0x412355
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push eax
call fcn.00410e80
add esp, 4
jmp 0x412380
cmp ebp, 6
jge 0x412369
mov ecx, dword [esp + 0x40]
push ebx
call fcn.00411220
add esp, 4
jmp 0x412380
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.00410d30
add esp, 0xc
test eax, eax
je 0x412324
mov esi, 7
jmp 0x4123d7
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x4123e5
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.004107f0
add esp, 8
test eax, eax
jne 0x4123ac
lea esi, [eax + 8]
jmp 0x4123d7
mov eax, dword [esp + 0x1c]
push eax
push 0x4a0f30
lea edi, [esp + 0x20]
call fcn.004039d0
mov ecx, edi
push ecx
lea eax, [esp + 0x20]
call fcn.00416c30
add esp, 0xc
test al, al
jne 0x4123e5
mov esi, 9
add ebp, 1
cmp ebp, 7
jl 0x4122e6
jmp 0x4123e7
xor esi, esi
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x30]
mov ecx, 0x4ba960
push eax
push esi
push str.DownloadFileAndDecompressCrc_return:_d__cost_time:_d__url:_ws__path:_ws
call fcn.0041d5c0
add esp, 0x14
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41247e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4124a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret