Function at 0x415f30
Capabilities:
Check if file exists
Delete file
Get common file path
Get disk information
Write file on windows

Disassembly:
sub esp, 0x850
mov eax, dword [0x44a2b8]
xor eax, esp
mov dword [esp + 0x84c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [0x4514bc], edi
mov ebp, 4
mov ebx, 2
mov dword [esp + 0x24], 0x8c004006
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1a], 1
mov byte [esp + 0x19], bl
mov dword [esp + 0x10], edi
je 0x415f7d
mov dword [esp + 0x10], 1
cmp dword [0x4514c0], edi
je 0x415f89
or dword [esp + 0x10], ebx
cmp dword [0x4514c4], edi
je 0x415f95
or dword [esp + 0x10], ebp
cmp dword [0x4514d8], edi
je 0x415fa2
or dword [esp + 0x10], 8
cmp dword [0x4514c8], edi
je 0x415faf
or dword [esp + 0x10], 0x10
cmp dword [0x4514cc], edi
je 0x415fbc
or dword [esp + 0x10], 0x20
push 0x206
lea eax, [esp + 0x24a]
push edi
push eax
mov word [esp + 0x250], di
call fcn.00429d70
push 0x206
lea ecx, [esp + 0x45e]
push edi
push ecx
mov word [esp + 0x464], di
call fcn.00429d70
push 0x44f018
push 0x441d18
push 0x208
lea edx, [esp + 0x268]
push 0x104
push edx
call fcn.00425032
add esp, 0x2c
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [esp + 0x244]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x416030
sub eax, edx
sar eax, 1
mov esi, 0x5c
je 0x416097
cmp word [esp + eax*2 + 0x242], si
je 0x416070
lea ecx, [esp + 0x244]
push ecx
push 0x44210c
push 0x208
push 0x104
lea edx, [esp + 0x45c]
push edx
jmp 0x41608f
lea eax, [esp + 0x244]
push eax
push 0x441d18
push 0x208
push 0x104
lea ecx, [esp + 0x45c]
push ecx
call fcn.00425032
add esp, 0x14
lea edx, [esp + 0x44c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, ebx
je 0x41611c
sub eax, 1
je 0x4160bd
sub eax, 1
jne 0x416124
or dword [esp + 0x10], 0xc0
jmp 0x416124
push 0x206
lea eax, [esp + 0x65a]
push edi
push eax
mov word [esp + 0x660], di
call fcn.00429d70
add esp, 0xc
push 0x104
lea ecx, [esp + 0x658]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
movzx edx, word [0x44f018]
movzx eax, word [esp + 0x654]
sub eax, edx
je 0x416115
cmp eax, 0xffffffe0
je 0x416115
cmp eax, 0x20
je 0x416115
or dword [esp + 0x10], 0x80
jmp 0x416124
or dword [esp + 0x10], 0x40
jmp 0x416124
or dword [esp + 0x10], 0x100
push 1
push 0x1a
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4161fd
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x416143
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x3a], si
lea ecx, [esp + 0x3c]
jne 0x416171
push ecx
push 0x443318
push 0x208
push 0x104
mov edx, ecx
push edx
jmp 0x416186
lea eax, [esp + 0x3c]
push eax
push str._sTencentQQCRMDR
push 0x208
push 0x104
push ecx
call fcn.00425032
add esp, 0x14
lea ecx, [esp + 0x3c]
call fcn.0041db10
lea edx, [esp + 0x3c]
push edx
push str._s_st072500003.dr
push 0x208
mov eax, edx
push 0x104
push eax
call fcn.00425032
add esp, 0x14
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4161d0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x3c]
push 0x44338c
push eax
call fcn.00424ba6
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x416204
push 0x40
push 0x443394
push edi
mov ecx, 0x4433a0
call fcn.00407d60
add esp, 0xc
xor eax, eax
jmp 0x416494
mov ecx, dword [esp + 0x24]
push ecx
call sub.WS2_32.dll_htonl
mov edx, dword [esp + 0x2c]
push edx
mov dword [esp + 0x28], eax
call sub.WS2_32.dll_htons
mov ecx, dword [esp + 0x10]
movzx eax, ax
push ecx
mov dword [esp + 0x30], eax
call sub.WS2_32.dll_htons
movzx edx, ax
mov eax, dword [0x4514d4]
cmp eax, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], 0xbc005001
mov dword [esp + 0x28], ebp
mov byte [esp + 0x18], 6
mov byte [esp + 0x1b], bl
mov dword [esp + 0x1c], edi
jne 0x416260
mov dword [esp + 0x1c], 1
jmp 0x416277
cmp eax, 1
jne 0x41626b
mov dword [esp + 0x1c], ebx
jmp 0x416277
cmp eax, ebx
jne 0x416277
mov dword [esp + 0x1c], 3
push 0xbc005001
call sub.WS2_32.dll_htonl
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
push eax
call sub.WS2_32.dll_htons
mov edx, dword [esp + 0x1c]
movzx ecx, ax
push edx
mov dword [esp + 0x2c], ecx
call sub.WS2_32.dll_htons
cmp dword [0x44f014], edi
movzx eax, ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 0x8c004009
mov dword [esp + 0x30], ebp
mov byte [esp + 0x16], 1
mov byte [esp + 0x17], bl
je 0x4162cb
mov eax, 1
jmp 0x4162e6
mov ecx, dword [0x4514bc]
cmp ecx, edi
mov eax, ebx
jne 0x4162de
mov eax, 6
jmp 0x4162e6
cmp ecx, 1
jne 0x4162e6
lea eax, [ecx + 9]
cmp dword [0x451500], edi
je 0x4162f3
or eax, 0x10
jmp 0x41630f
mov ecx, dword [0x4514ec]
or eax, 0x20
cmp ecx, edi
jne 0x416305
or eax, 0x40
jmp 0x41630f
cmp ecx, 1
jne 0x41630f
or eax, 0x80
cmp dword [0x451508], edi
je 0x41631e
or eax, 0x100
jmp 0x41633e
mov ecx, dword [0x4514f0]
or eax, 0x200
cmp ecx, edi
jne 0x416334
or eax, 0x400
jmp 0x41633e
cmp ecx, 1
jne 0x41633e
or eax, 0x800
cmp dword [0x451504], edi
je 0x41634d
or eax, 0x1000
jmp 0x416371
mov ecx, dword [0x4514f4]
or eax, 0x2000
cmp ecx, edi
mov dword [esp + 0x20], eax
jne 0x416367
or eax, 0x4000
jmp 0x416371
cmp ecx, 1
jne 0x416375
or eax, 0x8000
mov dword [esp + 0x20], eax
push 0x8c004009
call sub.WS2_32.dll_htonl
mov ecx, dword [esp + 0x30]
push ecx
mov dword [esp + 0x38], eax
call sub.WS2_32.dll_htons
movzx edx, ax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x34], edx
call sub.WS2_32.dll_htons
push esi
push 1
movzx ecx, ax
lea edx, [esp + 0x2c]
push ebp
push edx
mov dword [esp + 0x30], ecx
call fcn.00424d18
push esi
push 1
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.00424d18
push esi
push 1
lea ecx, [esp + 0x42]
push 1
push ecx
call fcn.00424d18
push esi
push 1
lea edx, [esp + 0x51]
push 1
push edx
call fcn.00424d18
add esp, 0x40
push esi
push 1
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00424d18
push esi
push 1
lea ecx, [esp + 0x50]
push ebp
push ecx
call fcn.00424d18
push esi
push 1
lea edx, [esp + 0x50]
push ebx
push edx
call fcn.00424d18
push esi
push 1
lea eax, [esp + 0x50]
push 1
push eax
call fcn.00424d18
add esp, 0x40
push esi
push 1
lea ecx, [esp + 0x23]
push 1
push ecx
call fcn.00424d18
push esi
push 1
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.00424d18
push esi
push 1
lea eax, [esp + 0x5c]
push ebp
push eax
call fcn.00424d18
push esi
push 1
lea ecx, [esp + 0x68]
push ebx
push ecx
call fcn.00424d18
add esp, 0x40
push esi
push 1
lea edx, [esp + 0x1e]
push 1
push edx
call fcn.00424d18
push esi
push 1
lea eax, [esp + 0x2f]
push 1
push eax
call fcn.00424d18
push esi
push 1
lea ecx, [esp + 0x48]
push ebx
push ecx
call fcn.00424d18
push esi
call fcn.00424e0c
add esp, 0x34
mov eax, 1
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424e88
add esp, 0x850
ret