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

Disassembly:
sub esp, 0x38
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x44]
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x41c20a
mov dword [esp + 8], edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
push ebp
je 0x41c04e
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor ecx, ecx
mov byte [esp + 0x24], 0
mov dword [esp + 0x25], ecx
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], ecx
mov dword [esp + 0x31], ecx
mov dword [esp + 0x35], ecx
mov dword [esp + 0x39], ecx
mov dword [esp + 0x3d], ecx
mov word [esp + 0x41], cx
mov byte [esp + 0x43], cl
cmp edi, eax
jb 0x41bf1a
call fcn.0044c1d8
mov eax, dword [esi + 0xc]
cmp dword [ebx + eax], 0x64
je 0x41c022
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41bf48
call fcn.0044c1d8
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebx]
push edx
lea eax, [esp + 0x28]
push str.RES_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push str.DATA
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
je 0x41c022
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41c056
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c056
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x20], eax
test eax, eax
je 0x41c056
push ebx
call fcn.0044a002
add esp, 4
push edi
mov ecx, esi
mov ebp, eax
call fcn.0041be10
push edi
mov ecx, esi
mov dword [eax + 4], ebp
call fcn.0041be10
cmp dword [eax + 4], 0
je 0x41c056
push ebx
push 0
push edi
mov ecx, esi
call fcn.0041be10
mov edx, dword [eax + 4]
push edx
call fcn.00449a70
mov eax, dword [esp + 0x2c]
add esp, 0xc
push ebx
push eax
push edi
mov ecx, esi
call fcn.0041be10
mov ecx, dword [eax + 4]
push ecx
call fcn.00449bc0
add esp, 0xc
push edi
mov ecx, esi
call fcn.0041be10
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc edi
add ebx, 0x111
add eax, edx
mov dword [esp + 0x18], ebx
cmp edi, eax
jb 0x41bee5
mov dword [esp + 0x14], 1
cmp dword [esp + 0x1c], 0
je 0x41c06c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41c06c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x14], 0
jne 0x41c1f3
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x41c1f3
xor ebp, ebp
cmp edi, eax
jb 0x41c0a3
call fcn.0044c1d8
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp dword [eax + ebp + 4], ebx
je 0x41c0df
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41c0cf
call fcn.0044c1d8
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp + 4]
push edx
call fcn.00449f25
add esp, 4
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41c101
call fcn.0044c1d8
mov eax, dword [esi + 0xc]
add eax, ebp
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41c144
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x41c136
call fcn.0044c1d8
mov edx, dword [esi + 0xc]
lea eax, [edx + ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x41c166
call fcn.0044c1d8
mov edx, dword [esi + 0xc]
push 0x46db5c
lea eax, [edx + ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x41c19b
call fcn.0044c1d8
mov edx, dword [esi + 0xc]
mov dword [edx + ebp + 4], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x41c1c4
call fcn.0044c1d8
mov ecx, dword [esi + 0xc]
mov dword [ecx + ebp + 8], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xf00f00f1
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebp, 0x111
cmp edi, eax
jb 0x41c0a3
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00449ba6
add esp, 0x38
ret
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 8], eax
cmp eax, edi
jne 0x41bebe
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00449ba6
add esp, 0x38
ret