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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eaefc
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x52a394]
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 esi, ecx
mov dword [ebp - 0x244], esi
lea eax, [esi + 0x40]
mov dword [esi + 0x28], 2
push 0
push dword [eax]
mov dword [ebp - 0x238], eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ebx, ebx
mov dword [ebp - 0x250], str.update.exe
lea ecx, [esi + 0x34]
mov dword [ebp - 0x24c], str.UtilModule.dll
mov dword [ebp - 0x248], str.curlnet.dll
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], ecx
mov edx, ecx
mov dword [ebp - 0x21c], 0
push 0x518120
lea ecx, [ebp - 0x21c]
call fcn.00410020
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp + ebx*4 - 0x250]
test esi, esi
jne 0x41a366
xor ecx, ecx
jmp 0x41a37f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a370
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x21c]
mov edx, esi
sub edx, eax
mov dword [ebp - 0x224], esi
sar edx, 1
mov dword [ebp - 0x234], edx
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x22c], edi
test ecx, ecx
js 0x41a7c2
test esi, esi
jne 0x41a3b0
xor ebx, ebx
jmp 0x41a3c2
push ecx
push esi
call fcn.004c9d21
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41a7c2
add edi, ebx
js 0x41a7c2
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41a3fc
push edi
lea ecx, [ebp - 0x21c]
call fcn.004092f0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
lea ecx, [eax + ecx*2]
jbe 0x41a415
mov ecx, dword [ebp - 0x224]
push ebx
push ecx
lea ecx, [eax + edx*2]
mov edx, ebx
call fcn.004091a0
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41a7c2
mov edx, dword [ebp - 0x238]
xor ecx, ecx
mov dword [eax - 0xc], edi
mov eax, dword [ebp - 0x21c]
push esi
mov word [eax + edi*2], cx
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x220]
call fcn.00410020
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x41a530
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x23c]
push esi
call fcn.00410020
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x41a4fe
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41a4e9
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41a4e9
call fcn.0040ef50
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41a4de
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x224]
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x41a4f8
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.004090b0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a520
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
push dword [ebp - 0x21c]
call ebx
test eax, eax
je 0x41a53b
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41a6cf
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
push str.Utils
call fcn.00410020
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov edi, dword [ebp - 0x21c]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x41a5c0
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41a5b1
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41a5b1
call fcn.0040ef50
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41a5a6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x224]
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x41a5c0
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.004090b0
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a5e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
jne 0x41a5ee
xor ecx, ecx
jmp 0x41a602
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a5f3
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x21c]
mov edx, esi
sub edx, eax
sar edx, 1
mov dword [ebp - 0x224], edx
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x22c], edi
test ecx, ecx
js 0x41a7c2
test esi, esi
jne 0x41a62d
xor ebx, ebx
jmp 0x41a63f
push ecx
push esi
call fcn.004c9d21
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41a7c2
add edi, ebx
js 0x41a7c2
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41a679
push edi
lea ecx, [ebp - 0x21c]
call fcn.004092f0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
ja 0x41a68c
lea esi, [eax + ecx*2]
push ebx
lea ecx, [eax + edx*2]
mov edx, ebx
push esi
call fcn.004091a0
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41a7c2
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + edi*2], cx
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41a6df
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a701
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov dword [ebp - 4], 9
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41a726
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x228]
inc ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x230], ebx
cmp ebx, 3
jb 0x41a331
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bff80
mov esi, dword [ebp - 0x244]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [esi + 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 [esi + 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.00493aac
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404780
int3