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

Disassembly:
push 0xffffffffffffffff
push 0x4b8720
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
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 + 0x38], 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 + 0x38], 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 + 0x38], 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 + 0x40]
cmp edx, esi
mov byte [esp + 0x38], 3
jne 0x412e68
xor eax, eax
jmp 0x412e7f
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x412e70
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 + 0x48]
mov ebx, dword [esp + 0x40]
push esi
push ebx
push str.KHelper::DownloadFileAndDecompressCrcDat_url:_ws_file:_ws
mov ecx, 0x4e49b4
call fcn.00419ab0
add esp, 0xc
test ebp, ebp
je 0x412eff
mov eax, ebp
lea edx, [eax + 2]
jmp 0x412ee0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412ee0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x18]
call fcn.00401750
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
mov ebp, dword [esp + 0x44]
je 0x412f74
push 0
push ebp
call fcn.004965a0
add esp, 8
test eax, eax
jne 0x412f74
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.004118d0
add esp, 8
test eax, eax
je 0x412f74
mov eax, dword [esp + 0x1c]
push eax
push 0x4c85c4
lea edi, [esp + 0x20]
call fcn.00401250
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.00496488
add esp, 0x10
test eax, eax
jne 0x412f74
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, ebp
call fcn.00411a30
add esp, 4
test eax, eax
je 0x412f74
xor esi, esi
jmp 0x4130ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
jmp 0x412f8e
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, 1
mov ecx, ebp
jge 0x412fdc
push 0
push ebx
call fcn.00411d00
add esp, 8
test eax, eax
jne 0x413010
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x2c]
xor ecx, ecx
push eax
push esi
call fcn.0040e3d0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, ebp
call fcn.00411a30
add esp, 4
test eax, eax
jne 0x413017
lea esi, [eax + 4]
jmp 0x41307e
cmp edi, 2
jge 0x412fed
push 0
call fcn.00411e90
add esp, 4
jmp 0x41300c
cmp edi, 3
jge 0x412ffd
push ebx
call fcn.00412070
add esp, 4
jmp 0x41300c
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.00411d00
add esp, 8
test eax, eax
je 0x412fbe
mov esi, 7
jmp 0x41307e
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x413090
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.004118d0
add esp, 8
test eax, eax
jne 0x413038
lea esi, [eax + 8]
jmp 0x41307e
mov eax, dword [esp + 0x1c]
push eax
push str._08x
lea edi, [esp + 0x20]
call fcn.00401250
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
push edi
push ebx
call fcn.00496488
add esp, 0x10
test eax, eax
je 0x413090
push ebx
push edi
push str.DownloadFileAndDecompressCrcDat_Crc_is_not_correct__expect_crc:_ws__crc:_ws
mov ecx, 0x4e49b4
mov esi, 9
call fcn.00419ab0
mov edi, dword [esp + 0x34]
add esp, 0xc
add edi, 1
cmp edi, 4
mov dword [esp + 0x28], edi
jl 0x412f86
jmp 0x413092
xor esi, esi
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x34]
mov ecx, 0x4e49b4
push eax
push esi
push str.DownloadFileAndDecompressCrcDat_return:_d__cost_time:_d__url:_ws__path:_ws
call fcn.00419ab0
add esp, 0x14
mov byte [esp + 0x38], 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 0x4130df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 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 0x413104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 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 0x413129
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 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 0x413151
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret