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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508bfc
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x54e39c]
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 0x538ab8
lea ecx, [ebp - 0x21c]
call fcn.0040ffe0
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp + ebx*4 - 0x250]
test esi, esi
jne 0x41b816
xor ecx, ecx
jmp 0x41b82f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b820
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 0x41bc72
test esi, esi
jne 0x41b860
xor ebx, ebx
jmp 0x41b872
push ecx
push esi
call fcn.004e75d5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41bc72
add edi, ebx
js 0x41bc72
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41b8ac
push edi
lea ecx, [ebp - 0x21c]
call fcn.00409160
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
lea ecx, [eax + ecx*2]
jbe 0x41b8c5
mov ecx, dword [ebp - 0x224]
push ebx
push ecx
lea ecx, [eax + edx*2]
mov edx, ebx
call fcn.00409010
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41bc72
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.0040ffe0
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 0x41b9e0
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x23c]
push esi
call fcn.0040ffe0
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 0x41b9ae
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41b999
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41b999
call fcn.0040ef10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41b98e
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 0x41b9a8
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.00408f20
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 0x41b9d0
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 0x41b9eb
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41bb7f
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
push str.Utils
call fcn.0040ffe0
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 0x41ba70
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41ba61
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41ba61
call fcn.0040ef10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41ba56
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 0x41ba70
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.00408f20
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 0x41ba92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
jne 0x41ba9e
xor ecx, ecx
jmp 0x41bab2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41baa3
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 0x41bc72
test esi, esi
jne 0x41badd
xor ebx, ebx
jmp 0x41baef
push ecx
push esi
call fcn.004e75d5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41bc72
add edi, ebx
js 0x41bc72
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41bb29
push edi
lea ecx, [ebp - 0x21c]
call fcn.00409160
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
ja 0x41bb3c
lea esi, [eax + ecx*2]
push ebx
lea ecx, [eax + edx*2]
mov edx, ebx
push esi
call fcn.00409010
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41bc72
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 0x41bb8f
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 0x41bbb1
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 0x41bbd6
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 0x41b7e1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dd9e0
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.0049bdac
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404780
int3