Function at 0x4053c0
Capabilities:
Clear file content
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x429db6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x14]
push edx
call fcn.0041ea91
mov eax, dword [0x436fec]
mov dword [esp + 0x230], ebx
mov dword [esp + 0x10], eax
push str.OfficeControl.ocx
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], 1
call fcn.0041ecfc
push eax
lea ecx, [esp + 0x18]
push str._s_s
push ecx
call fcn.0041d922
add esp, 0x10
call fcn.004266fa
mov esi, dword [eax + 0xc]
push str.IMAGE
push 0x87
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x405720
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x405720
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405501
test ebp, ebp
mov esi, ebp
mov dword [esp + 0x18], ebp
jbe 0x4054f3
mov ecx, ebx
lea eax, [esp + 0x18]
sub ecx, esi
push 0
push eax
add ecx, ebp
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [esp + 0x18]
jne 0x4054d7
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041e78a
call fcn.00405280
add esp, 8
lea ecx, [esp + 0x14]
push str.ExifImagePro.ocx
push 0
call fcn.0041ecfc
push eax
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.0041d922
add esp, 0x10
call fcn.004266fa
mov esi, dword [eax + 0xc]
push str.IMAGE
push 0x88
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x405720
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x405720
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4055d6
test ebp, ebp
mov esi, ebp
mov dword [esp + 0x18], ebp
jbe 0x4055c8
mov eax, ebx
lea edx, [esp + 0x18]
sub eax, esi
push 0
push edx
add eax, ebp
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [esp + 0x18]
jne 0x4055ac
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041e78a
call fcn.00405280
add esp, 8
lea ecx, [esp + 0x14]
push str.DwgViewX.dll
push 0
call fcn.0041ecfc
push eax
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.0041d922
add esp, 0x10
call fcn.004266fa
mov esi, dword [eax + 0xc]
push str.IMAGE
push 0x8b
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x405720
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x405720
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4056ab
test ebp, ebp
mov esi, ebp
mov dword [esp + 0x18], ebp
jbe 0x40569d
mov eax, ebx
lea edx, [esp + 0x18]
sub eax, esi
push 0
push edx
add eax, ebp
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [esp + 0x18]
jne 0x405681
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041e78a
call fcn.00405280
add esp, 8
lea ecx, [esp + 0x14]
push str.AcroPDF.dll
push 0
call fcn.0041ecfc
push eax
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.0041d922
add esp, 0x10
call fcn.004266fa
mov esi, dword [eax + 0xc]
push str.IMAGE
push 0x8c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x405720
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40574c
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call fcn.0041ea1d
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.0041ea1d
xor eax, eax
jmp 0x4057e9
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4057a4
test ebp, ebp
mov esi, ebp
mov dword [esp + 0x18], ebp
jbe 0x405796
mov eax, ebx
lea edx, [esp + 0x18]
sub eax, esi
push 0
push edx
add eax, ebp
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [esp + 0x18]
jne 0x40577a
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.0041e78a
call fcn.00405280
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call fcn.0041ea1d
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.0041ea1d
mov eax, 1
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x224
ret