Function at 0x402190
Capabilities:
Delete file
Extract resource via kernel32 functions
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b5cc
mov eax, dword fs:[0]
push eax
mov eax, 0x12884
call fcn.004f3e40
mov eax, dword [0x55c168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x12890]
mov dword [ebp - 4], 1
call fcn.00406a5d
mov byte [ebp - 4], 2
call fcn.004060f4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4021f2
push 0x80004005
call fcn.004012e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x12874], eax
mov byte [ebp - 4], 3
call fcn.004060f4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402222
push 0x80004005
call fcn.004012e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x12870], edi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x12874]
push str._s_s.Z
push eax
mov byte [ebp - 4], 4
call fcn.004020d0
mov esi, dword [ebp - 0x12874]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x1001
push esi
lea ecx, [ebp - 0x12890]
call fcn.00406f72
test eax, eax
je 0x402342
movzx ecx, word [ebp + 0xc]
mov edi, dword [0x55d660]
push 0x518d68
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x1287c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp - 0x12878], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp - 0x12878]
push eax
push edx
lea ecx, [ebp - 0x12890]
call fcn.00406794
mov eax, dword [ebp - 0x1287c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x12890]
call fcn.004069f8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push edx
lea eax, [ebp - 0x12870]
push str._s_s.exe
push eax
call fcn.004020d0
add esp, 0x10
lea ecx, [ebp - 0x1286c]
call fcn.00404100
mov edi, dword [ebp - 0x12870]
push edi
push esi
lea ecx, [ebp - 0x1286c]
mov byte [ebp - 4], 5
call fcn.004044c0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1286c]
mov byte [ebp - 4], 4
call fcn.004045f0
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402362
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402382
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x12890]
mov byte [ebp - 4], 1
call fcn.00406bcb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f30e9
mov esp, ebp
pop ebp
ret