Function at 0x407e67
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48687c
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b2068]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
and dword [esp + 0x30], 0
mov eax, dword [0x4b457c]
mov esi, 0x4b457c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
and dword [esp + 0x40], 0
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x40], 1
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 2
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x48], 3
call fcn.00402394
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
lea eax, [esp + 0x20]
push str._cid_d
push eax
call fcn.00404e7f
mov ebx, dword [esp + 0x28]
add esp, 0xc
push dword [ebx - 0xc]
lea eax, [esp + 0x18]
push ebx
call fcn.0040217c
push dword [ebp + 0x10]
mov esi, 0x4b4d74
push dword [ebp + 8]
push str.KHelper::DownloadFileAndDecompressCrcDat_url:_ws_file:_ws
call fcn.00411a60
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x407f59
push dword [ebp + 0x14]
lea eax, [esp + 0x30]
push eax
call fcn.00402394
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push eax
call fcn.00402357
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
call fcn.0040214e
call edi
and dword [esp + 0x10], 0
mov dword [esp + 0x28], eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x10], 3
jge 0x408033
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407314
add esp, 0xc
test eax, eax
jne 0x408076
call edi
push dword [ebp + 0x10]
mov ebx, eax
sub ebx, dword [esp + 0x2c]
xor ecx, ecx
call fcn.004036eb
mov ebx, dword [esp + 0x1c]
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push eax
call fcn.00402357
push dword [ebp + 0x10]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x48], 4
call fcn.00402357
mov byte [esp + 0x40], 5
push dword [esp + 0x20]
push dword [esp + 0x28]
call fcn.00416ff3
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040214e
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040214e
cmp dword [esp + 0x18], 0
jne 0x408080
mov dword [esp + 0x18], 3
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 7
jl 0x407f7d
jmp 0x40809e
cmp dword [esp + 0x10], 5
jge 0x408049
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040742e
jmp 0x40806b
cmp dword [esp + 0x10], 6
jge 0x40805d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00407594
jmp 0x40806e
push 0
push dword [ebp + 0xc]
push dword [esp + 0x1c]
call fcn.00407314
add esp, 0xc
test eax, eax
je 0x407fbf
mov dword [esp + 0x18], 7
jmp 0x408022
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push eax
call fcn.00402357
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.0040214e
and dword [esp + 0x18], 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
sub eax, dword [esp + 0x30]
push eax
push dword [esp + 0x24]
push str.DownloadFileAndDecompressCrcDat_return:_d__cost_time:_d__url:_ws__path:_ws
call fcn.00411a60
add esp, 0x14
lea eax, [ebx - 0x10]
call fcn.0040214e
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret