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

Disassembly:
push 0xffffffffffffffff
push 0x519556
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56c3c0]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x100]
mov esi, dword [esp + 0x104]
xor ebx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebx
cmp ebp, ebx
je 0x481354
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x481270
sub eax, edx
sar eax, 1
je 0x481354
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x481358
call fcn.0049f0da
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4812b2
push 0x80004005
call fcn.0044b810
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebp
lea ecx, [esp + 0x18]
push str.error_loadlibrary__s_
push ecx
mov dword [esp + 0x104], ebx
call fcn.0044ed60
mov esi, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push esi
call fcn.004a2967
push 3
lea edx, [esp + 0x30]
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edx
call fcn.00458760
mov eax, dword [esp + 0x28]
push eax
mov byte [esp + 0xfc], 1
call fcn.00468970
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
add esp, 4
cmp eax, ecx
je 0x481326
push eax
call fcn.004d5b05
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0xf8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48134d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x481692
mov dword [esp + 0x18], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x7aba01eb
imul ecx
sar edx, 8
mov edi, edx
shr edi, 0x1f
add edi, edx
je 0x4814e0
xor ebp, ebp
mov dword [esp + 0x24], ebp
jmp 0x481380
xor ecx, ecx
push 0x3e
push ecx
lea edx, [esp + 0xb6]
push edx
mov word [esp + 0xb8], cx
call fcn.004d5720
add esp, 0xc
cmp ebx, edi
jb 0x4813a6
call fcn.004d84ce
mov eax, dword [esi + 0xc]
cmp dword [eax + ebp], 0x64
je 0x4814b2
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 0x4813d2
call fcn.004d84ce
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + ebp]
push edx
lea eax, [esp + 0xb0]
push str.RES_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0x52c55c
lea ecx, [esp + 0xb0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4814b2
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x4814ea
mov ecx, dword [esp + 0x18]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4814ea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4814ea
push ebp
call fcn.004d5c5c
add esp, 4
push ebx
mov ecx, esi
mov edi, eax
call fcn.0047e590
push ebx
mov ecx, esi
mov dword [eax + 4], edi
call fcn.0047e590
cmp dword [eax + 4], 0
je 0x4814ea
push ebp
push 0
push ebx
mov ecx, esi
call fcn.0047e590
mov edx, dword [eax + 4]
push edx
call fcn.004d5720
mov eax, dword [esp + 0x28]
add esp, 0xc
push ebp
push eax
push ebx
mov ecx, esi
call fcn.0047e590
mov ecx, dword [eax + 4]
push ecx
call fcn.004d57a0
add esp, 0xc
push ebx
mov ecx, esi
call fcn.0047e590
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x24]
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 + 0x24], ebp
cmp ebx, edi
jb 0x481380
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], 1
jmp 0x4814ee
mov ebp, dword [esp + 0x20]
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4814f3
sub eax, edx
sar eax, 1
je 0x481517
test ebp, ebp
je 0x481517
mov eax, dword [esp + 0x18]
test eax, eax
je 0x481517
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x14], 0
jne 0x48168e
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 0x48168e
xor ebx, ebx
cmp edi, eax
jb 0x48154c
call fcn.004d84ce
mov eax, dword [esi + 0xc]
xor ebp, ebp
cmp dword [ebx + eax + 4], ebp
je 0x481586
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 0x481576
call fcn.004d84ce
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + ecx + 4]
push edx
call fcn.004d5b05
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 0x4815a6
call fcn.004d84ce
mov eax, dword [esi + 0xc]
add eax, ebx
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4815e7
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 0x4815d9
call fcn.004d84ce
mov edx, dword [esi + 0xc]
lea eax, [ebx + edx + 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 0x481607
call fcn.004d84ce
mov edx, dword [esi + 0xc]
push 0x53f778
lea eax, [ebx + edx + 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 0x48163a
call fcn.004d84ce
mov edx, dword [esi + 0xc]
mov dword [ebx + edx + 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 0x481661
call fcn.004d84ce
mov ecx, dword [esi + 0xc]
mov dword [ebx + ecx + 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 0x48154c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.004d6555
add esp, 0xe8
ret