Function at 0x436f80
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
push ebx
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x437280
mov dword [esp + 0xc], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
push ebp
push edi
sar edx, 8
mov edi, edx
xor ebp, ebp
shr edi, 0x1f
add edi, edx
mov dword [esp + 0x20], ebp
je 0x4373dd
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
nop
push 0x3e
lea eax, [esp + 0x46]
xor edx, edx
push ebx
push eax
mov word [esp + 0x4c], dx
call fcn.00465ec0
add esp, 0xc
mov dword [esp + 0x2c], ebx
cmp ebp, edi
jb 0x437024
call fcn.0046837f
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [edx + ecx], 0x64
jne 0x4373a9
mov dword [esp + 0x28], ebx
xor edi, edi
jmp 0x437040
push edi
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 0x4994c8
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x437084
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
inc edi
add ebx, eax
cmp edi, 0x400
jb 0x437040
push ebx
call fcn.00466382
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4372a6
push 0x4000000
call fcn.00466382
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 1
test eax, eax
je 0x4373e7
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 ebp, ecx
jb 0x4370dc
call fcn.0046837f
mov edx, dword [esi + 0xc]
mov ebx, dword [esp + 0x10]
lea eax, [edx + ebx + 0xc]
push eax
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 ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x437113
call fcn.0046837f
mov edx, dword [esi + 0xc]
lea eax, [ebx + edx + 0xc]
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437120
mov ecx, dword [esi + 0x10]
sub eax, edi
sar eax, 1
mov edi, eax
sub ecx, edx
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x437150
call fcn.0046837f
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
add ecx, edi
cmp word [eax + ecx*2 + 0xa], 0x5c
je 0x437193
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 0x437180
call fcn.0046837f
mov ecx, dword [esi + 0xc]
push 0x4a18f0
lea edx, [ecx + ebx + 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 0x4371b3
call fcn.0046837f
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 0x4371d5
call fcn.0046837f
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 0x4994c8
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4373a3
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4373e7
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4373e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4373e7
cmp dword [esp + 0x2c], 0
je 0x43730d
mov ebx, dword [esp + 0x24]
jmp 0x437318
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x436fd2
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00466b40
add esp, 0x74
ret
push ebx
push 0
push edi
call fcn.00465ec0
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
add esp, 0xc
cmp ebp, ecx
jb 0x4372d2
call fcn.0046837f
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
mov dword [edx + eax + 4], edi
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 ebp, ecx
jb 0x4372fd
call fcn.0046837f
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
mov dword [edx + eax + 8], ebx
jmp 0x4371fc
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea ebx, [edx + ecx]
push edi
push eax
push ebx
call fcn.00465f40
mov edx, dword [esp + 0x3c]
push 0x20
push edx
push edi
push ebx
call fcn.0043ce30
add esp, 0x1c
cmp dword [esp + 0x2c], 0
je 0x437379
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 0x43735a
call fcn.0046837f
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, [eax + ecx + 0xc]
push ebx
push edx
call fcn.004369b0
add esp, 0x10
mov eax, dword [esp + 0x3c]
add dword [esp + 0x28], edi
test eax, eax
je 0x437396
mov ecx, dword [esp + 0x34]
push ecx
push edi
push 0
call eax
add esp, 0xc
test al, al
je 0x4373e7
inc ebp
cmp ebp, 0x400
jb 0x437200
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 0x437000
mov dword [esp + 0x1c], 1
jmp 0x4373e9
xor ebx, ebx
cmp dword [esp + 0x38], ebx
je 0x4373fe
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4373fe
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x1c], ebx
jne 0x437572
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 0x437572
cmp edi, eax
jb 0x437430
call fcn.0046837f
mov eax, dword [esi + 0xc]
xor ebp, ebp
cmp dword [ebx + eax + 4], ebp
je 0x43746a
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 0x43745a
call fcn.0046837f
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebx + 4]
push edx
call fcn.004662a5
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 0x43748a
call fcn.0046837f
mov eax, dword [esi + 0xc]
add eax, ebx
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4374cb
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 0x4374bd
call fcn.0046837f
mov edx, dword [esi + 0xc]
lea eax, [edx + ebx + 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 0x4374eb
call fcn.0046837f
mov edx, dword [esi + 0xc]
push 0x4a1f68
lea eax, [edx + ebx + 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 0x43751e
call fcn.0046837f
mov edx, dword [esi + 0xc]
mov dword [edx + ebx + 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 0x437545
call fcn.0046837f
mov ecx, dword [esi + 0xc]
mov dword [ecx + ebx + 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 0x437430
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.00466b40
add esp, 0x74
ret