Function at 0x403a8c
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc40
mov eax, dword [0x42f064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [eax + 0xb8], bl
lea eax, [ebp - 0x20c]
je 0x403acf
push str.SysWOW64_
jmp 0x403ad4
push str.System32_
push esi
push eax
call fcn.004146f5
add esp, 0xc
push 0x429e24
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x403b1f
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x403bd7
push 0x429de0
push 0x12f
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc40], eax
cmp eax, ebx
je 0x403bd7
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403bd7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
cmp eax, ebx
je 0x403bd7
push dword [ebp - 0xc40]
push ebx
call esi
push eax
call edi
push ebx
push 4
push 2
push ebx
push ebx
mov dword [ebp - 0xc40], eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc38], eax
cmp eax, 0xffffffff
je 0x403bd7
push ebx
lea ecx, [ebp - 0xc3c]
push ecx
push dword [ebp - 0xc40]
push dword [ebp - 0xc3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.UdAntiCap32.exe
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403c16
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403cc6
push 0x429de0
push 0x131
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc38], eax
cmp eax, ebx
je 0x403cc6
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403cc6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
cmp eax, ebx
je 0x403cc6
push dword [ebp - 0xc38]
push ebx
call esi
push eax
call edi
push ebx
push 4
push 2
push ebx
push ebx
mov dword [ebp - 0xc38], eax
push 0x40000000
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc40], eax
cmp eax, 0xffffffff
je 0x403cc6
push ebx
lea ecx, [ebp - 0xc38]
push ecx
push dword [ebp - 0xc38]
push dword [ebp - 0xc3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb8], bl
je 0x403ec9
push 0x104
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.System32_
lea eax, [ebp - 0xc34]
push 0x104
push eax
call fcn.004146f5
push 0x429e70
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x824]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403d3c
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403dec
push 0x429de0
push 0x130
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc38], eax
cmp eax, ebx
je 0x403dec
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403dec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
cmp eax, ebx
je 0x403dec
push dword [ebp - 0xc38]
push ebx
call esi
push eax
call edi
push ebx
push 4
push 2
push ebx
push ebx
mov dword [ebp - 0xc38], eax
push 0x40000000
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc40], eax
cmp eax, 0xffffffff
je 0x403dec
push ebx
lea ecx, [ebp - 0xc38]
push ecx
push dword [ebp - 0xc38]
push dword [ebp - 0xc3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.UdAntiCap64.exe
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403e2b
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403ec9
push 0x429de0
push 0x132
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc38], eax
cmp eax, ebx
je 0x403ec9
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403ec9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
cmp eax, ebx
je 0x403ec9
push dword [ebp - 0xc38]
push ebx
call esi
push eax
call edi
push ebx
push 4
push 2
push ebx
push ebx
mov edi, eax
push 0x40000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403ec9
push ebx
lea eax, [ebp - 0xc38]
push eax
push edi
push dword [ebp - 0xc3c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414657
leave
ret 4