Function at 0x42ee80
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x74
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
push ebx
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ebx
cmp edi, ebx
je 0x42ef07
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42eed3
sub eax, edx
sar eax, 1
je 0x42ef07
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x42ef0b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00460c80
add esp, 0x74
ret
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov edi, edx
push ebp
xor ebp, ebp
shr edi, 0x1f
add edi, edx
mov dword [esp + 0x20], ebp
je 0x42f2e0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
push 0x3e
lea ecx, [esp + 0x46]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x4c], ax
call fcn.00460000
add esp, 0xc
mov dword [esp + 0x2c], ebx
cmp ebp, edi
jb 0x42ef5b
call fcn.004624bf
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
cmp dword [eax + edx], 0x64
jne 0x42f2ac
mov dword [esp + 0x28], ebx
xor edi, edi
push edi
lea ecx, [esp + 0x44]
push str.DOC_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0x493728
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42efb6
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
inc edi
add ebx, eax
cmp edi, 0x400
jb 0x42ef72
push ebx
call fcn.004604c2
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x42f1a9
push 0x4000000
call fcn.004604c2
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 1
test eax, eax
je 0x42f2ea
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x42f00e
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov ebx, dword [esp + 0x10]
lea edx, [ebx + ecx + 0xc]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x42f045
call fcn.004624bf
mov edx, dword [esi + 0xc]
lea eax, [ebx + edx + 0xc]
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f050
mov ecx, dword [esi + 0x10]
sub eax, edi
sar eax, 1
sub ecx, edx
mov edi, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x42f080
call fcn.004624bf
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add edx, edi
cmp word [eax + edx*2 + 0xa], 0x5c
je 0x42f0c3
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x42f0b0
call fcn.004624bf
mov ecx, dword [esi + 0xc]
push 0x49bc48
lea edx, [ebx + ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x42f0e3
call fcn.004624bf
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, ebx
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x42f105
call fcn.004624bf
mov edi, dword [esi + 0xc]
mov ebp, dword [esp + 0x10]
add edi, ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [ebx + ebp + 0xc]
push edx
push str._s_x08.tmp
add edi, 0xc
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ebp, ebp
mov edi, edi
push ebp
lea eax, [esp + 0x44]
push str.DOC_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0x493728
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x42f2a6
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x42f2ea
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42f2ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x42f2ea
cmp dword [esp + 0x2c], 0
je 0x42f210
mov ebx, dword [esp + 0x24]
jmp 0x42f21b
push ebx
push 0
push edi
call fcn.00460000
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0xc
cmp ebp, eax
jb 0x42f1d5
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edx + ecx + 4], edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x42f200
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edx + ecx + 8], ebx
jmp 0x42f12c
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea ebx, [edx + ecx]
push edi
push eax
push ebx
call fcn.00460080
mov edx, dword [esp + 0x3c]
push 0x20
push edx
push edi
push ebx
call fcn.00437020
add esp, 0x1c
cmp dword [esp + 0x2c], 0
je 0x42f27c
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x42f25d
call fcn.004624bf
mov eax, dword [esi + 0xc]
xor ecx, ecx
cmp ecx, ebp
mov ecx, dword [esp + 0x10]
sbb edx, edx
neg edx
push edx
push edi
lea edx, [ecx + eax + 0xc]
push ebx
push edx
call fcn.0042e690
add esp, 0x10
mov eax, dword [esp + 0x3c]
add dword [esp + 0x28], edi
test eax, eax
je 0x42f299
mov ecx, dword [esp + 0x34]
push ecx
push edi
push 0
call eax
add esp, 0xc
test al, al
je 0x42f2ea
inc ebp
cmp ebp, 0x400
jb 0x42f130
mov ebp, dword [esp + 0x20]
xor ebx, ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
add dword [esp + 0x18], 0x10b
add dword [esp + 0x10], 0x216
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov edi, edx
shr edi, 0x1f
inc ebp
add edi, edx
mov dword [esp + 0x20], ebp
cmp ebp, edi
jb 0x42ef37
mov dword [esp + 0x1c], 1
jmp 0x42f2ec
xor ebx, ebx
cmp dword [esp + 0x38], ebx
je 0x42f301
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42f301
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x1c], ebx
jne 0x42f475
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x42f475
cmp edi, eax
jb 0x42f333
call fcn.004624bf
mov eax, dword [esi + 0xc]
xor ebp, ebp
cmp dword [ebx + eax + 4], ebp
je 0x42f36d
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42f35d
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + ecx + 4]
push edx
call fcn.004603e5
add esp, 4
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42f38d
call fcn.004624bf
mov eax, dword [esi + 0xc]
add eax, ebx
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x42f3ce
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x42f3c0
call fcn.004624bf
mov edx, dword [esi + 0xc]
lea eax, [ebx + edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x42f3ee
call fcn.004624bf
mov edx, dword [esi + 0xc]
push 0x49c0a0
lea eax, [ebx + edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x42f421
call fcn.004624bf
mov edx, dword [esi + 0xc]
mov dword [ebx + edx + 4], ebp
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x42f448
call fcn.004624bf
mov ecx, dword [esi + 0xc]
mov dword [ebx + ecx + 8], ebp
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x216
cmp edi, eax
jb 0x42f333
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00460c80
add esp, 0x74
ret