Function at 0x412720
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b8798
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0
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 + 0x2c], 1
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
test ebp, ebp
mov byte [esp + 0x2c], 2
jne 0x4127a6
xor eax, eax
jmp 0x4127bf
mov eax, ebp
lea edx, [eax + 2]
jmp 0x4127b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4127b0
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x18]
call fcn.00401750
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push eax
push str._cid_d
lea edi, [esp + 0x24]
call fcn.00401250
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
add esp, 8
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
call fcn.00407aa0
push esi
push ebp
push str.KHelper::DownloadFileAndDecompress_url:_ws_file:_ws
mov ecx, 0x4e49b4
call fcn.00419ab0
mov edi, dword [esp + 0x48]
add esp, 0xc
test edi, edi
je 0x41285a
push 0
push esi
call fcn.004965a0
add esp, 8
test eax, eax
jne 0x41285a
push 0x5c
push esi
call fcn.00495bcc
add eax, 2
push esi
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.004114b0
add esp, 0xc
test eax, eax
je 0x41285a
mov ecx, dword [esp + 0x10]
push edi
push ecx
call fcn.00496488
add esp, 8
test eax, eax
jne 0x41285a
xor edi, edi
jmp 0x4129b3
call ebx
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
jmp 0x412874
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, 1
mov ecx, edi
jge 0x4128d7
push 0
push ebp
call fcn.00411d00
add esp, 8
test eax, eax
jne 0x41290d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x20]
xor ecx, ecx
push eax
push esi
call fcn.0040e3d0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov ecx, edi
call fcn.00411a30
add esp, 4
test eax, eax
jne 0x412914
push esi
push eax
push str.Decompress_return:_d__path:_ws
mov ecx, 0x4e49b4
lea edi, [eax + 4]
call fcn.00419ab0
jmp 0x412978
cmp ebx, 2
jge 0x4128ea
push 0
mov ebx, ebp
call fcn.00411e90
add esp, 4
jmp 0x412909
cmp ebx, 3
jge 0x4128fa
push ebp
call fcn.00412070
add esp, 4
jmp 0x412909
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.00411d00
add esp, 8
test eax, eax
je 0x4128a8
mov edi, 7
jmp 0x41297b
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x412991
push 0x5c
push esi
call fcn.00495bcc
add eax, 2
push esi
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.004114b0
add esp, 0xc
test eax, eax
jne 0x412950
push esi
push eax
push str.GetFileMd5_return:_d__path:_ws
mov ecx, 0x4e49b4
lea edi, [eax + 5]
call fcn.00419ab0
jmp 0x412978
mov edi, dword [esp + 0x10]
push ebx
push edi
call fcn.00496488
add esp, 8
test eax, eax
je 0x412991
push edi
push ebx
push str.Compare_md5_not_matched__expected:_ws__actually:_ws
mov ecx, 0x4e49b4
call fcn.00419ab0
mov edi, 6
add esp, 0xc
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x412870
jmp 0x412993
xor edi, edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x28]
mov ecx, 0x4e49b4
push eax
push edi
push str.DownloadFileAndDecompress_return:_d__cost_time:_d__url:_ws__path:_ws
call fcn.00419ab0
add esp, 0x14
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4129d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 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 0x4129fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x20
ret