Function at 0x403a98
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 [0x433024]
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 0x403adb
push str.SysWOW64_
jmp 0x403ae0
push str.System32_
push esi
push eax
call fcn.0041628a
add esp, 0xc
push 0x42ce4c
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 0x403b2b
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 0x403be3
push 0x42ce08
push 0x12f
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc40], eax
cmp eax, ebx
je 0x403be3
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403be3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
cmp eax, ebx
je 0x403be3
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 0x403be3
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 0x403c22
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 0x403cd2
push 0x42ce08
push 0x131
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc38], eax
cmp eax, ebx
je 0x403cd2
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403cd2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
cmp eax, ebx
je 0x403cd2
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 0x403cd2
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 0x403ed5
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.0041628a
push 0x42ce98
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 0x403d48
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 0x403df8
push 0x42ce08
push 0x130
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc38], eax
cmp eax, ebx
je 0x403df8
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403df8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
cmp eax, ebx
je 0x403df8
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 0x403df8
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 0x403e37
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 0x403ed5
push 0x42ce08
push 0x132
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc38], eax
cmp eax, ebx
je 0x403ed5
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x403ed5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc3c], eax
cmp eax, ebx
je 0x403ed5
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 0x403ed5
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.00416201
leave
ret 4