Function at 0x4194c0
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48865f
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x4b1070]
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 edi, ecx
lea ecx, [ebp - 0x274]
call fcn.00429f10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0045cfa0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.libNetwork.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x274]
call fcn.00429fa0
cmp dword [0x4b72b4], 0
jne 0x419590
push 4
call fcn.0042ed98
add esp, 4
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 1
mov dword [eax], 0
mov dword [eax], 0
mov byte [ebp - 4], 0
mov dword [0x4b72b4], eax
mov ax, word [0x4b72bc]
test ax, ax
jne 0x4195a9
sub esp, 8
call fcn.0041fb10
mov word [0x4b72bc], ax
movzx eax, ax
push eax
push 0x37
push str.http:__int.qudong.updrv.com_api_int_DTL8_Tray_ClientConfig.json
lea eax, [ebp - 0x248]
push str._s_a_du_d
push eax
call fcn.00416c30
add esp, 0x14
mov byte [ebp - 4], 2
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x274]
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x254]
test ecx, ecx
je 0x419604
lea eax, [ebp - 0x294]
push eax
push str.E215642D_439F_40b7_8728_1466CC621C19
call ecx
mov eax, dword [ebp - 0x290]
cmp dword [ebp - 0x234], 0x10
lea esi, [ebp - 0x248]
mov dword [ebp - 0x29c], 0
cmovae esi, dword [ebp - 0x248]
mov dword [ebp - 0x298], 0
test eax, eax
jne 0x419637
xor bl, bl
jmp 0x419855
push str.QueryInterface
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x419671
push 0x688a28be
call eax
test eax, eax
je 0x419671
push 0
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x29c]
push ecx
push esi
push dword [ebp - 0x294]
call eax
mov bl, al
jmp 0x419673
xor bl, bl
test bl, bl
je 0x419828
mov edx, str.Tray
lea ecx, [ebp - 0x28c]
call fcn.0041c710
mov edx, eax
mov byte [ebp - 4], 5
cmp dword [edx + 0x14], 8
jb 0x419699
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [edx], ax
jne 0x4196d3
xor ecx, ecx
jmp 0x4196ef
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4196e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.004185d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28c]
call fcn.0042b1a0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
test eax, eax
jne 0x419745
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
call fcn.0042acf0
push 0x20
push str.int_DTL8_Tray_ClientConfig.json
lea ecx, [ebp - 0x230]
call fcn.0041b660
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
test eax, eax
je 0x41978d
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
mov dword [ebp - 0x2a0], 0
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp - 0x298]
push dword [ebp - 0x29c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x41980b
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00418be0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x419855
mov eax, dword [eax + 0x24]
test eax, eax
je 0x419841
push dword [ebp - 0x294]
call eax
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x419890
mov ecx, dword [ebp - 0x24c]
test ecx, ecx
je 0x419871
call ecx
mov eax, dword [ebp - 0x25c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x258], xmm0
test eax, eax
je 0x419890
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x25c], 0
mov ecx, edi
call fcn.00419930
push 0
movzx eax, bl
push eax
push 0x467
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x294]
call fcn.0042a050
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x234]
cmp eax, 0x10
jb 0x4198db
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00404de0
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x274]
call fcn.00429f40
mov al, bl
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.0042ed56
mov esp, ebp
pop ebp
ret