Function at 0x41ffa0
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x58
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
mov ebp, dword [esp + 0x64]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebx
cmp ebp, ebx
jne 0x420155
mov dword [esp + 0xc], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
push edi
sar edx, 8
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x42014b
xor ebp, ebp
mov dword [esp + 0x18], ebp
xor eax, eax
push 0x3e
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call fcn.00451660
add esp, 0xc
cmp ebx, edi
jb 0x420013
call fcn.004533f0
mov eax, dword [esi + 0xc]
cmp dword [eax + ebp], 0x64
je 0x42011d
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 ebx, eax
jb 0x42003f
call fcn.004533f0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp]
push edx
lea eax, [esp + 0x28]
push str.RES_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x47e1e8
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42011d
mov eax, dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x42017c
mov ecx, dword [esp + 0x10]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42017c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x20], eax
test eax, eax
je 0x42017c
push ebp
call fcn.00451b22
add esp, 4
push ebx
mov ecx, esi
mov edi, eax
call fcn.0041fea0
push ebx
mov ecx, esi
mov dword [eax + 4], edi
call fcn.0041fea0
cmp dword [eax + 4], 0
je 0x42017c
push ebp
push 0
push ebx
mov ecx, esi
call fcn.0041fea0
mov edx, dword [eax + 4]
push edx
call fcn.00451660
mov eax, dword [esp + 0x2c]
add esp, 0xc
push ebp
push eax
push ebx
mov ecx, esi
call fcn.0041fea0
mov ecx, dword [eax + 4]
push ecx
call fcn.004516e0
add esp, 0xc
push ebx
mov ecx, esi
call fcn.0041fea0
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov edi, edx
shr edi, 0x1f
inc ebx
add ebp, 0x216
add edi, edx
mov dword [esp + 0x18], ebp
cmp ebx, edi
jb 0x41fff3
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
jmp 0x420180
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x41ffcf
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004522e0
add esp, 0x58
ret
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x420193
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420193
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x14], 0
jne 0x42030a
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 0x42030a
xor ebx, ebx
cmp edi, eax
jb 0x4201c8
call fcn.004533f0
mov eax, dword [esi + 0xc]
xor ebp, ebp
cmp dword [ebx + eax + 4], ebp
je 0x420202
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 0x4201f2
call fcn.004533f0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebx + 4]
push edx
call fcn.00451a45
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 0x420222
call fcn.004533f0
mov eax, dword [esi + 0xc]
add eax, ebx
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x420263
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 0x420255
call fcn.004533f0
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 0x420283
call fcn.004533f0
mov edx, dword [esi + 0xc]
push 0x4858e4
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 0x4202b6
call fcn.004533f0
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 0x4202dd
call fcn.004533f0
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 0x4201c8
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004522e0
add esp, 0x58
ret