Function at 0x411e30
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x497198
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x30], 1
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x38]
test esi, esi
mov byte [esp + 0x30], 2
jne 0x411ebb
xor eax, eax
jmp 0x411ecf
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411ec0
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x20]
call fcn.00401f30
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push eax
push str._cid_d
lea edi, [esp + 0x28]
call fcn.004039d0
mov edi, dword [esp + 0x28]
mov eax, dword [edi - 0xc]
add esp, 8
push eax
push edi
lea eax, [esp + 0x24]
push eax
call fcn.00401ff0
push ebp
push esi
push str.KHelper::DownloadFileAndDecompress_url:_ws_file:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
mov esi, dword [esp + 0x50]
add esp, 0xc
test esi, esi
je 0x411f6a
push 0
push ebp
call fcn.004602c8
add esp, 8
test eax, eax
jne 0x411f6a
push 0x5c
push ebp
call fcn.0045f762
add eax, 2
push ebp
lea edx, [esp + 0x24]
mov ecx, eax
call fcn.004103d0
add esp, 0xc
test eax, eax
je 0x411f6a
mov ecx, dword [esp + 0x18]
push esi
push ecx
call fcn.004616ad
add esp, 8
test eax, eax
jne 0x411f6a
xor esi, esi
jmp 0x4120bc
call ebx
mov dword [esp + 0x24], eax
xor edi, edi
jmp 0x411f7a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, 3
jge 0x411fd5
mov edx, dword [esp + 0x38]
push 0
push esi
push edx
call fcn.00410d30
add esp, 0xc
test eax, eax
jne 0x412016
push eax
call ebx
sub eax, dword [esp + 0x28]
mov ecx, ebp
push eax
call fcn.00403080
push ebp
mov ecx, esi
call fcn.00410950
add esp, 4
test eax, eax
jne 0x41201d
push ebp
push eax
push str.Decompress_return:_d__path:_ws
mov ecx, 0x4ba960
lea esi, [eax + 4]
call fcn.0041d5c0
jmp 0x412081
cmp edi, 5
jge 0x411fec
mov ebx, dword [esp + 0x38]
push 0
mov ecx, esi
call fcn.00410e80
add esp, 4
jmp 0x412012
cmp edi, 6
jge 0x412002
mov eax, dword [esp + 0x38]
push eax
mov ecx, esi
call fcn.00411220
add esp, 4
jmp 0x412012
mov ecx, dword [esp + 0x1c]
push 0
push esi
push ecx
call fcn.00410d30
add esp, 0xc
test eax, eax
je 0x411fad
mov esi, 7
jmp 0x412084
mov esi, dword [esp + 0x44]
test esi, esi
je 0x412092
push 0x5c
push ebp
call fcn.0045f762
add eax, 2
push ebp
lea edx, [esp + 0x24]
mov ecx, eax
call fcn.004103d0
add esp, 0xc
test eax, eax
jne 0x412059
push ebp
push eax
push str.GetFileMd5_return:_d__path:_ws
mov ecx, 0x4ba960
lea esi, [eax + 5]
call fcn.0041d5c0
jmp 0x412081
mov ebx, dword [esp + 0x18]
push esi
push ebx
call fcn.004616ad
add esp, 8
test eax, eax
je 0x412092
push ebx
push esi
push str.Compare_md5_not_matched__expected:_ws__actually:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
mov esi, 6
add esp, 0xc
add edi, 1
cmp edi, 7
jl 0x411f74
jmp 0x412094
xor esi, esi
mov edx, dword [esp + 0x38]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x2c]
mov ecx, 0x4ba960
push eax
push esi
push str.DownloadFileAndDecompress_return:_d__cost_time:_d__url:_ws__path:_ws
call fcn.0041d5c0
mov edi, dword [esp + 0x34]
add esp, 0x14
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4120dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 0
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 0x412102
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 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 0x41212a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret