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

Disassembly:
push 0xffffffffffffffff
push 0x4b8760
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x4e3844
mov dword [esp + 0x1c], esi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], esi
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x34], 1
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x34], 2
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x3c]
cmp edx, esi
mov byte [esp + 0x34], 3
jne 0x412ae8
xor eax, eax
jmp 0x412aff
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x412af0
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x24]
call fcn.00401750
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._cid_d
lea edi, [esp + 0x2c]
call fcn.00401250
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.00407aa0
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
push esi
push ebx
push str.KHelper::DownloadFileAndDecompressCrc_url:_ws_file:_ws
mov ecx, 0x4e49b4
call fcn.00419ab0
add esp, 0xc
test ebp, ebp
je 0x412b7f
mov eax, ebp
lea edx, [eax + 2]
jmp 0x412b60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412b60
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x18]
call fcn.00401750
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x412bd8
push 0
push esi
call fcn.004965a0
add esp, 8
test eax, eax
jne 0x412bd8
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.004118d0
add esp, 8
test eax, eax
je 0x412bd8
mov eax, dword [esp + 0x1c]
push eax
push 0x4c84b8
lea edi, [esp + 0x20]
call fcn.00401250
mov ecx, edi
push ecx
lea eax, [esp + 0x20]
call fcn.00414e50
add esp, 0xc
test al, al
je 0x412bd8
xor esi, esi
jmp 0x412d11
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], eax
xor ebp, ebp
jmp 0x412bee
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebp, 1
jge 0x412c43
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push edi
push ebx
call fcn.00411d00
add esp, 8
test eax, eax
jne 0x412c89
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x28]
mov ecx, edi
push eax
push esi
call fcn.0040e3d0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x40]
push esi
call fcn.00411a30
add esp, 4
test eax, eax
jne 0x412c8d
lea esi, [eax + 4]
jmp 0x412cd9
cmp ebp, 2
jge 0x412c5b
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push edx
call fcn.00411e90
add esp, 4
jmp 0x412c85
cmp ebp, 3
jge 0x412c6f
mov ecx, dword [esp + 0x40]
push ebx
call fcn.00412070
add esp, 4
jmp 0x412c85
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x48]
call fcn.00411d00
add esp, 8
test eax, eax
je 0x412c23
mov esi, eax
jmp 0x412cd9
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x412ce7
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004118d0
add esp, 8
test eax, eax
jne 0x412cae
lea esi, [eax + 8]
jmp 0x412cd9
mov ecx, dword [esp + 0x1c]
push ecx
push 0x4c84b8
lea edi, [esp + 0x20]
call fcn.00401250
mov edx, edi
push edx
lea eax, [esp + 0x20]
call fcn.00414e50
add esp, 0xc
test al, al
jne 0x412ce7
mov esi, 9
add ebp, 1
cmp ebp, 4
jl 0x412be6
jmp 0x412ce9
xor esi, esi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x30]
mov ecx, 0x4e49b4
push eax
push esi
push str.DownloadFileAndDecompressCrc_return:_d__cost_time:_d__url:_ws__path:_ws
call fcn.00419ab0
add esp, 0x14
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412d36
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 0x412d5b
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 0x412d80
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 0x412da8
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