Function at 0x4248d0
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
push 0xffffffffffffffff
push 0x5e49b9
mov eax, dword fs:[0]
push eax
sub esp, 0x5f0
mov eax, dword [0x66a344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5d8], ecx
call fcn.0040bad0
mov ecx, eax
call fcn.00443932
push eax
lea ecx, [ebp - 0x364]
call fcn.00404a20
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x3ac]
call fcn.00404a20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x364]
push ecx
lea ecx, [ebp - 0x394]
call fcn.00404990
mov byte [ebp - 4], 2
lea edx, [ebp - 0x3ac]
push edx
lea ecx, [ebp - 0x37c]
call fcn.00404990
mov byte [ebp - 4], 3
lea eax, [ebp - 0x394]
push eax
call fcn.00442d9d
add esp, 4
lea ecx, [ebp - 0x37c]
push ecx
call fcn.00442d9d
add esp, 4
lea edx, [ebp - 0x37c]
push edx
lea eax, [ebp - 0x394]
push eax
call fcn.00425540
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4249da
lea ecx, [ebp - 0x364]
call fcn.00406b50
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4249da
lea ecx, [ebp - 0x364]
call fcn.00406b50
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5f4], esp
push eax
call fcn.00404a20
mov dword [ebp - 0x5f8], eax
call fcn.0044a6cc
add esp, 0x18
mov ecx, dword [ebp - 0x5d8]
call fcn.004253c0
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004ac380
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x218]
push edx
call fcn.0044a0ff
add esp, 4
push 0x5f7da0
lea ecx, [ebp - 0x34c]
call fcn.00404a20
mov byte [ebp - 4], 4
push 0x5f7da4
lea ecx, [ebp - 0x34c]
call fcn.00416700
push 0x5f7db0
lea ecx, [ebp - 0x34c]
call fcn.00416700
push 0x5f7db4
lea ecx, [ebp - 0x334]
call fcn.00404a20
mov byte [ebp - 4], 5
push 0x5f7db8
lea ecx, [ebp - 0x334]
call fcn.00416700
push 0x5f7dc4
lea ecx, [ebp - 0x334]
call fcn.00416700
lea ecx, [ebp - 0x334]
call fcn.00406b50
push eax
lea ecx, [ebp - 0x34c]
call fcn.00406b50
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x5bc], eax
cmp dword [ebp - 0x5bc], 0
jne 0x424b20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x334]
call fcn.00404b90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34c]
call fcn.00404b90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x37c]
call fcn.00404b90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x394]
call fcn.00404b90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3ac]
call fcn.00404b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x364]
call fcn.00404b90
jmp 0x425313
mov ecx, dword [ebp - 0x5bc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x5dc], eax
mov eax, dword [ebp - 0x5dc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x5c8], eax
mov ecx, dword [ebp - 0x5bc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x5e8], eax
push 0x1869f
push 0x2710
call fcn.004494df
add esp, 8
mov dword [ebp - 0x5e0], eax
mov eax, dword [ebp - 0x5e0]
cdq
push edx
push eax
lea eax, [ebp - 0x514]
push eax
call fcn.004493eb
add esp, 0xc
mov byte [ebp - 4], 6
push 0x5f7dc8
lea ecx, [ebp - 0x218]
push ecx
call fcn.004afd5e
add esp, 8
push 0x5f7dd4
lea edx, [ebp - 0x218]
push edx
call fcn.004afd5e
add esp, 8
lea ecx, [ebp - 0x514]
call fcn.00406b50
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004afd5e
add esp, 8
push 0x5f7dd8
lea ecx, [ebp - 0x218]
push ecx
call fcn.004afd5e
add esp, 8
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424c0c
lea eax, [ebp - 0x218]
push eax
call fcn.0044b79e
add esp, 4
mov ecx, dword [ebp - 0x5c8]
mov dword [ebp - 0x5fc], ecx
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5c0], eax
cmp dword [ebp - 0x5c0], 0xffffffff
je 0x424c81
mov dword [ebp - 0x5e4], 0
push 0
lea eax, [ebp - 0x5e4]
push eax
mov ecx, dword [ebp - 0x5e8]
push ecx
mov edx, dword [ebp - 0x5c8]
push edx
mov eax, dword [ebp - 0x5c0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x5c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x31c], 0
push 0x103
push 0
lea edx, [ebp - 0x31b]
push edx
call fcn.004ac380
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00442cf4
add esp, 8
call fcn.0040bad0
mov ecx, eax
call fcn.00414ec0
call fcn.0040bad0
mov ecx, eax
call fcn.00413d70
mov dword [ebp - 0x5f0], 0
mov dword [ebp - 0x5cc], 0
mov dword [ebp - 0x5b8], 1
mov dword [ebp - 0x5d0], 0
mov dword [ebp - 0x5a8], 0
cmp dword [ebp - 0x5f0], 0
jne 0x424d2e
lea edx, [ebp - 0x5a8]
push edx
push fcn.004248b0
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x3ac]
call fcn.00406b50
push eax
call fcn.0044bddf
add esp, 0x10
push 0x5f7de0
lea ecx, [ebp - 0x5a4]
call fcn.00404a20
mov byte [ebp - 4], 7
push 0x5f7de4
lea ecx, [ebp - 0x3c4]
call fcn.00404a20
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x3dc]
call fcn.00404a20
mov byte [ebp - 4], 9
push 0x5f7de8
lea ecx, [ebp - 0x3dc]
call fcn.00416700
call fcn.0040bad0
mov ecx, eax
call fcn.00413d30
mov dword [ebp - 0x5d4], eax
call fcn.0040bad0
mov ecx, eax
call fcn.00413d50
mov dword [ebp - 0x5c4], eax
mov edx, dword [ebp - 0x5c4]
push edx
lea ecx, [ebp - 0x4fc]
call fcn.00404a20
mov byte [ebp - 4], 0xa
push 0
push 0x5f7e00
lea ecx, [ebp - 0x4fc]
call fcn.00413350
cmp eax, 0xffffffff
je 0x424dd4
mov dword [ebp - 0x5cc], 1
call fcn.0040bad0
mov ecx, eax
call fcn.00415090
test eax, eax
je 0x424dee
mov dword [ebp - 0x5d0], 1
call fcn.0040bad0
mov ecx, eax
call fcn.00415030
test eax, eax
je 0x424e0a
mov dword [ebp - 0x5b8], 1
jmp 0x424e14
mov dword [ebp - 0x5b8], 0
cmp dword [ebp + 0xc], 0
je 0x424e24
mov dword [ebp - 0x5b8], 1
lea ecx, [ebp - 0x5b4]
call fcn.00418990
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x5d4]
push eax
call fcn.004afdb1
add esp, 4
test eax, eax
jbe 0x424f24
push str.5ac5
lea ecx, [ebp - 0x55c]
call fcn.00404a20
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x55c]
push ecx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x55c]
call fcn.00404b90
mov edx, dword [ebp - 0x5d4]
push edx
lea ecx, [ebp - 0x574]
call fcn.00404a20
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x574]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x574]
call fcn.00404b90
push 0x5f7e14
lea ecx, [ebp - 0x484]
call fcn.00404a20
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x484]
push ecx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x484]
call fcn.00404b90
mov edx, dword [ebp - 0x5c4]
push edx
lea ecx, [ebp - 0x3f4]
call fcn.00404a20
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x3f4]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3f4]
call fcn.00404b90
jmp 0x424f90
push str.985f
lea ecx, [ebp - 0x40c]
call fcn.00404a20
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x40c]
push ecx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40c]
call fcn.00404b90
mov edx, dword [ebp - 0x5c4]
push edx
lea ecx, [ebp - 0x424]
call fcn.00404a20
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x424]
call fcn.00404b90
cmp dword [ebp - 0x5cc], 0
je 0x425003
push str.94c1
lea ecx, [ebp - 0x43c]
call fcn.00404a20
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x43c]
call fcn.00404b90
push 0x5f7e38
lea ecx, [ebp - 0x454]
call fcn.00404a20
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x454]
push edx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x454]
call fcn.00404b90
cmp dword [ebp - 0x5b8], 0
jne 0x425076
push str.d170
lea ecx, [ebp - 0x544]
call fcn.00404a20
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x544]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x544]
call fcn.00404b90
push 0x5f7e50
lea ecx, [ebp - 0x46c]
call fcn.00404a20
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x46c]
push ecx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x46c]
call fcn.00404b90
cmp dword [ebp - 0x5d0], 0
jne 0x4250e9
push str.2899
lea ecx, [ebp - 0x49c]
call fcn.00404a20
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x49c]
push edx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x49c]
call fcn.00404b90
push 0x5f7e68
lea ecx, [ebp - 0x4b4]
call fcn.00404a20
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4b4]
call fcn.00404b90
cmp dword [ebp + 0xc], 0
jne 0x425159
push str.18ed
lea ecx, [ebp - 0x4cc]
call fcn.00404a20
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x4cc]
push ecx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4cc]
call fcn.00404b90
push 0x5f7e80
lea ecx, [ebp - 0x4e4]
call fcn.00404a20
mov byte [ebp - 4], 0x19
lea edx, [ebp - 0x4e4]
push edx
lea ecx, [ebp - 0x5b4]
call fcn.004113a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x4e4]
call fcn.00404b90
push 0x5f7e8c
lea ecx, [ebp - 0x52c]
call fcn.00404a20
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x5b4]
push eax
lea ecx, [ebp - 0x52c]
push ecx
lea edx, [ebp - 0x58c]
push edx
call fcn.0044282f
add esp, 0xc
mov dword [ebp - 0x5ec], eax
mov eax, dword [ebp - 0x5ec]
push eax
lea ecx, [ebp - 0x3c4]
call fcn.00404da0
lea ecx, [ebp - 0x58c]
call fcn.00404b90
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x52c]
call fcn.00404b90
push 0x2710
push 1
lea ecx, [ebp - 0x3c4]
call fcn.00406b50
push eax
lea ecx, [ebp - 0x3dc]
call fcn.00406b50
push eax
call fcn.004413fc
add esp, 0x10
mov eax, 0x64
sub eax, dword [ebp - 0x5a8]
cdq
mov ecx, 3
idiv ecx
add eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x5a8], eax
push 0x64
mov edx, dword [ebp - 0x5a8]
push edx
call fcn.004248b0
add esp, 8
mov eax, 0x64
sub eax, dword [ebp - 0x5a8]
cdq
mov ecx, 3
idiv ecx
add eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x5a8], eax
push 0x64
mov edx, dword [ebp - 0x5a8]
push edx
call fcn.004248b0
add esp, 8
les ecx, [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
push 0x64
call fcn.004248b0
add esp, 8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5b4]
call fcn.00404c20
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4fc]
call fcn.00404b90
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3dc]
call fcn.00404b90
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c4]
call fcn.00404b90
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5a4]
call fcn.00404b90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x514]
call fcn.00404b90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x334]
call fcn.00404b90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34c]
call fcn.00404b90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x37c]
call fcn.00404b90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x394]
call fcn.00404b90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3ac]
call fcn.00404b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x364]
call fcn.00404b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c1bd
mov esp, ebp
pop ebp
ret 0xc