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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50703c
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x54c39c]
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 0x536a10
lea ecx, [ebp - 0x21c]
call fcn.0040ffc0
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp + ebx*4 - 0x250]
test esi, esi
jne 0x41b6f6
xor ecx, ecx
jmp 0x41b70f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b700
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 0x41bb52
test esi, esi
jne 0x41b740
xor ebx, ebx
jmp 0x41b752
push ecx
push esi
call fcn.004e5a35
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41bb52
add edi, ebx
js 0x41bb52
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41b78c
push edi
lea ecx, [ebp - 0x21c]
call fcn.00409150
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
lea ecx, [eax + ecx*2]
jbe 0x41b7a5
mov ecx, dword [ebp - 0x224]
push ebx
push ecx
lea ecx, [eax + edx*2]
mov edx, ebx
call fcn.00409000
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41bb52
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.0040ffc0
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 0x41b8c0
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x23c]
push esi
call fcn.0040ffc0
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 0x41b88e
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41b879
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41b879
call fcn.0040eef0
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41b86e
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 0x41b888
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.00408f10
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 0x41b8b0
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 0x41b8cb
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41ba5f
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
push str.Utils
call fcn.0040ffc0
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 0x41b950
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41b941
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41b941
call fcn.0040eef0
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41b936
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 0x41b950
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.00408f10
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 0x41b972
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
jne 0x41b97e
xor ecx, ecx
jmp 0x41b992
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b983
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 0x41bb52
test esi, esi
jne 0x41b9bd
xor ebx, ebx
jmp 0x41b9cf
push ecx
push esi
call fcn.004e5a35
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41bb52
add edi, ebx
js 0x41bb52
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41ba09
push edi
lea ecx, [ebp - 0x21c]
call fcn.00409150
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
ja 0x41ba1c
lea esi, [eax + ecx*2]
push ebx
lea ecx, [eax + edx*2]
mov edx, ebx
push esi
call fcn.00409000
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41bb52
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 0x41ba6f
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 0x41ba91
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 0x41bab6
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 0x41b6c1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dbe40
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.0049a1fc
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404780
int3