Function at 0x420380
Capabilities:
Delete file
Get file attributes
Move file
Print debug messages
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49eb38
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5564a4]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x16c]
mov ebp, ecx
call fcn.0045f338
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4203e0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x1c]
push str.strDllPath____s_
push edx
mov dword [esp + 0x170], ebx
call fcn.00401990
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push eax
call edi
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0046dfd3
test eax, eax
je 0x420474
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esi]
push edx
lea eax, [esp + 0x1c]
push 0x4fe2a0
push eax
call fcn.00401990
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call edi
mov edx, dword [esi]
push edx
lea eax, [esp + 0x1c]
push 0x4fe27c
push eax
call fcn.00401990
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call edi
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp], eax
je 0x420704
push str.NOWCDN_Create
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x420704
mov eax, dword [esi]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00420360
mov eax, dword [eax]
push eax
mov byte [esp + 0x170], 1
call ebx
mov ebx, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x164], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 1
jne 0x420704
mov ecx, dword [ebp]
push str.NOWCDN_UpdateDLL
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x420704
push str._TMP_downenginesdk.zip
lea ecx, [esp + 0x20]
call fcn.00401d30
push str._NOWCDN
lea edx, [esp + 0x24]
push esi
push edx
mov byte [esp + 0x170], 2
call fcn.00402be0
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00401610
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.strZipPath____s__strNewDllPath____s__n
push edx
mov byte [esp + 0x174], 4
call fcn.00401990
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00420360
mov ebx, eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x174], 5
call fcn.00420360
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
push eax
mov byte [esp + 0x17c], 6
call dword [esp + 0x44]
add esp, 0x18
lea ecx, [esp + 0x28]
call fcn.00401640
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 4
call fcn.00401640
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp], 0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi]
push ecx
push eax
lea edx, [esp + 0x1c]
push str.bRet__d___::DeleteFile___s__n
push edx
call fcn.00401990
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call edi
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edx, dword [esi]
mov ecx, dword [esp + 0x20]
push edx
push ecx
push eax
lea edx, [esp + 0x20]
push str.bRet__d___::MoveFile__strNewDllPath:_s__strDllPath:_s__n
push edx
call fcn.00401990
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
call edi
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp], eax
jne 0x42067c
lea ecx, [esp + 0x14]
call fcn.00401640
lea ecx, [esp + 0x20]
call fcn.00401640
lea ecx, [esp + 0x1c]
call fcn.00401640
lea ecx, [esp + 0x18]
call fcn.00401640
or eax, 0xffffffff
jmp 0x420731
push str.NOWCDN_Create
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4206e9
mov esi, dword [esi]
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00420360
mov eax, dword [eax]
push eax
mov byte [esp + 0x170], 7
call edi
add esp, 0xc
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x164], 4
call fcn.00401640
cmp esi, 1
jne 0x4206e9
lea ecx, [esp + 0x14]
call fcn.00401640
lea ecx, [esp + 0x20]
call fcn.00401640
lea ecx, [esp + 0x1c]
call fcn.00401640
lea ecx, [esp + 0x18]
call fcn.00401640
jmp 0x42072f
lea ecx, [esp + 0x14]
call fcn.00401640
lea ecx, [esp + 0x20]
call fcn.00401640
lea ecx, [esp + 0x1c]
call fcn.00401640
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x164], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42072f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.004752ab
add esp, 0x154
ret 4