Function at 0x41c4a0
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470e2a
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4986f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x230], edi
xor ebx, ebx
lea eax, [edi + 0x40]
push ebx
mov dword [ebp - 0x22c], ebx
push dword [eax]
mov dword [edi + 0x28], 2
push ebx
mov dword [ebp - 0x23c], eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor esi, esi
mov dword [ebp - 0x250], str.update.exe
lea eax, [edi + 0x34]
mov dword [ebp - 0x24c], str.UtilModule.dll
mov dword [ebp - 0x248], str.curlnet.dll
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x244], eax
nop word [eax + eax]
push 0x476294
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.0040de20
add esp, 0xc
mov edi, dword [ebp + esi*4 - 0x250]
mov dword [ebp - 4], 0
test edi, edi
jne 0x41c565
xor ecx, ecx
jmp 0x41c57f
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c570
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x21c]
call fcn.0041c3e0
push edi
push dword [ebp - 0x23c]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
call fcn.0040de20
add esp, 0xc
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c5c7
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41c948
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x224], 0
mov eax, dword [eax + 0x34]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41c5ea
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41c5f6
call fcn.00404fc0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov byte [ebp - 4], 3
test eax, eax
je 0x41ca2a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or ebx, 4
mov byte [ebp - 4], 2
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x22c], ebx
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
test edi, edi
jne 0x41c62d
xor ebx, ebx
jmp 0x41c641
mov ebx, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41c632
sub ebx, ecx
sar ebx, 1
mov eax, dword [ebp - 0x230]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x240], eax
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x234], edi
lea edx, [edi + ebx]
test edx, edx
js 0x41ca34
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x41c687
push edx
lea ecx, [ebp - 0x224]
call fcn.004054a0
mov esi, dword [ebp - 0x224]
add edi, edi
push edi
push dword [ebp - 0x240]
push edi
push esi
call fcn.004056a0
mov ecx, dword [ebp - 0x228]
lea eax, [ebx + ebx]
push eax
push dword [ebp + ecx*4 - 0x250]
push eax
lea eax, [edi + esi]
push eax
call fcn.004056a0
mov eax, dword [ebp - 0x234]
lea edi, [esi - 0x10]
add eax, ebx
add esp, 0x20
cmp eax, dword [edi + 8]
jg 0x41ca34
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov ebx, dword [ebp - 0x21c]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x41c72b
mov eax, dword [ebx + 0xc]
shr eax, 0x1f
test al, al
jne 0x41c71c
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x41c71c
push edi
call fcn.0040dae0
add esp, 4
lea edx, [ebx + 0xc]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c711
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x21c], eax
jmp 0x41c72b
push dword [edi + 4]
lea ecx, [ebp - 0x21c]
push esi
call fcn.0040d660
mov ebx, dword [ebp - 0x238]
or eax, 0xffffffff
and ebx, 0xfffffffb
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x234], ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41c755
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c786
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call edi
mov esi, dword [ebp - 0x228]
jmp 0x41c958
mov edi, dword [ebp - 0x230]
mov dword [ebp - 0x224], 0
mov eax, dword [edi + 0x34]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41c7a9
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x41c7b5
call fcn.00404fc0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov byte [ebp - 4], 5
test eax, eax
je 0x41ca2a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
or ebx, 8
mov byte [ebp - 4], 4
mov dword [ebp - 0x22c], ebx
lea esi, [eax + 0x10]
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x238], eax
mov edi, dword [eax - 0xc]
lea ebx, [edi + 6]
test ebx, ebx
js 0x41ca34
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x41c818
push ebx
lea ecx, [ebp - 0x224]
call fcn.004054a0
mov esi, dword [ebp - 0x224]
add edi, edi
push edi
push dword [ebp - 0x238]
push edi
push esi
call fcn.004056a0
lea ecx, [edi + esi]
add esp, 0x10
test ecx, ecx
jne 0x41c844
call fcn.0044b733
mov dword [eax], 0x16
call fcn.0044b659
jmp 0x41c858
movq xmm0, qword [str.Utils]
movq qword [ecx], xmm0
mov eax, dword [0x4762ac]
mov dword [ecx + 8], eax
cmp ebx, dword [esi - 8]
lea edi, [esi - 0x10]
jg 0x41ca34
mov dword [edi + 4], ebx
xor eax, eax
mov word [esi + ebx*2], ax
mov ebx, dword [ebp - 0x21c]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x41c8c6
mov eax, dword [ebx + 0xc]
shr eax, 0x1f
test al, al
jne 0x41c8b7
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x41c8b7
push edi
call fcn.0040dae0
add esp, 4
lea edx, [ebx + 0xc]
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c8ac
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x21c], eax
jmp 0x41c8c6
push dword [edi + 4]
lea ecx, [ebp - 0x21c]
push esi
call fcn.0040d660
mov ebx, dword [ebp - 0x234]
or eax, 0xffffffff
and ebx, 0xfffffff7
mov byte [ebp - 4], 1
mov dword [ebp - 0x22c], ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41c8ee
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x228]
mov edx, dword [ebp + esi*4 - 0x250]
test edx, edx
jne 0x41c903
xor ecx, ecx
jmp 0x41c925
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c910
sub ecx, esi
mov esi, dword [ebp - 0x228]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x21c]
call fcn.0041c3e0
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41c958
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call edi
mov edx, dword [ebp - 0x220]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c976
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c99b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x244]
inc esi
mov dword [ebp - 0x228], esi
cmp esi, 3
jb 0x41c530
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004482e0
mov ebx, dword [ebp - 0x230]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebx + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.adbk_update.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 0x38]
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427208
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404b70
push 0x80070057
call fcn.00404b70
int3