Function at 0x4431d0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0xc], 0
cmp dword [0x5c2444], 0
je 0x4431f3
lea eax, [ebp - 8]
push eax
call dword [0x5c2444]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4432b3
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x4432b3
lea ecx, [ebp - 0x14]
call fcn.0040ee90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x57b320
lea edx, [ebp - 0x14]
push edx
call fcn.004ea900
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.004a6030
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
call fcn.0041c8e0
lea ecx, [ebp - 0x2c]
call fcn.0040f740
lea ecx, [ebp - 0x14]
call fcn.0041cb20
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x443294
push 4
push 0
lea ecx, [ebp - 0x14]
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4432ab
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x14]
call fcn.0040f740
mov eax, dword [ebp - 0x30]
jmp 0x4433c5
lea ecx, [ebp - 0x14]
call fcn.0040f740
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 5
jge 0x443393
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x24], eax
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x443332
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4432ba
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x443378
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4432ba
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x443393
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x4433a7
push 2
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0xc], 0
je 0x4433c0
cmp dword [0x5c2448], 0
je 0x4433c0
mov eax, dword [ebp - 8]
push eax
call dword [0x5c2448]
mov eax, 1
mov esp, ebp
pop ebp
ret