Function at 0x414ed0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x418cc0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4212a8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push str.DLLTYPE
push 0x72
push esi
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
xor ebp, ebp
cmp edi, ebp
jne 0x414f69
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x414f2f
mov eax, dword [esp + 0x34]
push eax
call fcn.0040304f
add esp, 4
cmp dword [esp + 0x64], esi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
jb 0x414f53
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040304f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, ebp
jne 0x414fc9
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x414f8f
mov edx, dword [esp + 0x34]
push edx
call fcn.0040304f
add esp, 4
cmp dword [esp + 0x64], esi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
jb 0x414f53
mov eax, dword [esp + 0x50]
push eax
call fcn.0040304f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x18], esi
jne 0x415031
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x414ff3
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0040304f
add esp, 4
cmp dword [esp + 0x64], esi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
jb 0x414f53
mov edx, dword [esp + 0x50]
push edx
call fcn.0040304f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push esi
call ebp
test ebp, ebp
mov edi, eax
jne 0x415068
lea esi, [esp + 0x30]
call fcn.00401270
lea esi, [esp + 0x4c]
call fcn.00401270
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0x30]
call fcn.00414e20
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
jne 0x4150d2
mov eax, dword [esp + 0x34]
mov esi, 8
cmp dword [esp + 0x48], esi
jae 0x41508e
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x4150a3
lea eax, [esp + 0x34]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call ebp
push 0
mov esi, eax
lea eax, [esp + 0x20]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x4c]
call fcn.00414e20
test eax, eax
jne 0x415136
mov eax, dword [esp + 0x50]
mov esi, 8
cmp dword [esp + 0x64], esi
jae 0x4150f2
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x64], esi
mov eax, dword [esp + 0x50]
jae 0x415107
lea eax, [esp + 0x50]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call ebp
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea esi, [esp + 0x30]
call fcn.00401270
lea esi, [esp + 0x4c]
call fcn.00401270
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret