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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50350c
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x548394]
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 0x532e00
lea ecx, [ebp - 0x21c]
call fcn.0040fea0
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp + ebx*4 - 0x250]
test esi, esi
jne 0x41b8a6
xor ecx, ecx
jmp 0x41b8bf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b8b0
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 0x41bd02
test esi, esi
jne 0x41b8f0
xor ebx, ebx
jmp 0x41b902
push ecx
push esi
call fcn.004e1ea5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41bd02
add edi, ebx
js 0x41bd02
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41b93c
push edi
lea ecx, [ebp - 0x21c]
call fcn.00409050
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
lea ecx, [eax + ecx*2]
jbe 0x41b955
mov ecx, dword [ebp - 0x224]
push ebx
push ecx
lea ecx, [eax + edx*2]
mov edx, ebx
call fcn.00408f00
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41bd02
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.0040fea0
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 0x41ba70
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x23c]
push esi
call fcn.0040fea0
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 0x41ba3e
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41ba29
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41ba29
call fcn.0040edd0
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41ba1e
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 0x41ba38
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.00408e10
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 0x41ba60
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 0x41ba7b
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41bc0f
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
push str.Utils
call fcn.0040fea0
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 0x41bb00
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41baf1
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41baf1
call fcn.0040edd0
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41bae6
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 0x41bb00
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.00408e10
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 0x41bb22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
jne 0x41bb2e
xor ecx, ecx
jmp 0x41bb42
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bb33
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 0x41bd02
test esi, esi
jne 0x41bb6d
xor ebx, ebx
jmp 0x41bb7f
push ecx
push esi
call fcn.004e1ea5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41bd02
add edi, ebx
js 0x41bd02
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41bbb9
push edi
lea ecx, [ebp - 0x21c]
call fcn.00409050
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
ja 0x41bbcc
lea esi, [eax + ecx*2]
push ebx
lea ecx, [eax + edx*2]
mov edx, ebx
push esi
call fcn.00408f00
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41bd02
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 0x41bc1f
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 0x41bc41
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 0x41bc66
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 0x41b871
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d82b0
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.004965ac
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404780
int3