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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50437c
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x549394]
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 0x533da8
lea ecx, [ebp - 0x21c]
call fcn.00410640
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp + ebx*4 - 0x250]
test esi, esi
jne 0x41c3d6
xor ecx, ecx
jmp 0x41c3ef
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c3e0
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 0x41c832
test esi, esi
jne 0x41c420
xor ebx, ebx
jmp 0x41c432
push ecx
push esi
call fcn.004e2d15
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41c832
add edi, ebx
js 0x41c832
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41c46c
push edi
lea ecx, [ebp - 0x21c]
call fcn.004093a0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
lea ecx, [eax + ecx*2]
jbe 0x41c485
mov ecx, dword [ebp - 0x224]
push ebx
push ecx
lea ecx, [eax + edx*2]
mov edx, ebx
call fcn.00409250
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41c832
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.00410640
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 0x41c5a0
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x23c]
push esi
call fcn.00410640
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 0x41c56e
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41c559
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41c559
call fcn.0040f570
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41c54e
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 0x41c568
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.00409160
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 0x41c590
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 0x41c5ab
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x41c73f
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
push str.Utils
call fcn.00410640
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 0x41c630
mov eax, dword [edi + 0xc]
lea ebx, [edi + 0xc]
shr eax, 0x1f
test al, al
jne 0x41c621
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x41c621
call fcn.0040f570
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41c616
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 0x41c630
push dword [edx - 0xc]
lea ecx, [ebp - 0x21c]
push edx
call fcn.00409160
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 0x41c652
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
test esi, esi
jne 0x41c65e
xor ecx, ecx
jmp 0x41c672
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c663
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 0x41c832
test esi, esi
jne 0x41c69d
xor ebx, ebx
jmp 0x41c6af
push ecx
push esi
call fcn.004e2d15
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x21c]
mov ecx, SysReAllocString
sub ecx, ebx
cmp ecx, edi
jl 0x41c832
add edi, ebx
js 0x41c832
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x41c6e9
push edi
lea ecx, [ebp - 0x21c]
call fcn.004093a0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp - 0x22c]
cmp ecx, edx
ja 0x41c6fc
lea esi, [eax + ecx*2]
push ebx
lea ecx, [eax + edx*2]
mov edx, ebx
push esi
call fcn.00409250
mov eax, dword [ebp - 0x21c]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41c832
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 0x41c74f
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 0x41c771
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 0x41c796
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 0x41c3a1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d9120
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.0049742c
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404780
int3